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
相关推荐
帅得不敢出门几秒前
Gradle命令编译Android Studio工程项目并签名
android·ide·android studio·gradlew
problc40 分钟前
Flutter中文字体设置指南:打造个性化的应用体验
android·javascript·flutter
帅得不敢出门11 小时前
安卓设备adb执行AT指令控制电话卡
android·adb·sim卡·at指令·电话卡
我又来搬代码了13 小时前
【Android】使用productFlavors构建多个变体
android
德育处主任14 小时前
Mac和安卓手机互传文件(ADB)
android·macos
芦半山14 小时前
Android“引用们”的底层原理
android·java
迃-幵15 小时前
力扣:225 用队列实现栈
android·javascript·leetcode
大风起兮云飞扬丶15 小时前
Android——从相机/相册获取图片
android
Rverdoser16 小时前
Android Studio 多工程公用module引用
android·ide·android studio
aaajj16 小时前
[Android]从FLAG_SECURE禁止截屏看surface
android