adb常用命令2
2022-12-21 本文已影响0人
李菜菜同学
查看某个app的包名和activity
adb logcat|find "START"
adb logcat|find "START" >>10.txt


启动app
adb shell am start -W -n package/activity
查看电量情况
adb shell dumpsys battery

修改安卓手机为非充电状态
adb shell dumpsys battery status set 1
若有多个链接手机,则可以指定设备号
adb -s device1 reboot
重启手机
adb shell reboot -p