diff --git a/build/mobile/sutagent/android/DoCommand.java b/build/mobile/sutagent/android/DoCommand.java index 8d6d6a0bb9a..f09e360c971 100755 --- a/build/mobile/sutagent/android/DoCommand.java +++ b/build/mobile/sutagent/android/DoCommand.java @@ -123,7 +123,7 @@ public class DoCommand { String sErrorPrefix = "##AGENT-WARNING## "; boolean bTraceOn = false; - private final String prgVersion = "SUTAgentAndroid Version 0.93"; + private final String prgVersion = "SUTAgentAndroid Version 0.94"; public enum Command { @@ -2376,7 +2376,8 @@ public class DoCommand { temp = sLine.split("="); if (temp != null) { - sRet = temp[1].trim(); + if (temp.length > 1) + sRet = temp[1].trim(); } break; } diff --git a/build/mobile/sutagent/android/SUTAgentAndroid.java b/build/mobile/sutagent/android/SUTAgentAndroid.java index 7bfb029ca55..a8a9f08208d 100755 --- a/build/mobile/sutagent/android/SUTAgentAndroid.java +++ b/build/mobile/sutagent/android/SUTAgentAndroid.java @@ -67,6 +67,7 @@ import android.net.wifi.WifiManager; import android.net.wifi.WifiManager.WifiLock; import android.os.BatteryManager; import android.os.Bundle; +import android.os.Debug; import android.os.PowerManager; import android.telephony.TelephonyManager; import android.util.Log; @@ -106,8 +107,6 @@ public class SUTAgentAndroid extends Activity private BroadcastReceiver battReceiver = null; - IWatcherService mService = null; - public boolean onCreateOptionsMenu(Menu menu) { mExitMenuItem = menu.add("Exit"); @@ -137,8 +136,6 @@ public class SUTAgentAndroid extends Activity setContentView(R.layout.main); -// Debug.waitForDebugger(); - // Keep phone from locking or remove lock on screen KeyguardManager km = (KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE); if (km != null) @@ -722,4 +719,4 @@ public class SUTAgentAndroid extends Activity } }; */ -} \ No newline at end of file +}