From e386fe08472700be545094e79c74e95ff1a39a85 Mon Sep 17 00:00:00 2001 From: Francescodario Cuzzocrea Date: Sat, 18 May 2019 09:52:56 +0200 Subject: [PATCH] DNM: add debug log function --- BoardConfigCommon.mk | 2 +- rootdir/Android.mk | 8 ++++++++ rootdir/init.qcom.rc | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 2964fcb..9d64acd 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -16,7 +16,7 @@ -include device/samsung/qcom-common/BoardConfigCommon.mk include device/samsung/msm8226-common/board/*.mk - + # Fonts EXTENDED_FONT_FOOTPRINT := true diff --git a/rootdir/Android.mk b/rootdir/Android.mk index bbc0d23..082eda8 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -26,6 +26,14 @@ LOCAL_SRC_FILES := init.qcom.rc LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := debug_log.sh +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/debug_log.sh +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + include $(CLEAR_VARS) LOCAL_MODULE := init.qcom.power.rc LOCAL_MODULE_TAGS := optional eng diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 0582c61..d95720c 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -74,6 +74,8 @@ on fs # Kickstart the Wireless subsystem write /dev/wcnss_wlan 1 + /system/bin/sh /system/etc/debug_log.sh + # Adaptive LMK write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059