packages/apps/Settings
- UsbTethering
- ConnectivityManager
- UsbTether
- TetherService.java
- UsbTether
- ConnectivityManager
Usb Mode Packages/apps/Settings
- c.a.s.deviceInfo/UsbModeChooserActivity
- 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 }