MIUI使用ADB彻底关闭系统级广告

您所在的位置:网站首页 小米专用框架 MIUI使用ADB彻底关闭系统级广告

MIUI使用ADB彻底关闭系统级广告

2023-06-04 09:11| 来源: 网络整理| 查看: 265

开始操作 1.准备

MIUI手机、Windows电脑、数据线

手机做好备份,以防万一

2.下载ADB工具包

ADB 全称 Android Debug Bridge(Android 调试桥),是一个通用命令行工具,可以与模拟器实例或连接的Android 设备进行通信。查看介绍及下载可以直接前面的超链接。下载好之后把下面三个文件放到 C:\Windows

3.安装手机驱动

下载 MiFlash , 安装自带驱动

4.进入开发者模式

打开设置→我的设备→全部参数→在MIUI版本上连续点击, 直到提示 “您已处于开发者模式, 无需进行此操作. ”

然后打开设置→更多设置→开发者选项→向下拉勾选USB调试→弹出框点击确认

5.连接手机与电脑

用数据线将手机与电脑连接,手机提示 “允许USB调试吗?” 点击确定即可

6.使用ADB命令删除系统应用

①电脑上按 win + R ,输入 cmd 确定, 并 cd C:\Windows

②卸载应用的命令为 adb shell pm uninstall --user 0  , 复制并将 替换为你想要卸载的应用包名包名获取方法: 长按应用图标,选择「ⓘ应用信息」,再点击右上角的「ⓘ」图标,里面有「应用包名」条目,长按该条目就复制了应用包名

③在 cmd 窗口 单击鼠标右键粘贴

④按回车确认, 出现 success 即表示成功删除

这里列出一些自用可直接删除的包名 , 全部复制粘贴批量卸载即可:

adb shell pm uninstall --user 0 com.miui.systemAdSolution adb shell pm uninstall --user 0 com.miui.analytics adb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service adb shell pm uninstall --user 0 com.xiaomi.gamecenter adb shell pm uninstall --user 0 com.sohu.inputmethod.sogou.xiaomi adb shell pm uninstall --user 0 com.baidu.input_mi adb shell pm uninstall --user 0 com.xiaomi.ab adb shell pm uninstall --user 0 com.miui.translation.youdao adb shell pm uninstall --user 0 com.miui.translation.kingsoft

这里是较完整的可卸载包名 , 按需卸载

adb shell pm uninstall --user 0 com.miui.systemAdSolution(小米系统广告解决方案,必删) adb shell pm uninstall --user 0 com.miui.analytics (小米广告分析,这位是重量级,必删) adb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service (小米游戏中心服务) adb shell pm uninstall --user 0 com.xiaomi.gamecenter (小米游戏中心) adb shell pm uninstall --user 0 com.iflytek.inputmethod.miui (讯飞输入法小米版) adb shell pm uninstall --user 0 com.sohu.inputmethod.sogou.xiaomi (搜狗输入法小米版) adb shell pm uninstall --user 0 com.baidu.input_mi (百度输入法小米版) adb shell pm uninstall --user 0 com.xiaomi.ab (电商助手, 无用) adb shell pm uninstall --user 0 com.miui.player (小米音乐) adb shell pm uninstall --user 0 com.miui.video (小米视频) adb shell pm uninstall --user 0 com.miui.notes (小米便签) adb shell pm uninstall --user 0 com.miui.translation.youdao (有道翻译) adb shell pm uninstall --user 0 com.miui.translation.kingsoft (金山翻译) adb shell pm uninstall --user 0 com.android.email (邮件) adb shell pm uninstall --user 0 com.xiaomi.scanner (小米扫描) adb shell pm uninstall --user 0 com.miui.hybrid (混合器) adb shell pm uninstall --user 0 com.miui.bugreport (bug 反馈) adb shell pm uninstall --user 0 com.milink.service (米连服务) adb shell pm uninstall --user 0 com.android.browser (浏览器) adb shell pm uninstall --user 0 com.miui.gallery (相册) adb shell pm uninstall --user 0 com.miui.yellowpage (黄页, 卸载会导致来电标记失效) adb shell pm uninstall --user 0 com.xiaomi.midrop (小米快传) adb shell pm uninstall --user 0 com.miui.virtualsim (小米虚拟器) adb shell pm uninstall --user 0 com.xiaomi.payment (小米支付) adb shell pm uninstall --user 0 com.mipay.wallet (小米钱包) adb shell pm uninstall --user 0 com.android.soundrecorder (录音机) adb shell pm uninstall --user 0 com.miui.screenrecorder (屏幕录制) adb shell pm uninstall --user 0 com.android.wallpaper (壁纸) adb shell pm uninstall --user 0 com.miui.voiceassist (小爱同学) adb shell pm uninstall --user 0 com.miui.fm (收音机) adb shell pm uninstall --user 0 com.miui.touchassistant (悬浮球) adb shell pm uninstall --user 0 com.android.cellbroadcastreceiver (小米广播) adb shell pm uninstall --user 0 com.xiaomi.mitunes (小米助手) adb shell pm uninstall --user 0 com.xiaomi.pass (小米卡包) adb shell pm uninstall --user 0 com.android.thememanager (个性主题管理) adb shell pm uninstall --user 0 com.android.wallpaper (动态壁纸) adb shell pm uninstall --user 0 com.android.wallpaper.livepicker (动态壁纸获取)

另外, 以下 APP 千万不要碰, 除非你确定自己有可靠的救砖能力, 不嫌麻烦, 不怕数据丢失以及不追究我的责任:

【警告】以下系统自带应用删除后必定无法正常开机(来自网络),请避免误删:

com.miui.cloudservice  (小米云服务) com.xiaomi.account (小米账户) com.android.updater (系统更新) com.miui.cloudbackup (云备份) com.xiaomi.market (应用市场)

下面提供一些 MIUI 国际版(欧版 miui.eu)应用包名(欧版可以随便删):

com.google.android.googlequicksearchbox (Google) com.miui.miservice (服务与反馈) com.mi.health (健康) com.mi.globalbrowser (国际版浏览器) com.miui.huanji (小米换机) com.miui.newmidrive (小米云盘) com.miui.bugreport (用户反馈) com.miui.personalassistant (智能助理) com.android.hotwordenrollment.xgoogle (谷歌助理1) com.android.hotwordenrollment.okgoogle (谷歌助理2) com.xiaomi.mirecycle (小米回收) com.miui.videoplayer (小米视频国际版) com.google.android.projection.gearhead (Google Auto/Google 汽车) com.google.android.gms.location.history (Google 地理位置历史记录) com.google.ar.lens (Google 智能(虚拟)摄像头)

若在使用以上 adb 命令删除时出现「not installed for 0」错误,则可以尝试下面的命令:

adb pm uninstall -k --user 0 package:

另外,某个 APP 的包名可以通过长按图标,在属性中查看。在输入完上面的命令之后,长按该 APP 图标,选择「停止运行」、「停用」,就会发现这个应用的图标消失了。

附 广告hosts

转载自 https://zhuanlan.zhihu.com/p/365209386

AdGuard 可以直接订阅此规则 https://cdn.amoe.cc/web-static/private/ad-hosts/mi-ad-adguard.txt

127.0.0.1 a.stat.xiaomi.com 127.0.0.1 abtest.mistat.xiaomi.com 127.0.0.1 ad.mi.com 127.0.0.1 ad.xiaomi.com 127.0.0.1 ad.xiaomi.com 127.0.0.1 ad1.xiaomi.com 127.0.0.1 alog.umeng.com 127.0.0.1 api.ad.xiaomi.com 127.0.0.1 api.ad.xiaomi.com 127.0.0.1 api.io.mi.com 127.0.0.1 assistant.pandora.xiaomi.com 127.0.0.1 auth.api.gitv.tv 127.0.0.1 bss.pandora.xiaomi.com 127.0.0.1 cdn.ad.xiaomi.com 127.0.0.1 config.kuyun.com 127.0.0.1 data.mistat.xiaomi.com 127.0.0.1 de.pandora.xiaomi.com 127.0.0.1 dvb.pandora.xiaomi.com 127.0.0.1 e.ad.xiaomi.com 127.0.0.1 gallery.pandora.xiaomi.com 127.0.0.1 gvod.aiseejapp.atianqi.com 127.0.0.1 jellyfish.pandora.xiaomi.com 127.0.0.1 logonext.tv.kuyun.com 127.0.0.1 misc.in.duokanbox.com 127.0.0.1 misc.pandora.xiaomi.com 127.0.0.1 mishop.pandora.xiaomi.com 127.0.0.1 o2o.api.xiaomi.com 127.0.0.1 omgmta.play.aiseet.atianqi.com 127.0.0.1 pandora.mi.com Discovery More ... [荼蘼]网站工具 插件使用文档 电脑端目录在左侧,手机端在右下角, 反馈问题/功能建议/疑难解答 请 在下方评论 或 加入群 开始使 […]... [荼蘼]内容审核 插件使用文档 电脑端目录在左侧,手机端目录在右下角图标。反馈问题/功能建议/疑难解答 请 在下方评论 或 加入群 […]... Ubuntu Docker安装 前言 Docker 是目前很强大的一个开源容器,有了它你可以玩出亿种花样来。当然作为主力生产环境,CentOS […]... 关于我 访客统计 自 2022.06.13 至今 时间轴 2022.08.17 8.6 新购入的域名 misaka.s […]...


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3