抓log&& git操作

在adb 里起一个线程抓log,
adb shell 进去
logcat > /data/logcat.log & 回车就行

adb shell logcat -b kernel > chengming.log ====>kernel.log 方法
adb wait-for-device; logcat -b kernel > camer_kernel1.log ===>开机log
adb shell logcat -v threadtime > chengming.log ====>main.log
adb bugreport bgr.zip

adb shell logcat | grep --color=auto --color=auto -Enr “xxxxxxxxx”
repo init -u ssh://yangzhi1111/manifest -m snapdragon_high_mid_2018spf101-dev.xml --repo-url=ssh:///tools/git-repo --no-repo-verify
repo sync -c -d -j4 --no-tags
source build/envsetup.sh

git push origin HEAD:refs/for/master
git checkout -b myRelease origin/snapdragon
提交的有问题,需要修改
1.按照正常修改文件以后
git add
git commit --amend
repo upload .
patch -p1 < c8da8bc9.diff
git commit -m “[CaseID]0001820 [Description] change n4 config intftype is pix0 for rdi2 .”
git log --oneline
git reset --hard (c1ba027)xxxxx
git pull
git reset --soft
git push origin HEAD:refs/for/HXB_SLB788_QYWS_custom
echo “8 8 8 8” > /proc/sys/kernel/printk ==>提高log等级
echo “0 0 0 0” > /proc/sys/kernel/printk
adb shell setprop persist.camera.global.debug 5
adb shell setprop persist.camera.sensor.debug 5
抓HAL的log:
adb shell setprop persist.camera.hal.debug 5
dump寄存器
adb disable-verity

1.adb root
2.adb remount
3.adb shell setprop persist.camera.cal.dump 1
4.adb reboot
/data/vendor/camera/目录下生成dump data

./mk -e -t=userdebug -i=shipping -a=new
repo start master --all 建分支
开cts log
adb shell setprop log.tag.CameraTest (测试项) V

抓cts log 关键字
testrunner 》cts运行log,察看这个可以知道cts在哪卡住了
CameraService
》camera服务log,可以从log中看到camera在哪卡主了
junit.framework.AssertionFailedError: expected:<1> but was:<0> ==》cts的常规报错信息

在改dtsi文件用gedit修改,有可能修改不成功,需要用vim进行修改
git checkout -b HXB_SLB788_QYWS origin/HXB_SLB788_QYWS

git reset e3890f09ba45015b22dc9259f43a5a22eb9cbaa5 --hard 回退代码

设置dump 属性值之前首先要关闭selinux权限:
adb root;adb shell setenforce 0
dump 图片存储位置:data/vendor/camera

  1. 如何抓取camera必要的开机logcat log?
    adb root
    adb remount
    adb shell setprop persist.camera.global.debug 5
    adb shell setprop persist.camera.sensor.debug 5
    module_sensor_find_other_subdev
    将git commit 的打成patch git format-patch -1
    adb shell getprop debug.camera.prop_picselfie

make systemimage -jxx
make snod
单独编译modem:
./mk pine -m new -o non-hlos -l -s
注:-s 代表需要签名,

开USB口
717717
md抓log
995995
284log。##284##

ap bugreport: 284(事后)

进工模:6484

wifi
事后log:9434

BT:
5959

GPS:
477477

暗码输入后开始抓log,再输一遍就停止

开Diag口 ##717717##
抓modemlog:##995995##
ap bugreport: ##284##(事后)
wifi 事后log:##9434##
BT: ##959##
GPS: ##477477##
暗码输入后开始抓log,再输一遍就停止

发布了46 篇原创文章 · 获赞 0 · 访问量 652

猜你喜欢

转载自blog.csdn.net/qq_42894864/article/details/103427958