Skip to content

Instantly share code, notes, and snippets.

@ChimeraCoder
Created September 11, 2013 21:09
Show Gist options
  • Save ChimeraCoder/6529812 to your computer and use it in GitHub Desktop.
Save ChimeraCoder/6529812 to your computer and use it in GitHub Desktop.
script to start android tethering from bash
#! /bin/sh
adb shell input keyevent 3 # home
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings
adb shell input keyevent 20 # down
adb shell input keyevent 20 # down
adb shell input keyevent 20 # down
adb shell input keyevent 20 # down
adb shell input keyevent 66 # enter
adb shell input keyevent 20 # down
adb shell input keyevent 20 # down
adb shell input keyevent 66 # enter
adb shell input keyevent 66 # enter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment