while true; do adb shell dumpsys display |grep -Ei "mAmbientLightRingBuffer|mAmbientLux|mScreenAutoBrightness"; sleep 1; done
隔一秒一直循环打印
sleep 1 睡眠1秒
sleep 1s 睡眠1秒
sleep 1m 睡眠1分
sleep 1h 睡眠1小时
adb shell settings put system screen_off_timeout 5
adb shell settings put system screen_brightness 100
adb shell settings get secure default_input_method
其中的system可以根据设置的具体情况改成get global或者get secure
Kernel中Power键
按下Reg[0x91a]=0x1
擡起Reg[0x91a]=0x4
adb shell screencap -p /sdcard/screen.png
adb shell screenrecord --size 1920x1080 --bugreport /sdcard/demo.mp4
kill -3 进程, 然后就可以在data/anr找到一个traces_00这么一个文件
查查看指定进程占用CPU情况:top -o ARGS,%cpu|grep system_server
查看手机当前前台的Activity命令:
adb shell dumpsys activity | findstr "mResumedActivity"
kernel 打印堆栈
dump_stack();
制造systemui crash的命令:
adb shell am crash com.android.systemui