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



©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,684评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 87,143评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 151,214评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,788评论 1 277
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,796评论 5 368
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,665评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,027评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,679评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 41,346评论 1 299
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,664评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,766评论 1 331
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,412评论 4 321
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,015评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,974评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,203评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,073评论 2 350
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,501评论 2 343

推荐阅读更多精彩内容