IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 移动开发 -> 20220415拿掉MT6739在android10下的DebugLoggerUI的方法(eng模式) -> 正文阅读

[移动开发]20220415拿掉MT6739在android10下的DebugLoggerUI的方法(eng模式)

20220415拿掉MT6739在android10下的DebugLoggerUI的方法(eng模式)
2022/4/15 16:24


1、首先找到包名:com.debug.loggerui/DebugLoggerUI
注意:在串口和adb命令行所适用的命令有细微的差异!!
开机之后DebugLoggerUI会置于最前面,但是还是找不到包名!
你可以通过触摸屏/OTG接口的鼠标将DebugLoggerUI打开到前台。

127|console:/ # ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
127|console:/ #?
127|console:/ # dumpsys | grep "mFocused"
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{17d8749 token=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}}
? ? mFocusedWindow=Window{750a9d3 u0 StatusBar}
console:/ #?
console:/ #?
console:/ # dumpsys | grep "mFocused" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{17d8749 token=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}}
? ? mFocusedWindow=Window{8076344 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}
? ? mFocusedApp=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}
console:/ #?
console:/ #?
console:/ # dumpsys | grep "mFocused" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{bed0eea token=Token{c956d5 ActivityRecord{4896f8c u0 com.debug.loggerui/.MainActivity t8}}}
? ? mFocusedWindow=Window{19c2bab u0 com.debug.loggerui/com.debug.loggerui.MainActivity}
? ? mFocusedApp=Token{c956d5 ActivityRecord{4896f8c u0 com.debug.loggerui/.MainActivity t8}}

console:/ #?


Microsoft Windows [版本 10.0.19044.1586]
(c) Microsoft Corporation。保留所有权利。

C:\Users\s>adb shell dumpsys | findstr "mFocused"
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{17d8749 token=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}}
? ? mFocusedWindow=Window{750a9d3 u0 StatusBar}

C:\Users\s>adb shell dumpsys | findstr "mFocused"
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{17d8749 token=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}}
? ? mFocusedWindow=Window{8076344 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}
? ? mFocusedApp=Token{fef0950 ActivityRecord{e22c313 u0 com.android.permissioncontroller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity t7}}

C:\Users\s>
C:\Users\s>adb shell dumpsys | findstr "mFocused"
Can't find service: gsiservice
Can't find service: idmap
? mFocusedApp=AppWindowToken{bed0eea token=Token{c956d5 ActivityRecord{4896f8c u0 com.debug.loggerui/.MainActivity t8}}}
? ? mFocusedWindow=Window{19c2bab u0 com.debug.loggerui/com.debug.loggerui.MainActivity}
? ? mFocusedApp=Token{c956d5 ActivityRecord{4896f8c u0 com.debug.loggerui/.MainActivity t8}}

C:\Users\s>

?

?

'?

?

?

?


2、在mt6739的android10找找到com.debug.loggerui/DebugLoggerUI所在的目录:
./out/.ninja_log:29542?? ?29551?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/values-zh-rCN_strings.arsc.flat?? ?ba920dd5d012debf
./out/.ninja_log:29547?? ?29551?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/values_styles.arsc.flat?? ?5033a0aa295c34da
./out/.ninja_log:29547?? ?29551?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/values_themes.arsc.flat?? ?5fdfc87ba339b670
./out/.ninja_log:29548?? ?29552?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/xml_log_files_item.xml.flat?? ?5cc9b476ed378d5
./out/.ninja_log:29546?? ?29552?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/values-zh-rTW_strings.arsc.flat?? ?3fbe9e3c6e88a70c
./out/.ninja_log:29549?? ?29552?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/xml_log_folder_item.xml.flat?? ?f55661164f8292a8
./out/.ninja_log:29549?? ?29553?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/xml_settings.xml.flat?? ?aead7bdf6902dc5e
./out/.ninja_log:29547?? ?29554?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/flat-res/vendor/mediatek/proprietary/packages/apps/MTKLogger/res/values_strings.arsc.flat?? ?9418c4d4b2a4777
./out/.ninja_log:29550?? ?29578?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/exported-sdk-libs?? ?552ccb5262475a5b
./out/.ninja_log:29578?? ?29727?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/manifest/AndroidManifest.xml?? ?b6c97af0c25bf950
./out/.ninja_log:29727?? ?29825?? ?1650350754?? ?out/target/product/bird_k39tv1_bsp_1g/obj/APPS/DebugLoggerUI_intermediates/package-res.apk?? ?78ab657042b62744
./out/.ninja_log:29727?? ?29825?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/aapt2.srcjar?? ?78ab657042b62744
./out/.ninja_log:29727?? ?29825?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/extra_packages?? ?78ab657042b62744
./out/.ninja_log:29727?? ?29825?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/src/R.stamp?? ?78ab657042b62744
./out/.ninja_log:29727?? ?29825?? ?1650350754?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/proguard_options?? ?78ab657042b62744
./out/.ninja_log:29826?? ?29880?? ?1650350755?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/java-source-list?? ?d17ee72126cc1650
./out/.ninja_log:32953?? ?32957?? ?1650350758?? ?out/target/product/bird_k39tv1_bsp_1g/obj/NOTICE_FILES/src/system/app/DebugLoggerUI/DebugLoggerUI.apk.txt?? ?a61ca684cf24d880
./out/.ninja_log:32952?? ?33068?? ?1650350758?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/link_type?? ?3651667f8684f0a3
./out/.ninja_log:2871662?? ?2880622?? ?1650353605?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/classes-full-debug.jar?? ?84ea4f2763f6ea3c
./out/.ninja_log:2885344?? ?2885406?? ?1650353610?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/classes-combined.jar?? ?1e44aaa27ae538d5
./out/.ninja_log:2885407?? ?2885424?? ?1650353610?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/classes.jar?? ?80d2fb32198df9fc
./out/.ninja_log:2885424?? ?2899009?? ?1650353624?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/dex/classes.dex?? ?f8c5f36955e89628
./out/.ninja_log:2899009?? ?2899034?? ?1650353624?? ?out/target/common/obj/APPS/DebugLoggerUI_intermediates/classes.dex?? ?29c792a3287f109f
./out/.ninja_log:3270217?? ?3272106?? ?1650353997?? ?out/target/product/bird_k39tv1_bsp_1g/obj/APPS/DebugLoggerUI_intermediates/package.apk?? ?1e739e8dc22e2658

./out/.ninja_log:3272106?? ?3272162?? ?1650353997?? ?out/target/product/bird_k39tv1_bsp_1g/system/app/DebugLoggerUI/DebugLoggerUI.apk?? ?e9359697a76d9d50
^C
rootroot@rootroot-System-Product1:~/mt6739_android10$?
rootroot@rootroot-System-Product1:~/mt6739_android10$?
rootroot@rootroot-System-Product1:~/mt6739_android10$ grep DebugLoggerUI . -R


Z:\mt6739_android10\vendor\mediatek\proprietary\packages\apps\MTKLogger
将Android.mk改名为Android.mk.bak,删除out重新编译即可!


参考资料:
https://blog.csdn.net/u012932409/article/details/121973862
Android11.0(R) MTK user版本打开MtkLog功能


https://blog.csdn.net/liumengluo/article/details/113771733
51-Android之user版本启用MtkLogger

单独改这里无效:
Z:\mt6739_android10\device\mediatek\system\mssi_32_ago_h_ww\SystemConfig.mk
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = yes
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes
修改为:
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = no
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes


Z:\mt6739_android10\device\mediatek\system\mssi_32_ago_ww\SystemConfig.mk
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = yes
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes
修改为:
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = no
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes


Z:\mt6739_android10\device\mediatek\system\mssi_32_ago_ww_armv7\SystemConfig.mk
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = yes
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes
修改为:
MSSI_MTK_LIVEWALLPAPER_APP = no
MSSI_MTK_LOG_CUSTOMER_SUPPORT = no
MSSI_MTK_LOG_SUPPORT_MOBILE_LOG = yes
MSSI_MTK_MDLOGGER_SUPPORT = yes

?

  移动开发 最新文章
Vue3装载axios和element-ui
android adb cmd
【xcode】Xcode常用快捷键与技巧
Android开发中的线程池使用
Java 和 Android 的 Base64
Android 测试文字编码格式
微信小程序支付
安卓权限记录
知乎之自动养号
【Android Jetpack】DataStore
上一篇文章      下一篇文章      查看所有文章
加:2022-04-22 18:47:45  更:2022-04-22 18:51:19 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/24 22:37:54-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码