summaryrefslogtreecommitdiffstats
path: root/cmds/svc
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-05-13 11:54:03 -0700
committerNick Kralevich <nnk@google.com>2015-05-13 14:28:13 -0700
commitfcf10f7c12cb3107bdfedce6f76a8c866d154f3c (patch)
tree54e502f36ee820d1fc74cc52e653b7547801df41 /cmds/svc
parent2047ce824030a2ea6227a7544789281530b7892d (diff)
downloadframeworks_base-fcf10f7c12cb3107bdfedce6f76a8c866d154f3c.zip
frameworks_base-fcf10f7c12cb3107bdfedce6f76a8c866d154f3c.tar.gz
frameworks_base-fcf10f7c12cb3107bdfedce6f76a8c866d154f3c.tar.bz2
Modify how USB connections are handled.
* Introduce a new "charger only" mode. In this mode, MTP is disabled, and no file transfers can occur. * Make charger only mode the default. * Modify "persist.sys.usb.config" so it now only holds the adb status. * Make the USB settings non-persistent. Unplugging the USB connection will reset the device back to "charger only" mode. * Fixup wording per UI guidelines. TODO: Re-implement MDM restrictions for USB / MTP access controls. Bug: 18905620 Change-Id: I99a50d9132a81e98187f431166fd9fef4d437e4f
Diffstat (limited to 'cmds/svc')
-rw-r--r--cmds/svc/src/com/android/commands/svc/UsbCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/svc/src/com/android/commands/svc/UsbCommand.java b/cmds/svc/src/com/android/commands/svc/UsbCommand.java
index 4dcb05e..a6ef25f 100644
--- a/cmds/svc/src/com/android/commands/svc/UsbCommand.java
+++ b/cmds/svc/src/com/android/commands/svc/UsbCommand.java
@@ -50,7 +50,7 @@ public class UsbCommand extends Svc.Command {
IUsbManager usbMgr = IUsbManager.Stub.asInterface(ServiceManager.getService(
Context.USB_SERVICE));
try {
- usbMgr.setCurrentFunction((args.length >=3 ? args[2] : null), false);
+ usbMgr.setCurrentFunction((args.length >=3 ? args[2] : null));
} catch (RemoteException e) {
System.err.println("Error communicating with UsbManager: " + e);
}