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
?
|