bug 604712 - Add device information to nsISystemInfo for use by crash reporting and feedback addon. r=mwu a=blocking-fennec
authorBrad Lassey <blassey@mozilla.com>
Tue, 30 Nov 2010 22:19:53 -0500
changeset 58399 35b96b38d398331a26dfd8e9b29bc55e15b284e5
parent 58398 c46083e1b190c18435ee4241bdf37c5245eb7800
child 58400 6ec5b1133f6a8c45f0476c5ed2c7ae106577d7d7
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersmwu, blocking-fennec
bugs604712
milestone2.0b8pre
bug 604712 - Add device information to nsISystemInfo for use by crash reporting and feedback addon. r=mwu a=blocking-fennec
embedding/android/CrashReporter.java.in
--- a/embedding/android/CrashReporter.java.in
+++ b/embedding/android/CrashReporter.java.in
@@ -252,17 +252,18 @@ public class CrashReporter extends Activ
       sendPart(os, boundary, "Android_Model", Build.MODEL);
       sendPart(os, boundary, "Android_Board", Build.BOARD);
       sendPart(os, boundary, "Android_Brand", Build.BRAND);
       sendPart(os, boundary, "Android_CPU_ABI", Build.CPU_ABI); 
       sendPart(os, boundary, "Android_CPU_ABI2", Build.CPU_ABI2);
       sendPart(os, boundary, "Android_Device", Build.DEVICE);
       sendPart(os, boundary, "Android_Display", Build.DISPLAY);
       sendPart(os, boundary, "Android_Fingerprint", Build.FINGERPRINT);
-      sendPart(os, boundary, "Android_Hardware", Build.HARDWARE);
+      if (Build.VERSION.SDK_INT >= 8)
+        sendPart(os, boundary, "Android_Hardware", Build.HARDWARE);
       sendPart(os, boundary, "Android_Version",  Build.VERSION.SDK_INT + " (" + Build.VERSION.CODENAME + ")");
 
       sendFile(os, boundary, kMiniDumpPathKey, minidumpFile);
       os.write(("\r\n--" + boundary + "--\r\n").getBytes());
       os.flush();
       os.close();
       BufferedReader br = new BufferedReader(
         new InputStreamReader(conn.getInputStream()));