Is it possible to disable USB tethering from command line? 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 &quot;USB Tethering&quot; Android setting from the command line?
You can run this command:
adb shell svc usb setFunctions

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