Skip to content

Instantly share code, notes, and snippets.

@Tetr4
Last active September 11, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tetr4/eb9a0ba09f30b890e2aed38f6d5d00b9 to your computer and use it in GitHub Desktop.
Save Tetr4/eb9a0ba09f30b890e2aed38f6d5d00b9 to your computer and use it in GitHub Desktop.
ADB commands
# take screenshot
adb exec-out screencap -p > screen.png

# start intent with url, e.g. to test deep linking urls
adb shell 'am start -a android.intent.action.VIEW -d "https://my.url.io/my_file"'

# enter text
adb shell 'input text "asdf"'

# press "enter" key
adb shell input keyevent 66

# simulate system killing process
adb shell am kill "my.application.id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment