Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CypherpunkSamurai/24026382a9c5ba1c98506a2c6c8c18a0 to your computer and use it in GitHub Desktop.
Save CypherpunkSamurai/24026382a9c5ba1c98506a2c6c8c18a0 to your computer and use it in GitHub Desktop.
enable usb tethering from adb shell
adb shell am start -n com.android.settings/.TetherSettings && adb shell input keyevent 20 && adb shell input keyevent 20 && adb shell input keyevent KEYCODE_ENTER && sleep 2 && adb shell input keyevent 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment