1、ps -e -o psr,uid,name,pid,cmd ------查看应用运行在那个cpu上面
2、打补丁常用命令
抽取patch补丁:# git format-patch -s + commit id(ID之后所有补丁)
先检查patch文件:# git apply --stat newpatch.patch
检查能否应用成功:# git apply --check newpatch.patch
打补丁:# git am --signoff < newpatch.patch
3、关闭串口打印命令:echo 0 > /proc/sys/kernel/printk
开启:echo 8 > /proc/sys/kernel/printk
4、android截图命令
adb shell /system/bin/screencap -p /sdcard/screenshot.png
5、获取和设置系统属性的值:
adb shell settings get system screen_off_timeout
adb shell settings put system screen_off_timeout 600000
6、alsa_ctl -f /sdcard/asound.state store ---保存asound.state文件