bug 860986 - SUTAgent - add abi to registration url, r=jmaher. DONTBUILD

This commit is contained in:
Bob Clary 2013-04-12 11:23:56 -07:00
Родитель 86990b89fa
Коммит 834f6afd82
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;