OSDN Git Service

Add UsbDebuggingManager and UsbDebuggingActivity
authorBenoit Goby <benoit@android.com>
Thu, 26 Apr 2012 01:06:00 +0000 (18:06 -0700)
committerBenoit Goby <benoit@android.com>
Mon, 20 Aug 2012 20:44:34 +0000 (13:44 -0700)
commit4e68bd420b6cfdbeadb5e69aa6448665b2da762b
tree4c76067723f8a24d5d1b9f366d939a949da97419
parentbf5740e75efd87ae0213486e78e029403804c6f0
Add UsbDebuggingManager and UsbDebuggingActivity

The UsbDebuggingManager listens to adbd requests and displays a dialog
when the public key authentification fails, for the user to confirm if it
wants to allow USB debugging from the attached host. If the user chooses
to always allow USB debugging, the UsbDebuggingManager writes the public
key to adbd's config file so that the public key authenfication succeeds
next time.

Change-Id: I115c828331d8e326c380844ee33915d5dff22260
core/java/android/hardware/usb/IUsbManager.aidl
packages/SystemUI/AndroidManifest.xml
packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java [new file with mode: 0644]
services/java/com/android/server/usb/UsbDebuggingManager.java [new file with mode: 0644]
services/java/com/android/server/usb/UsbDeviceManager.java
services/java/com/android/server/usb/UsbService.java