mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 20:15:32 -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
|
|
@ -40,3 +40,11 @@ LOCAL_MODULE_CLASS := ETC
|
|||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := debug.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODUE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||
include $(BUILD_PREBUILT)
|
||||
|
|
|
|||
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