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
相关推荐
水瓶丫头站住18 分钟前
安卓APP如何适配不同的手机分辨率
android·智能手机
xvch1 小时前
Kotlin 2.1.0 入门教程(五)
android·kotlin
xvch5 小时前
Kotlin 2.1.0 入门教程(七)
android·kotlin
望风的懒蜗牛5 小时前
编译Android平台使用的FFmpeg库
android
浩宇软件开发5 小时前
Android开发,待办事项提醒App的设计与实现(个人中心页)
android·android studio·android开发
ac-er88886 小时前
Yii框架中的多语言支持:如何实现国际化
android·开发语言·php
苏金标7 小时前
The maximum compatible Gradle JVM version is 17.
android
zhangphil7 小时前
Android BitmapShader简洁实现马赛克,Kotlin(一)
android·kotlin
iofomo11 小时前
Android平台从上到下,无需ROOT/解锁/刷机,应用级拦截框架的最后一环,SVC系统调用拦截。
android
我叫特踏实12 小时前
SensorManager开发参考
android·sensormanager