diff --git a/device-common.mk b/device-common.mk index 6f7dac3..4d12c2f 100644 --- a/device-common.mk +++ b/device-common.mk @@ -31,8 +31,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.radio.log_loc="/data/smlog_dump" PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/init.logging.rc:root/init.$(PRODUCT_HARDWARE).logging.rc \ - $(LOCAL_PATH)/init.common.usb.rc:root/init.$(PRODUCT_HARDWARE).usb.rc + $(LOCAL_PATH)/init.logging.userdebug.rc:root/init.$(PRODUCT_HARDWARE).logging.rc +else +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/init.logging.rc:root/init.$(PRODUCT_HARDWARE).logging.rc endif include device/google/wahoo/device.mk diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 906107a..9a6fe72 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -53,7 +53,7 @@ static void getModemLogs(int fd) return; } /* Check if smlog_dump tool exist */ - if (!PropertiesHelper::IsUserBuild() && !access("/system/bin/smlog_dump", X_OK)) { + if (!PropertiesHelper::IsUserBuild() && !access("/vendor/bin/smlog_dump", X_OK)) { modemLogsEnabled = android::base::GetBoolProperty(MODEM_LOGGING_SWITCH, false); /* Execute SMLOG DUMP if SMLOG is enabled */ diff --git a/init.logging.rc b/init.logging.rc index dbe6dc0..e69de29 100644 --- a/init.logging.rc +++ b/init.logging.rc @@ -1,4 +0,0 @@ -on property:ro.build.type=userdebug - write /sys/class/uio/uio1/device/rtel/rtel 1 - # SM DUMP logging collection - mkdir /data/smlog_dump 0777 system system diff --git a/init.logging.userdebug.rc b/init.logging.userdebug.rc new file mode 100644 index 0000000..eff86af --- /dev/null +++ b/init.logging.userdebug.rc @@ -0,0 +1,6 @@ +on property:init.svc.per_mgr=running + write /sys/class/uio/uio1/device/rtel/rtel 1 + +on post-fs-data + # SM DUMP logging collection + mkdir /data/smlog_dump 0777 system system