1
|
adb devices
|
1
2
3
4
|
adb
install
-r APK_FILE
# example
adb
install
-r ~
/application
.apk
|
1
2
3
4
|
adb uninstall PACKAGE_NAME
# example
adb uninstall com.growingwiththeweb.example
|
1
2
3
4
5
6
|
adb shell am start PACKAGE_NAME
/ACTIVITY_IN_PACKAGE
adb shell am start PACKAGE_NAME
/FULLY_QUALIFIED_ACTIVITY
# example
adb shell am start -n com.growingwiththeweb.example/.MainActivity
adb shell am start -n com.growingwiththeweb.example
/com
.growingwiththeweb.example.MainActivity
|
1
|
adb shell
|
1
|
adb shell screencap -p | perl -pe
's/\x0D\x0A/\x0A/g'
>
screen
.png
|
1
|
adb shell input keyevent 26
|
1
|
adb shell input keyevent 82
|
1
|
adb shell pm list packages -f
|
1
2
3
4
|
adb shell pm
clear
PACKAGE_NAME
# example
adb shell pm
clear
com.growingwiththeweb.example
|
1
|
adb logcat
|
1
2
3
4
5
6
|
adb logcat -s TAG_NAME
adb logcat -s TAG_NAME_1 TAG_NAME_2
#example
adb logcat -s TEST
adb logcat -s TEST MYAPP
|
1
2
3
4
|
adb logcat
"*:PRIORITY"
# example
adb logcat
"*:W"
|
1
2
3
4
5
|
adb logcat -s TAG_NAME:PRIORITY
adb logcat -s TAG_NAME_1:PRIORITY TAG_NAME_2:PRIORITY
#example
adb logcat -s TEST: W
|
1
2
3
4
5
6
|
adb logcat |
grep
"SEARCH_TERM"
adb logcat |
grep
"SEARCH_TERM_1\|SEARCH_TERM_2"
#example
adb logcat |
grep
"Exception"
adb logcat |
grep
"Exception\|Error"
|
1
|
adb logcat -c
|