赞
踩
adb start-sever
adb stop-server
adb devices
adb -s device_id
adb -s 47db0de20304 shell
adb reboot
adb reboot bootloader
adb reboot recovery
adb shell monkey -p your.package.name 1000
adb shell monkey -f /sdcard/xxx.script
adb shell ps
adb shell kill pid
adb shell ps -x pid
adb shell service list
adb shell cat /proc/meminfo
adb shell dumpsys meminfo package
adb shell am start -n your.package.name/your.package.name-activity
adb shell am force-stop package
adb shell dumpsys activity | findstr “mFocusedActivity”
adb install xxx.apk
adb install -r xxx.apk
adb uninstall package
adb uninstall -k package
adb shell pm list packages
adb shell pm path your.package.name
adb shell pm clear your.package.name
adb push 电脑文件路径 /sdcard
adb pull /sdcard/text.txt 电脑文件路径
adb shell rm /sdcard/text.txt
-f 强制删除文件不需要确认
-r 递归删除文件夹内文件
-i 删除文件前需要确认
adb shell mkdir -p /sdcard/temp/test/
指定 -p 递归创建目录
adb shell touch /sdcard/text.txt
adb shell cp /sdcard/text.txt /sdcard/test/
adb shell mv /sdcard/1.txt /sdcard/2.text
移动同一目录下文件相当于重命名文件
adb shell
su
adb shell
cd data/data ; ls
cd data/data ; ls
exit
或者 Ctrl + D
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。