package com.bugsnag.android;

import org.json.JSONObject;

import com.bugsnag.android.DeviceData;

public class DeviceDataTest extends BugsnagTestCase {
    public void testSaneValues() {
        DeviceData deviceData = new DeviceData(getContext());

        assertTrue(deviceData.getScreenDensity() > 0);
        assertNotNull(deviceData.getScreenResolution());
        assertNotNull(deviceData.getTotalMemory());
        assertNotNull(deviceData.isRooted());
        assertNotNull(deviceData.getLocale());
        assertNotNull(deviceData.getAndroidId());
    }
}

@@ -497,24 +497,189 @@
 tLocale());%0A
+%0A        if(android.os.Build.VERSION.SDK_INT %3E= android.os.Build.VERSION_CODES.FROYO) %7B%0A            // Emulators returned null for android id before android 2.2%0A    
         asse
@@ -712,20 +712,30 @@
 droidId());%0A
+        %7D%0A
     %7D%0A%7D%0A

Handle emulator bug in tests