Add loggy service

This commit is contained in:
ivanmeler 2022-12-01 19:37:31 +00:00
parent c5afdb6c1d
commit 0b3102edf1
4 changed files with 24 additions and 0 deletions

View file

@ -72,6 +72,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
# loggy
PRODUCT_PACKAGES += \
loggy.sh
# ANT+
PRODUCT_PACKAGES += \
AntHalService \

View file

@ -132,3 +132,12 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/wifi_sec.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
# testing for logs
include $(CLEAR_VARS)
LOCAL_MODULE := loggy.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/loggy.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)

6
rootdir/bin/loggy.sh Normal file
View file

@ -0,0 +1,6 @@
#!/system/bin/sh
# loggy.sh.
_date=`date +%F_%H-%M-%S`
logcat -b all -v time -f /cache/logcat_${_date}.txt &
dmesg -w > /cache/kmsg_${_date}.txt

View file

@ -183,6 +183,11 @@ on boot
write /sys/module/g_android/parameters/mtp_rx_req_len 131072
write /sys/class/android_usb/android0/f_rndis_qc/rndis_transports BAM2BAM_IPA
service loggy /vendor/bin/loggy.sh
class core
user root
oneshot
#start camera server as daemon
service qcamerasvr /vendor/bin/mm-qcamera-daemon
class late_start