mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-01-27 15:51:28 +00:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
6
init.logging.userdebug.rc
Normal file
6
init.logging.userdebug.rc
Normal 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
|
||||||
Reference in New Issue
Block a user