当前位置: 首页 > news >正文

命令行使用ADB,不用root,完美卸载小米预装软件

ADB安装与运行

install java

下载安装

注意选择JDK17以上版本
https://www.oracle.com/java/technologies/downloads/#jdk22-windows
在这里插入图片描述

选择中间的安装文件下载
在这里插入图片描述
在这里插入图片描述

编辑系统变量

C:\Program Files (x86)\Java\jdk-22
在这里插入图片描述
在这里插入图片描述
C:\Program Files (x86)\Java\jdk-22\bin
把C:\Program Files\Common Files\Oracle\Java\javapath放到%JAVA_HOME%\bin后面
在这里插入图片描述

检查版本

在这里插入图片描述

命令行安装Android SDK

下载Andoid SDK命令行工具

https://developer.android.com/studio/intro/update#sdk-manager
https://developer.android.com/tools/sdkmanager
The sdkmanager is a command-line tool that lets you view, install, update, and uninstall packages for the Android SDK. If you’re using Android Studio, then you don’t need to use this tool, and you can instead manage your SDK packages from the IDE.
The sdkmanager tool is provided in the Android SDK Command-Line Tools package. To use the SDK Manager to install a version of the command-line tools, follow these steps:

  1. Download the latest “command line tools only” package from the Android Studio downloads page and unzip the package.
  2. Move the unzipped cmdline-tools directory into a new directory of your choice, such as android_sdk. This new directory is your Android SDK directory.
  3. In the unzipped cmdline-tools directory, create a sub-directory called latest.
  4. Move the original cmdline-tools directory contents, including the lib directory, bin directory, NOTICE.txt file, and source.properties file, into the newly created latest directory. You can now use the command-line tools from this location.
    https://developer.android.com/studio
    在这里插入图片描述
    ###命令行安装Android SDK

cd C:\Setup\mobile\cmdline-tools\bin
C:\Setup\mobile\cmdline-tools\bin>sdkmanager --sdk_root=C:\Setup\mobile\android-sdk\ “cmdline-tools;latest”
在这里插入图片描述
在这里插入图片描述
C:\Setup\mobile\android-sdk\cmdline-tools\latest\bin>sdkmanager --list
在这里插入图片描述

下载Android SDK平台工具并调试

下载工具

https://developer.android.google.cn/tools/releases/platform-tools?hl=en
在这里插入图片描述

手机设置调试模式

手机设置打开以下蓝色选项
在这里插入图片描述
通过以下命令,让SDK获取手机授权
C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb kill-server

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb start-server

此时在手机上确认USB为传输文件,而不是仅充电模式
在这里插入图片描述
C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb devices
List of devices attached
bbf62877 device

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm list packages
在这里插入图片描述

卸载小米预装软件

以下软件均可安全卸载

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.sohu.inputmethod.sogou.xiaomi
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.android.browser
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.personalassistant
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.android.quicksearchbox
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.yellowpage
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.hybrid
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.miservice
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.contentextension
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.aiasst.service
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.voiceassist
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.analytics
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.bugreport
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.systemAdSolution
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.ab
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.accessibility
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.nextpay
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.payment
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.macro
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.freeform
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.miui.carlink

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.iflytek.inputmethod.miui
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 cn.wps.moffice_eng
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.shop
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.wallstreetcn.news
Success

C:\Setup\mobile\platform-tools-latest-windows\platform-tools>adb shell pm uninstall --user 0 com.xiaomi.mi_connect_service
Success
在这里插入图片描述
在这里插入图片描述

卸载输入法效果显示

在这里插入图片描述

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • nginx代理服务地址时添加帐号密码认证
  • 解决mysql事件调度器重启服务后自动失效的问题
  • 西门子s7第三方(S7netplus)读写操作
  • 从0开始搭建vue + flask 旅游景点数据分析系统(一):创建前端项目
  • 2024电赛H题参考方案(+视频演示+核心控制代码)——自动行使小车
  • 函数式编程范式
  • go-kratos 学习笔记(6) 数据库gorm使用
  • 后端返回列表中包含图片id,如何将列表中的图片id转化成url
  • vue3 命令运行窗口暴露网络地址,以及修改端口号
  • AI技术革命对未来就业的影响
  • GUI图形化界面操作(下部)
  • 基于Java的微博传播分析系统的设计与实现
  • 设计模式实战:任务调度系统的设计与实现
  • Vue2从基础到实战(v-bind对于样式控制的增强-操作style)
  • Python 和 Boto3 生成 Amazon S3 对象的 HTTPS URL
  • #Java异常处理
  • C++类的相互关联
  • JS 面试题总结
  • mockjs让前端开发独立于后端
  • 后端_ThinkPHP5
  • 排序算法学习笔记
  • 入口文件开始,分析Vue源码实现
  • 实战:基于Spring Boot快速开发RESTful风格API接口
  • 无服务器化是企业 IT 架构的未来吗?
  • 小程序上传图片到七牛云(支持多张上传,预览,删除)
  • 正则表达式
  • MiKTeX could not find the script engine ‘perl.exe‘ which is required to execute ‘latexmk‘.
  • 不要一棍子打翻所有黑盒模型,其实可以让它们发挥作用 ...
  • ​【C语言】长篇详解,字符系列篇3-----strstr,strtok,strerror字符串函数的使用【图文详解​】
  • ​决定德拉瓦州地区版图的关键历史事件
  • ​如何使用QGIS制作三维建筑
  • (+3)1.3敏捷宣言与敏捷过程的特点
  • (19)夹钳(用于送货)
  • (动手学习深度学习)第13章 计算机视觉---微调
  • (二)springcloud实战之config配置中心
  • (附源码)ssm基于微信小程序的疫苗管理系统 毕业设计 092354
  • (附源码)ssm经济信息门户网站 毕业设计 141634
  • (附源码)计算机毕业设计高校学生选课系统
  • (力扣)1314.矩阵区域和
  • (免费领源码)Java#Springboot#mysql农产品销售管理系统47627-计算机毕业设计项目选题推荐
  • (太强大了) - Linux 性能监控、测试、优化工具
  • (最新)华为 2024 届秋招-硬件技术工程师-单板硬件开发—机试题—(共12套)(每套四十题)
  • ***详解账号泄露:全球约1亿用户已泄露
  • .axf 转化 .bin文件 的方法
  • .bat批处理(十一):替换字符串中包含百分号%的子串
  • .net Application的目录
  • .NET CORE 3.1 集成JWT鉴权和授权2
  • .NET Framework Client Profile - a Subset of the .NET Framework Redistribution
  • .net framework4与其client profile版本的区别
  • .net 简单实现MD5
  • .NET 应用架构指导 V2 学习笔记(一) 软件架构的关键原则
  • .net遍历html中全部的中文,ASP.NET中遍历页面的所有button控件
  • .net反编译的九款神器
  • .net项目IIS、VS 附加进程调试
  • @Builder用法