Skip to content

Instantly share code, notes, and snippets.

@h3nr1ke
Last active February 2, 2018 17:21
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 h3nr1ke/9a779b34151885958591a48f60064ade to your computer and use it in GitHub Desktop.
Save h3nr1ke/9a779b34151885958591a48f60064ade to your computer and use it in GitHub Desktop.
adb useful commands
# --- read only needed information from adb logcat
# adb logcat *:<OPTION>
#the priorites are (from lowest to highest )
# V — Verbose (lowest priority)
# D — Debug
# I — Info
# W — Warning
# E — Error
# F — Fatal
# S — Silent ( nothing is ever printed )
# ----- examples -----
#--- display Error and Fatal messages
adb logcat *:E
#--- display Debug, Info, Warning, Error and Fatal
adb logcat *:D
#--- uninstall apk
adb uninstall <pacakge.name.of.your.app>
#--- install new apk
adb install /path/to/apk
#--- run app
adb shell monkey -p <pacakge.name.of.your.app> -c android.intent.category.LAUNCHER 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment