Skip to content

Instantly share code, notes, and snippets.

@djeraseit
Forked from zlocate/enable-usb-tethering.sh
Created September 7, 2024 05:43
Show Gist options
  • Save djeraseit/0806487932cb98b1ad84f31d02b3db60 to your computer and use it in GitHub Desktop.
Save djeraseit/0806487932cb98b1ad84f31d02b3db60 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment