Bug 797652 - Current code agent code crashes on android 2.3. r=wlach
authorJoel Maher <jmaher@mozilla.com>
Wed, 10 Oct 2012 10:17:40 -0400
changeset 109857 d2501e3be239b920557b3e54e558689d2252758a
parent 109856 4c1bf0890354c050f6d72bbc4d663f267fa46bd2
child 109858 99889cc4affd3ce34091f15b98ba81aae8242279
push id16239
push userjmaher@mozilla.com
push dateWed, 10 Oct 2012 14:18:42 +0000
treeherdermozilla-inbound@99889cc4affd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswlach
bugs797652
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 797652 - Current code agent code crashes on android 2.3. r=wlach
build/mobile/sutagent/android/SUTAgentAndroid.java
--- a/build/mobile/sutagent/android/SUTAgentAndroid.java
+++ b/build/mobile/sutagent/android/SUTAgentAndroid.java
@@ -741,18 +741,18 @@ public class SUTAgentAndroid extends Act
             }
         };
 
     static String sHWID = null;
     public static String getHWID(Context cx) {
         if (sHWID != null)
             return sHWID;
 
-        // If we're on SDK version >= 8, use Build.SERIAL
-        if (android.os.Build.VERSION.SDK_INT >= 8) {
+        // If we're on SDK version > 8, use Build.SERIAL
+        if (android.os.Build.VERSION.SDK_INT > 8) {
             sHWID = android.os.Build.SERIAL;
         }
 
         if (sHWID != null)
             return sHWID;
 
         // Otherwise, try from the telephony manager
         TelephonyManager mTelephonyMgr = (TelephonyManager) cx.getSystemService(TELEPHONY_SERVICE);