TransWikia.com

Is it possible to disable USB tethering from command line?

Android Enthusiasts Asked on October 29, 2021

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?

One Answer

You can run this command:

adb shell svc usb setFunctions

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

Answered by Firelord on October 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP