OSDN Git Service

DO NOT MERGE ANYWHERE - Hack to disable MTP mode on Clockwork devices.
authorMichael Kwan <mkwan@google.com>
Mon, 16 Nov 2015 20:59:37 +0000 (12:59 -0800)
committerMichael Kwan <mkwan@google.com>
Mon, 16 Nov 2015 22:05:29 +0000 (14:05 -0800)
commit8d6630b87c93f569bbf5fc5b426fe2a1c2ff2ceb
treeb0aea78ace845780b7baad3643b2f7b46c700b16
parent062c629e5c6270da232bbd2800966ab5dc6c615f
DO NOT MERGE ANYWHERE - Hack to disable MTP mode on Clockwork devices.

Android currently forces USB into MTP mode if there was no modes
specified. This causes issues on Clockwork devices as they do not
support MTP.

The hack stops this behaviour, and also sets MTP mode back to none.

Bug: 25547826
Bug: 25582050
Bug: 25244201
Change-Id: I772e35d0a5db51b17e9d71c59e6a157dabb1d296
services/usb/java/com/android/server/usb/UsbDeviceManager.java