界面分析
获取当前页面的UI布局层次结构
adb shell uiautomator dump /sdcard/ui.xml
开启『调试 GPU 过度绘制』
adb shell setprop debug.hwui.overdraw show
关闭『调试 GPU 过度绘制』
原色:没有过度绘制
蓝色:1 次过度绘制
绿色:2 次过度绘制
粉色:3 次过度绘制
红色:4 次及以上过度绘制]
adb shell setprop debug.hwui.overdraw false
获取当前窗口信息
adb shell dumpsys window |grep mCurrent
getprop |grep current
获取屏保锁信息
【dumpsys power】【busybox ps |grep xxxx(进程号)】
进程
查看package_name程序进程
adb shell ps|grep <包名>
强制停止APP进程,不会清除APP进程在系统中产生的数据
adb shell am force-stop package
杀进程
kill -9 pid
启动暂停adb
启动adb 服务
adb start-server
关闭adb 服务(是kill不是stop)
adb kill-server