How to enable / disable USB binding on Android 5.1.1 software?

I need a way to enable / disable binding via API. Most of the solutions posted here apply to Android 4.4 or below.

I've already looked at the following solutions (none worked):

  • Is it possible to connect USB device to android device using adb via terminal?
  • Detecting USB binding on Android phone
  • Enable / disable USB connection or Wi-Fi connection programmatically on Android phone

I know that the APIs that support this are generally only for system apps (regular apps don't have MANAGE_USB permission), but is there a way around this for Android 5.1.1?

+3
android android-5.1.1-lollipop adb tethering usb


source to share


No one has answered this question yet

See similar questions:

sixteen
Enable / disable USB or Wi-Fi modem programmatically on Android
fourteen
How can I enable USB Tethering programmatically on Android 4.0 device?
ten
Is it possible to connect USB device to android device using adb via terminal?
7
Detecting USB Binding on Android
7
Start / stop built-in Wi-Fi / USB tethering from code?

or similar:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2510
How to persist android activity state by persisting instance state?
36
Why doesn't OSX detect Android Galaxy S for USB debugging?
sixteen
Enable / disable USB or Wi-Fi modem programmatically on Android
ten
USB connection and debugging at the same time
five
Reverse Modem Multiple Android Devices via USB
3
Reverse connected Android tablet (USB)
2
How to programmatically grant USB permissions on Android Lollipop 5.1
2
getTetherableIfaces returns nothing
1
Check USB / Bluetooth modem is active



All Articles
Loading...
X
Show
Funny
Dev
Pics