mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
universal7885: Import debugging script
* https://github.com/SamarV-121/android_vendor_extra/blob/android-12.0/prebuilt/init/debugging.rc
This commit is contained in:
parent
f5cec63d36
commit
af95ebdf2b
9 changed files with 46 additions and 4 deletions
17
universal7885-common/rootdir/etc/debug.rc
Normal file
17
universal7885-common/rootdir/etc/debug.rc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
on property:sys.boot_completed=1
|
||||
stop kerneld
|
||||
stop logd
|
||||
|
||||
on post-fs-data
|
||||
rm /data/kmsg.txt
|
||||
rm /data/misc/logd/logcat.txt
|
||||
|
||||
service kerneld /system/bin/sh -c "cat /proc/kmsg > /data/kmsg.txt"
|
||||
class main
|
||||
user root
|
||||
group system
|
||||
|
||||
service logcatd /system/bin/logcat -f /data/misc/logd/logcat.txt -v threadtime
|
||||
class main
|
||||
user root
|
||||
group system
|
||||
Loading…
Reference in a new issue