Created
December 13, 2020 10:22
-
-
Save zlocate/d7980307997473595aa5eacd1a479f5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable usb tethering by adb shell (works on Android 10, Honor 10 Lite) | |
# Additional links: https://android.stackexchange.com/questions/29954/is-it-possible-to-activate-the-usb-tethering-android-setting-from-the-command | |
# https://stackoverflow.com/questions/20226924/is-it-possible-to-usb-tether-an-android-device-using-adb-through-the-terminal/24346101 | |
adb shell svc usb setFunctions rndis |
Hello,
what is the opposite command to deactivate usb tethering? Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enable wifi on phone run this:
adb shell svc wifi enable