From 834f6afd823d6469f1a358050c70668016d1141f Mon Sep 17 00:00:00 2001 From: Bob Clary Date: Fri, 12 Apr 2013 11:23:56 -0700 Subject: [PATCH] bug 860986 - SUTAgent - add abi to registration url, r=jmaher. DONTBUILD --- build/mobile/sutagent/android/SUTAgentAndroid.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/mobile/sutagent/android/SUTAgentAndroid.java b/build/mobile/sutagent/android/SUTAgentAndroid.java index a24cdc22a13d..d032c992bed2 100755 --- a/build/mobile/sutagent/android/SUTAgentAndroid.java +++ b/build/mobile/sutagent/android/SUTAgentAndroid.java @@ -38,6 +38,7 @@ import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.net.wifi.WifiManager.WifiLock; import android.os.BatteryManager; +import android.os.Build; import android.os.Build.VERSION; import android.os.Bundle; import android.os.Handler; @@ -74,6 +75,7 @@ public class SUTAgentAndroid extends Activity private static String RegSvrIPPort = ""; private static String HardwareID = ""; private static String Pool = ""; + private static String Abi = ""; private static String sRegString = ""; private static boolean LogCommands = false; @@ -172,6 +174,7 @@ public class SUTAgentAndroid extends Activity SUTAgentAndroid.RegSvrIPPort = dc.GetIniData("Registration Server", "PORT", sIniFile); SUTAgentAndroid.HardwareID = dc.GetIniData("Registration Server", "HARDWARE", sIniFile); SUTAgentAndroid.Pool = dc.GetIniData("Registration Server", "POOL", sIniFile); + SUTAgentAndroid.Abi = android.os.Build.CPU_ABI; log(dc, "onCreate"); tv = (TextView) this.findViewById(R.id.Textview01); @@ -277,6 +280,7 @@ public class SUTAgentAndroid extends Activity String sConfig = "Unique ID: " + sUniqueID + lineSep; sConfig += "HWID: " + hwid + lineSep; + sConfig += "ABI: " + Abi + lineSep; sConfig += "OS Info" + lineSep; sConfig += "\t" + dc.GetOSInfo() + lineSep; sConfig += "Screen Info" + lineSep; @@ -302,6 +306,7 @@ public class SUTAgentAndroid extends Activity sRegString += "&MEMORY=" + dc.GetMemoryConfig(); sRegString += "&HARDWARE=" + HardwareID; sRegString += "&POOL=" + Pool; + sRegString += "&ABI=" + Abi; String sTemp = Uri.encode(sRegString,"=&"); sRegString = "register " + sTemp;