Skip to content

Commit

Permalink
g4-common: debug boot process (crash,kernel,full)
Browse files Browse the repository at this point in the history
  • Loading branch information
steadfasterX committed Nov 8, 2019
1 parent 9af711e commit 073490b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions rootdir/etc/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 073490b

Please sign in to comment.