修改vi ~/.gitconfig(修改这个文件将全局有效)或项目目录中的.git/config(修改此文件只是使当前项目默认使用vim)中增加以下内容:
[core]
editor=vim
查找文件中的关键字
grep -nr -i “xxx”
获取android 版本号
adb shell getprop ro.build.version.release
sprd
开启mlog
adb shell setenforce 0
adb shell mkdir /data/mlog
adb shell touch /data/mlog/awb.txt
adb shell chmod 777 /data/mlog/awb.txt
adb shell setprop debug.isp.awb.mlog /data/mlog/awb.txt
adb shell cat data/mlog/awb.txt
sudo adb shell setprop persist.vendor.cam.isp.log 5
adb shell setprop debug.camera.isp.smart 1
adb shell setprop persist.vendor.cam.isp.log 5
Enable Sensor color bar:
adb shell setprop debug.camera.test.mode 1
Sensor Test parteen property:
adb shell setprop debug.camera.test.mode 1