Change init.logging.rc sequence and modify SMLoging location

-Load blank init.logging.rc for user build
-Start SMLoging after PerMgr service running
-Change SMLoging location to /vendor/bin

Test: Verified in device by manually trigger SMLog

Change-Id: I622106e7a8023770bbe5ea4224ce2905c2647768
This commit is contained in:
Shawn Yang
2017-03-24 14:50:19 -07:00
parent 59414164c9
commit 974850dca4
4 changed files with 11 additions and 7 deletions

View File

@@ -31,8 +31,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.radio.log_loc="/data/smlog_dump" ro.radio.log_loc="/data/smlog_dump"
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.logging.rc:root/init.$(PRODUCT_HARDWARE).logging.rc \ $(LOCAL_PATH)/init.logging.userdebug.rc:root/init.$(PRODUCT_HARDWARE).logging.rc
$(LOCAL_PATH)/init.common.usb.rc:root/init.$(PRODUCT_HARDWARE).usb.rc else
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.logging.rc:root/init.$(PRODUCT_HARDWARE).logging.rc
endif endif
include device/google/wahoo/device.mk include device/google/wahoo/device.mk

View File

@@ -53,7 +53,7 @@ static void getModemLogs(int fd)
return; return;
} }
/* Check if smlog_dump tool exist */ /* 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); modemLogsEnabled = android::base::GetBoolProperty(MODEM_LOGGING_SWITCH, false);
/* Execute SMLOG DUMP if SMLOG is enabled */ /* Execute SMLOG DUMP if SMLOG is enabled */

View File

@@ -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

View File

@@ -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