OSDN Git Service

Clean up persistent usb state on boot.
authorJerry Zhang <zhangjerry@google.com>
Tue, 18 Oct 2016 00:37:13 +0000 (17:37 -0700)
committerJerry Zhang <zhangjerry@google.com>
Thu, 12 Jan 2017 23:32:20 +0000 (15:32 -0800)
commitbfc5d563aa19912e2ab103d04329419e8cec6fb2
tree11773b98608bd8cca2ac466bf22ca7e4b453403c
parent541295a9a53e38bde5fea4223ed2d63e3aacf93b
Clean up persistent usb state on boot.

b/31814300 was fixed, but mtp can still stick around in the
persistent config even after flashing. This block of code
will only run once, but will ensure that mtp is not in
the config after the update.

Bug: 31814300
Test: Manual
Change-Id: Icf02be38c9e1f769412ac963ed6afc14e6092bfb
(cherry-picked from commit a45dac0e83f4f907b6b42f453181a7d5c01f65f3)
services/usb/java/com/android/server/usb/UsbDeviceManager.java