前几天参加了公司组织的Android兴趣小组的培训,里面讲到了很多Android ADB中常用的命令,有些是很实用的,整理一下以备后用。
进入adb shell: android shell
查看日志:adb? logcat
重新挂载文件系统为可写:adb? remount
adb pull remote local:adb -d pull /storage/sdcard1/ceshi.txt e:/temp
adb push local to remote:adb push ceshi.txt /storage/sdcard1
adb install XXX.apk:adb -e install XXX.apk
adb uninstall packagename:adb -e uninstall com.thunisoft.app
pm list packages|grap XXX:pm list packages| grep thunisoft
pm path <packagename>:pm path com.thunisoft.beijingPerson.search
am start <Intent> :am start com.thunisoft.beijingPrison.XXX/.MainActivity
am broadcast <Intent>:am broadcast -a android.intent.action.BOOT_COMPLETED
Monkey -p? <package> exetimes:monkey -p con,thunisoft.beijingPersion.XXX 100