From 073490b8a5056d5d59c2bea04d6648f423db3a35 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Fri, 8 Nov 2019 17:45:00 +0100 Subject: [PATCH] g4-common: debug boot process (crash,kernel,full) --- rootdir/etc/init.qcom.rc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 7086961bd..b06133fc4 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -79,6 +79,14 @@ on fs symlink /dev/block/platform/soc.0/${ro.boot.bootdevice} /dev/block/bootdevice mount_all /vendor/etc/fstab.qcom + # debug boot process + rm /cache/boot_lc_full.txt + rm /cache/boot_lc_crash.txt + rm /cache/boot_lc_kernel.txt + start boot_lc + start boot_lc_kernel + start boot_lc_crash + on init # ZRAM setup write /sys/block/zram0/comp_algorithm lzo @@ -1067,6 +1075,27 @@ service lge-sensor-sh /vendor/bin/init.msm8992.sensor.sh seclabel u:r:sensors:s0 # start sensor daemon as core class [END] +service boot_lc /system/bin/logcat -b all -D -f /cache/boot_lc_full.txt + class main + user root + group root system + disabled + oneshot + +service boot_lc_crash /system/bin/logcat -b crash -D -f /cache/boot_lc_crash.txt + class main + user root + group root system + disabled + oneshot + +service boot_lc_kernel /system/bin/logcat -b kernel -D -f /cache/boot_lc_kernel.txt + class main + user root + group root system + disabled + oneshot + service pulseon /vendor/bin/pulse.sh user system seclabel u:r:pulse:s0 @@ -1080,6 +1109,9 @@ service pulseoff /vendor/bin/pulse.sh stop on property:sys.boot_completed=1 stop pulseon start pulseoff + stop boot_lc + stop boot_lc_crash + stop boot_lc_kernel on property:init.svc.bootanim=stopped stop pulseon @@ -1088,6 +1120,9 @@ on property:init.svc.bootanim=stopped on property:dev.bootcomplete=1 stop pulseon start pulseoff + stop boot_lc + stop boot_lc_crash + stop boot_lc_kernel on property:gsm.version.baseband="" start baseband-sh