summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-06-10 09:38:42 -0700
committerNick Kralevich <nnk@google.com>2015-06-10 10:29:48 -0700
commit674019065bceb4150190bfb1aa63cda9de0a8560 (patch)
tree9f9ed636f52c916afd9b1dd9805e1c9a94aa8757 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent89124000c618f24b948505cd79f654aacbdff957 (diff)
Fix USB access control when adb is disabled.
When adb is disabled, the default usb mode would be "none", which would turn off the driver and prevent UsbDeviceManager from receiving any new USB connect / disconnect messages. This prevents the user from ever enabling MTP and sharing data when adb is turned off. As discussed in bug 21429947, we work around this problem by keeping the USB driver in MTP mode most of the time, so that we continue to receive USB connect / disconnect messages. To avoid leaking confidential user photos, this change introduces an unlocked state. Setting the mtp enabled function is now decoupled from exposing data on the USB connection. Only if MTP is enabled and USB data has been unlocked is confidential user data allowed to be shared. Bug: 21429947 Change-Id: Iefb5c7e22dc4962bf5226f2ed3d0155b5c7b413c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions