复制代码
- ECHO OFF
- MODE con: COLS=80 LINES=38
- TITLE MIUI 系统精简
- color 3f
- :STARTS
- CLS
- ECHO. 小米系统精简
- ECHO. =============================================================================
- ECHO.
- ECHO. 请确定已经安装好驱动,并以经打开USB调试模式
- ECHO. 双清系统后,应用自动恢复
- ECHO.
- ECHO. 百度搜索:黑域基地
- ECHO. ==============================================================================
- ECHO. 功能选择项(请输入相对应的序号按回车键确认):
- ECHO.
- ECHO. 小米系统类 测试命令类
- ECHO.
- ECHO. 1.卸载 影音 2.卸载 搜索 0.查看连接状态
- ECHO. 3.卸载 常用语 4.卸载 浏览器 80.卸载谷歌套件
- ECHO. 5.卸载 悬浮球 6.卸载 传送门 81.系统内置应用
- ECHO. 7.卸载 小米钱包 8.卸载 小米支付 82.进入恢复模式
- ECHO. 9.卸载 内容服务 10.卸载 米币支付 83.重启手机系统
- ECHO.11.卸载 用户反馈 12.卸载 系统更新 84.动画修改0.76
- ECHO.13.卸载 小爱同学 14.卸载 安全守护 85.查看电池状态
- ECHO.15.卸载 生活黄页 16.卸载 手机管家 86.进入解锁模式
- ECHO.17.卸载 通知管理 18.卸载 开机引导 87.查看屏幕分辨率
- ECHO.19.卸载 智慧生活 20.卸载 智能助理 88.修改屏幕密度480
- ECHO.21.卸载 小米互传 22.卸载 游戏服务
- ECHO.23.卸载 服务与反馈 24.卸载 小米智能卡
- ECHO.25.卸载 USIM卡应用 26.卸载 小米互联通信
- ECHO.27.卸载 小爱语音引擎 28.卸载 小米SIM卡激活
- ECHO.29.卸载 快应用服务框架 30.卸载 小米互联通信服务
- ECHO.31.卸载 银联可信服务安全组件 32.卸载 小米系统广告解决方案
- ECHO.33.卸载 小米广告分析 34.卸载 小米游戏中心
- ECHO.35.卸载 搜狗输入法 36.卸载 小米便签
- ECHO.37.卸载 邮件 38.卸载 扫一扫
- ECHO.39.卸载 混合器 40.卸载 录音机
- ECHO.41.卸载 屏幕录制 42.卸载 壁纸
- ECHO.43.卸载 语音助手 44.卸载 收音机
- ECHO.45.卸载 小米广播 46.卸载 小米助手
- ECHO.47.卸载 个性主题管理 48.卸载 动态壁纸
- ECHO.49.卸载 动态壁纸获取 50.卸载 KLO bug 反馈
- ECHO. ………………………………………………………………………………………………………
- set choice=
- set /p choice=输入对应数字,然后按回车键(Success代表成功):
- if /i "%choice%"=="0" goto 0
- if /i "%choice%"=="1" goto 1
- if /i "%choice%"=="2" goto 2
- if /i "%choice%"=="3" goto 3
- if /i "%choice%"=="4" goto 4
- if /i "%choice%"=="5" goto 5
- if /i "%choice%"=="6" goto 6
- if /i "%choice%"=="7" goto 7
- if /i "%choice%"=="8" goto 8
- if /i "%choice%"=="9" goto 9
- if /i "%choice%"=="10" goto 10
- if /i "%choice%"=="11" goto 11
- if /i "%choice%"=="12" goto 12
- if /i "%choice%"=="13" goto 13
- if /i "%choice%"=="14" goto 14
- if /i "%choice%"=="15" goto 15
- if /i "%choice%"=="16" goto 16
- if /i "%choice%"=="17" goto 17
- if /i "%choice%"=="18" goto 18
- if /i "%choice%"=="19" goto 19
- if /i "%choice%"=="20" goto 20
- if /i "%choice%"=="21" goto 21
- if /i "%choice%"=="22" goto 22
- if /i "%choice%"=="23" goto 23
- if /i "%choice%"=="24" goto 24
- if /i "%choice%"=="25" goto 25
- if /i "%choice%"=="26" goto 26
- if /i "%choice%"=="27" goto 27
- if /i "%choice%"=="28" goto 28
- if /i "%choice%"=="29" goto 29
- if /i "%choice%"=="30" goto 30
- if /i "%choice%"=="31" goto 31
- if /i "%choice%"=="32" goto 32
- if /i "%choice%"=="33" goto 33
- if /i "%choice%"=="34" goto 34
- if /i "%choice%"=="35" goto 35
- if /i "%choice%"=="36" goto 36
- if /i "%choice%"=="37" goto 37
- if /i "%choice%"=="38" goto 38
- if /i "%choice%"=="39" goto 39
- if /i "%choice%"=="40" goto 40
- if /i "%choice%"=="41" goto 41
- if /i "%choice%"=="42" goto 42
- if /i "%choice%"=="43" goto 43
- if /i "%choice%"=="44" goto 44
- if /i "%choice%"=="45" goto 45
- if /i "%choice%"=="46" goto 46
- if /i "%choice%"=="47" goto 47
- if /i "%choice%"=="48" goto 48
- if /i "%choice%"=="49" goto 49
- if /i "%choice%"=="50" goto 50
- if /i "%choice%"=="80" goto 80
- echo 选择无效,请重新输入
- echo.
- :0
- CLS
- COLOR 2f
- adb devices
- pause
- GOTO STARTS
- :1
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.player
- adb shell pm uninstall --user 0 com.miui.video
- pause
- GOTO STARTS
- :2
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.quicksearchbox
- pause
- GOTO STARTS
- :3
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.phrase
- pause
- GOTO STARTS
- :4
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.browser
- pause
- GOTO STARTS
- :5
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.touchassistant
- pause
- GOTO STARTS
- :6
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.contentextension
- pause
- GOTO STARTS
- :7
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.mipay.wallet
- pause
- GOTO STARTS
- :8
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.nextpay
- pause
- GOTO STARTS
- :9
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.newhome
- pause
- GOTO STARTS
- :10
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.payment
- pause
- GOTO STARTS
- :11
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.bugreport
- pause
- GOTO STARTS
- :12
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.updater
- pause
- GOTO STARTS
- :13
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.voiceassist
- pause
- GOTO STARTS
- :14
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.greenguard
- pause
- GOTO STARTS
- :15
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.yellowpage
- pause
- GOTO STARTS
- :16
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.securitycenter
- pause
- GOTO STARTS
- :17
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.notification
- pause
- GOTO STARTS
- :18
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.provision
- pause
- GOTO STARTS
- :19
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.hybrid.accessory
- pause
- GOTO STARTS
- :20
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.personalassistant
- pause
- GOTO STARTS
- :21
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.mishare.connectivity
- pause
- GOTO STARTS
- :22
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service
- pause
- :23
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.miservice
- pause
- GOTO STARTS
- :24
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.tsmclient
- pause
- GOTO STARTS
- :25
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.stk
- pause
- GOTO STARTS
- :26
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.mi_connect_service
- pause
- GOTO STARTS
- :27
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.mibrain.speech
- pause
- GOTO STARTS
- :28
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.simactivate.service
- pause
- GOTO STARTS
- :29
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.hybrid
- pause
- GOTO STARTS
- :30
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.mi_connect_service
- pause
- GOTO STARTS
- :31
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.unionpay.tsmservice.mi
- pause
- GOTO STARTS
- :32
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0??com.miui.systemAdSolution
- pause
- GOTO STARTS
- :33
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0??com.miui.analytics
- pause
- GOTO STARTS
- :34
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.gamecenter
- pause
- GOTO STARTS
- :35
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.sohu.inputmethod.sogou.xiaomi
- pause
- GOTO STARTS
- :36
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.notes
- pause
- GOTO STARTS
- :37
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.email
- pause
- GOTO STARTS
- :38
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.scanner
- pause
- GOTO STARTS
- :39
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.hybrid
- pause
- GOTO STARTS
- :40
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.soundrecorder
- pause
- GOTO STARTS
- :41
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.screenrecorder
- pause
- GOTO STARTS
- :42
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.wallpaper
- pause
- GOTO STARTS
- :43
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.voiceassist
- pause
- GOTO STARTS
- :44
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.fm
- pause
- GOTO STARTS
- :45
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.cellbroadcastreceiver
- pause
- GOTO STARTS
- :46
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.xiaomi.mitunes
- pause
- GOTO STARTS
- :47
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.thememanager
- pause
- GOTO STARTS
- :48
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.wallpaper
- pause
- GOTO STARTS
- :49
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.android.wallpaper.livepicker
- pause
- GOTO STARTS
- :50
- CLS
- COLOR 2f
- adb shell pm uninstall --user 0 com.miui.klo.bugreport
- pause
- GOTO STARTS
- GOTO STARTS
test2.bat即为你所需要的脚本复制代码
- gawk "BEGIN{split(\":1,:2,:3,:4,:5,:8,:9,:11,:43,:56\",dat, \",\");for (i=1; i<=length(dat); i++)tA[dat[i]];print \"ECHO OFF\nMODE con: COLS=80 LINES=38\nCLS\nCOLOR 2f\n\"}/^:[0-9]{1,2}/{if($0 in tA){print;while((getline)>0){if($0~/^adb shell pm/){print};if($0~/^pause$/){next}}}}" test1.bat>test2.bat
复制代码
- @echo off
- rem 输入数字,以空格或逗号分隔
- set /p str=
- for %%a in (%str%) do call :%%a & pause
- exit
- :1
- echo 1
- exit /b
- :2
- echo 2
- exit /b
下面每一组最后 的复制代码
- for %%a in (%choice%) do call :%%a
改成复制代码
- GOTO STARTS
复制代码
- goto :eof
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |