MTK默认开启Modem Log

发布于:2024-06-12 ⋅ 阅读:(111) ⋅ 点赞:(0)

基于Android12,user默认开启Modem Log。

修改分为三部分:

1.config修改
--- a/alps/device/mediatek/common/mtklog/mtklog-config-basic-user.prop
+++ b/alps/device/mediatek/common/mtklog/mtklog-config-basic-user.prop
@@ -3,12 +3,12 @@ mtklog_path = system_data
 com.mediatek.log.mobile.customer = MTK_Internal
 com.mediatek.log.mobile.AllMode = true
 
-com.mediatek.log.mobile.enabled = false
-com.mediatek.log.modem.enabled = false
-com.mediatek.log.net.enabled = false
-com.mediatek.log.connsysfw.enabled = false
-com.mediatek.log.gpshost.enabled = false
-com.mediatek.log.bthost.enabled = false
+com.mediatek.log.mobile.enabled = true
+com.mediatek.log.modem.enabled = true
+com.mediatek.log.net.enabled = true
+com.mediatek.log.connsysfw.enabled = true
+com.mediatek.log.gpshost.enabled = true
+com.mediatek.log.bthost.enabled = true
 
 com.mediatek.log.mobile.maxsize = 1000
 com.mediatek.log.modem.maxsize = 2000
diff --git a/alps/device/mediatek/common/mtklog/mtklog-config-bsp-user.prop b/alps/device/mediatek/common/mtklog/mtklog-config-bsp-user.prop
index 0b0efb3..c7204ba 100755
--- a/alps/device/mediatek/common/mtklog/mtklog-config-bsp-user.prop
+++ b/alps/device/mediatek/common/mtklog/mtklog-config-bsp-user.prop
@@ -3,12 +3,12 @@ mtklog_path = system_data
 com.mediatek.log.mobile.customer = MTK_Internal
 com.mediatek.log.mobile.AllMode = true
 
-com.mediatek.log.mobile.enabled = false
-com.mediatek.log.modem.enabled = false
-com.mediatek.log.net.enabled = false
-com.mediatek.log.connsysfw.enabled = false
-com.mediatek.log.gpshost.enabled = false
-com.mediatek.log.bthost.enabled = false
+com.mediatek.log.mobile.enabled = true
+com.mediatek.log.modem.enabled = true
+com.mediatek.log.net.enabled = true
+com.mediatek.log.connsysfw.enabled = true
+com.mediatek.log.gpshost.enabled = true
+com.mediatek.log.bthost.enabled = true
 
 com.mediatek.log.mobile.maxsize = 1000
 com.mediatek.log.modem.maxsize = 2000
--- a/alps/device/mediatek/system/common/mtklog/mtklog-config-basic-user.prop
+++ b/alps/device/mediatek/system/common/mtklog/mtklog-config-basic-user.prop
@@ -3,12 +3,12 @@ mtklog_path = system_data
 com.mediatek.log.mobile.customer = MTK_Internal
 com.mediatek.log.mobile.AllMode = true
 
-com.mediatek.log.mobile.enabled = false
-com.mediatek.log.modem.enabled = false
-com.mediatek.log.net.enabled = false
-com.mediatek.log.connsysfw.enabled = false
-com.mediatek.log.gpshost.enabled = false
-com.mediatek.log.bthost.enabled = false
+com.mediatek.log.mobile.enabled = true
+com.mediatek.log.modem.enabled = true
+com.mediatek.log.net.enabled = true
+com.mediatek.log.connsysfw.enabled = true
+com.mediatek.log.gpshost.enabled = true
+com.mediatek.log.bthost.enabled = true
 
 com.mediatek.log.mobile.maxsize = 1000
 com.mediatek.log.mobile.totalmaxsize = 1000
diff --git a/alps/device/mediatek/system/common/mtklog/mtklog-config-bsp-user.prop b/alps/device/mediatek/system/common/mtklog/mtklog-config-bsp-user.prop
old mode 100644
new mode 100755
index 054c520..782b1a3
--- a/alps/device/mediatek/system/common/mtklog/mtklog-config-bsp-user.prop
+++ b/alps/device/mediatek/system/common/mtklog/mtklog-config-bsp-user.prop
@@ -3,12 +3,12 @@ mtklog_path = system_data
 com.mediatek.log.mobile.customer = MTK_Internal
 com.mediatek.log.mobile.AllMode = true
 
-com.mediatek.log.mobile.enabled = false
-com.mediatek.log.modem.enabled = false
-com.mediatek.log.net.enabled = false
-com.mediatek.log.connsysfw.enabled = false
-com.mediatek.log.gpshost.enabled = false
-com.mediatek.log.bthost.enabled = false
+com.mediatek.log.mobile.enabled = true
+com.mediatek.log.modem.enabled = true
+com.mediatek.log.net.enabled = true
+com.mediatek.log.connsysfw.enabled = true
+com.mediatek.log.gpshost.enabled = true
+com.mediatek.log.bthost.enabled = true
 
 com.mediatek.log.mobile.maxsize = 1000
 com.mediatek.log.mobile.totalmaxsize = 1000
--- a/alps/vendor/mediatek/proprietary/packages/apps/MTKLogger/src/com/debug/loggerui/utils/Utils.java
+++ b/alps/vendor/mediatek/proprietary/packages/apps/MTKLogger/src/com/debug/loggerui/utils/Utils.java
@@ -2036,14 +2036,15 @@ public class Utils {
         if (MyApplication.getInstance() == null) {
             return false;
         }
-        if (!Utils.BUILD_TYPE.equals("eng")) {
-            Utils.logd(TAG, "Build type is not eng");
+               // MTK Logger
+        if (Utils.BUILD_TYPE.equals("eng") || Utils.BUILD_TYPE.equals("userdebug") || Utils.BUILD_TYPE.equals("user")) {
+            Utils.logd(TAG, "Build type is  eng or userdebug");
             isTagLogEnabled = MyApplication.getInstance().getSharedPreferences()
-                    .getBoolean(Utils.TAG_LOG_ENABLE, false);
+                    .getBoolean(Utils.TAG_LOG_ENABLE, true);
         } else {
-            Utils.logd(TAG, "Build type is eng");
+            Utils.logd(TAG, "Build type is not eng");
             isTagLogEnabled = MyApplication.getInstance().getSharedPreferences()
-                    .getBoolean(Utils.TAG_LOG_ENABLE, true);
+                    .getBoolean(Utils.TAG_LOG_ENABLE, false);
         }
         Utils.logi(TAG, "isTaglogEnable ? " + isTagLogEnabled);
         return isTagLogEnabled;
2.默认开启EM中配置

--- a/alps/device/mediatek/system/mssi_32_ago_h_ww/mssi_system.prop
+++ b/alps/device/mediatek/system/mssi_32_ago_h_ww/mssi_system.prop
@@ -1,6 +1,8 @@
 # xTS report upload needed
-persist.vendor.em.dy.debug=1
+persist.vendor.em.dy.debug=0
 
 # Disable IORAPD for AGO
 ro.iorapd.enable=false
@@ -10,3 +12,6 @@ service.sf.prime_shader_cache=0
 
 # remove the llkd process
 ro.llk.enable=false
3.gear id 大小修改
+++ b/alps/vendor/mediatek/proprietary/bootable/bootloader/lk/project/you_project.mk
-MTK_DYNAMIC_CCB_BUFFER_GEAR_ID =3
+MTK_DYNAMIC_CCB_BUFFER_GEAR_ID =12