2

I try to be able to stop USB tethering.

I tried:

adb shell am stop com.android.settings/.TetherSettings # Unknown command: stop
adb shell am kill com.android.settings/.TetherSettings # nothing
adb shell service call connectivity 33 i32 0 s16 text  # works

Latest works, but I don't know if it's very reliable like am commands

Related, but the opposite, Is it possible to activate the "USB Tethering" Android setting from the command line?

2

You can run this command:

adb shell svc usb setFunctions

This should reset the USB mode/configuration to charging only.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.