Skip to content

Commit

Permalink
msm8953-common: advance logcat debugging : Enabled using init.target.rc
Browse files Browse the repository at this point in the history
- This Don't needed PC for logs.
- Even Takes logs with adb offline issue.
- Even It Takes Logs while on Splash Screen (experimental).
- Advance
- Takes Logs in Full, Crash and Kernel Logs Seperately.
- It will Save Logs to /cache .
  • Loading branch information
mrjarvis698 authored and Lafactorial committed Dec 30, 2022
1 parent 6f2f3cb commit 658c630
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions rootdir/etc/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,43 @@ on charger

start qcom-post-boot

# Logcat Services
service boot_log /system/bin/logcat -b all -D -f /cache/boot_log_full.txt
class main
user root
group root system
disabled
oneshot

service boot_log_crash /system/bin/logcat -b crash -D -f /cache/boot_log_crash.txt
class main
user root
group root system
disabled
oneshot

service boot_log_kernel /system/bin/logcat -b kernel -D -f /cache/boot_log_kernel.txt
class main
user root
group root system
disabled
oneshot

on post-fs-data
# Clear existing log and start the service
rm /cache/boot_log_full.txt
rm /cache/boot_log_crash.txt
rm /cache/boot_log_kernel.txt
start boot_log
start boot_log_crash
start boot_log_kernel

on property:sys.boot_completed=1
# Stop the logger service
stop boot_log
stop boot_log_crash
stop boot_log_kernel

service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
override
class hal
Expand Down

0 comments on commit 658c630

Please sign in to comment.