查看某个app的包名和activity
adb logcat|find "START"
adb logcat|find "START" >>10.txt
![](https://img.haomeiwen.com/i1300576/3aa48d7df35020d7.png)
![](https://img.haomeiwen.com/i1300576/3019eeec2d959a2b.png)
启动app
adb shell am start -W -n package/activity
查看电量情况
adb shell dumpsys battery
![](https://img.haomeiwen.com/i1300576/8edbc7447d761cc2.png)
修改安卓手机为非充电状态
adb shell dumpsys battery status set 1
若有多个链接手机,则可以指定设备号
adb -s device1 reboot
重启手机
adb shell reboot -p
网友评论