MTK默认开启Modem Log

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

修改分为三部分:

1.config修改
diff 复制代码
--- 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
diff 复制代码
--- 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
diff 复制代码
--- 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中配置
diff 复制代码
--- 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 大小修改
diff 复制代码
+++ 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
相关推荐
诸神黄昏EX1 小时前
Android 分区相关介绍
android
大白要努力!2 小时前
android 使用SQLiteOpenHelper 如何优化数据库的性能
android·数据库·oracle
Estar.Lee2 小时前
时间操作[取当前北京时间]免费API接口教程
android·网络·后端·网络协议·tcp/ip
Winston Wood2 小时前
Perfetto学习大全
android·性能优化·perfetto
Dnelic-5 小时前
【单元测试】【Android】JUnit 4 和 JUnit 5 的差异记录
android·junit·单元测试·android studio·自学笔记
Eastsea.Chen8 小时前
MTK Android12 user版本MtkLogger
android·framework
长亭外的少年15 小时前
Kotlin 编译失败问题及解决方案:从守护进程到 Gradle 配置
android·开发语言·kotlin
建群新人小猿17 小时前
会员等级经验问题
android·开发语言·前端·javascript·php
1024小神19 小时前
tauri2.0版本开发苹果ios和安卓android应用,环境搭建和最后编译为apk
android·ios·tauri
兰琛19 小时前
20241121 android中树结构列表(使用recyclerView实现)
android·gitee