... | ... | @@ -7,4 +7,17 @@ packages/apps/Settings |
|
|
Usb Mode
|
|
|
Packages/apps/Settings
|
|
|
- c.a.s.deviceInfo/UsbModeChooserActivity
|
|
|
- UsbBackend |
|
|
\ No newline at end of file |
|
|
- UsbBackend
|
|
|
|
|
|
uses:
|
|
|
ConnectivityManager
|
|
|
Tethering.java (frameworks/base/services/core/java/com/android/server/connectivity/Tethering.java)
|
|
|
|
|
|
USB Configuration in Developer Options
|
|
|
UsbManager mgr = getSystemService(Context.USB_SERVICE)
|
|
|
values = R.array.usb_configuration_values
|
|
|
mgr.isFunctionEnabled( s ) // only one value is enabled
|
|
|
mgr.setCurrentFunction( s )
|
|
|
mgr.setUsbDataUnlocked ( s != 'none )
|
|
|
|
|
|
values = { none, mtp, ptp, rndis, audio_source, midi } |
|
|
\ No newline at end of file |