diff options
author | Benoit Goby <benoit@android.com> | 2013-04-17 17:34:30 -0700 |
---|---|---|
committer | Benoit Goby <benoit@android.com> | 2013-04-17 17:34:30 -0700 |
commit | 29a4b7277eeadcf7ebdfae73da1e9acf0d371903 (patch) | |
tree | f2fbfa8cefbe181a8256b602d7ae6bb66fd9924a /packages/SystemUI/src/com/android/systemui/usb | |
parent | 18455c307d8ea439dbf78aa3789380259ddd8572 (diff) | |
download | frameworks_base-29a4b7277eeadcf7ebdfae73da1e9acf0d371903.zip frameworks_base-29a4b7277eeadcf7ebdfae73da1e9acf0d371903.tar.gz frameworks_base-29a4b7277eeadcf7ebdfae73da1e9acf0d371903.tar.bz2 |
Fix UsbDebuggingActivity not shown in adb tcpip mode
Bug: 8646772
Change-Id: If34c756bece903a0a452070bbc94ebc71d325bf6
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/usb')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java index 9146ccd..2c25236 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java +++ b/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java @@ -30,6 +30,7 @@ import android.hardware.usb.UsbManager; import android.os.Bundle; import android.os.IBinder; import android.os.ServiceManager; +import android.os.SystemProperties; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -54,7 +55,10 @@ public class UsbDebuggingActivity extends AlertActivity public void onCreate(Bundle icicle) { super.onCreate(icicle); - mDisconnectedReceiver = new UsbDisconnectedReceiver(this); + if (SystemProperties.getInt("service.adb.tcp.port", 0) == 0) { + mDisconnectedReceiver = new UsbDisconnectedReceiver(this); + } + Intent intent = getIntent(); String fingerprints = intent.getStringExtra("fingerprints"); mKey = intent.getStringExtra("key"); |