小米盒子刷机精简系统
1、恢复出厂设置
2、型号7次,开启开发者
3、关闭自动更新,关闭屏保,休眠
4、开启未知,adb调试
5、插入USB线,查看版本是否符合,查看已连接列表是否有wifi
6、如果没有wifi,adb tcpip 5555,开启wifi调试
以上基本操作完成后开始精简和安装app
1、先安装无广告桌面(当贝,氧气等)
2、安装要开机启动的app(电视家)
3、安装AnyLauncher(开机启动app)
4、打开AnyLauncher,设置启动app,并设置守护进程
说明:
如果设置了开机启动电视家,守护进程是any,整个系统就锁死在电视家上了
一般情况下锁定桌面程序为守护进程
使用adb命令报错解决办法:
- 执行adb报错: server version (32) doesn't match this client (41); killing,解决步骤:
- 输入命令:netstat -ano|findstr "5037"
- 输入:tasklist |findstr "12692"
- adb tcpip 5555(开启WIFI链接)
最后附上bat文件
@echo off
:begin
title 电视精简工具
Setlocal EnableDelayedExpansion
attrib +h ".\root\logo" >nul
color 16
adb kill-server
echo. ******************************************************************
echo.
echo. 电视机跟电脑要在同一网下
echo.
echo. 并记下电视机IP地址在下方输入,此破解为小米系统适用,
echo.
echo. 切勿尝试拿去破解其它型号!!!切勿尝试拿去破解其它型号!!
echo.
echo. 注意得确保程序名为英文,名字不能有空格!!192.168.0.106
echo.
echo.
echo. ******************************************************************
echo.
echo.
set /p ip=请输入盒子的IP地址,然后按回车键:
echo 正在连接,请稍后
set matchStr=connected
:connect
for /f "tokens=*" %%i in ('%~dp0adb connect %ip%') do @set result=%%i
echo %result% | findstr %matchStr% >nul && (echo 连接成功) || (echo 连接失败,正在重试
(goto connect))
set installResult=Success
:installDangbei
::cls
color 16
echo 安装中,请稍后
for /f "tokens=*" %%i in ('%~dp0adb install app3.apk') do @set installMessage=%%i
echo in=%installMessage%
echo %installMessage% | findstr %installResult% >nul && (echo 安装成功) || (echo 安装失败,正在重试
(goto installDangbei))
echo 正在精简中,耐心等待。。。
adb shell pm uninstall --user 0 com.xiaomi.mitv.upgrade
adb shell pm uninstall --user 0 com.xiaomi.account
adb shell pm uninstall --user 0 com.droidlogic
adb shell pm uninstall --user 0 com.xiaomi.mitv.payment
adb shell pm uninstall --user 0 com.xiaomi.upnp
adb shell pm uninstall --user 0 com.xiaomi.mitv.pay
adb shell pm uninstall --user 0 com.xiaomi.tv.appupgrade
adb shell pm uninstall --user 0 com.android.vpndialogs
adb shell pm uninstall --user 0 com.xiaomi.mitv.remotecontroller.service
adb shell pm uninstall --user 0 com.xiaomi.mitv.tvpush.tvpushservice
adb shell pm uninstall --user 0 com.xiaomi.account.auth
adb shell pm uninstall --user 0 com.jiajia.yundonghui.mitv
adb shell pm uninstall --user 0 com.xiaomi.statistic
adb shell pm uninstall --user 0 com.mipay.wallet.tv
adb shell pm uninstall --user 0 com.xiaomi.smarthome.tv
adb shell pm uninstall --user 0 com.xiaomi.mitv.appstore
adb shell pm uninstall --user 0 com.xiaomi.milink.udt
adb shell pm uninstall --user 0 com.mi.miplay.mitvupnpsink
adb shell pm uninstall --user 0 com.mi.umifrontend
adb shell pm uninstall --user 0 com.miui.tv.analytics
adb shell pm uninstall --user 0 com.xiaomi.dlnatvservice
adb shell pm uninstall --user 0 com.xiaomi.mitv.assistant.manual
adb shell pm uninstall --user 0 com.xiaomi.mitv.shop
adb shell pm uninstall --user 0 com.xiaomi.devicereport
adb shell pm uninstall --user 0 com.xiaomi.mibox.lockscreen
adb shell pm uninstall --user 0 com.duokan.airkan.tvbox
adb shell pm uninstall --user 0 com.mi.umi
adb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.service.mibo
adb shell pm uninstall --user 0 com.android.proxyhandler
adb shell pm uninstall --user 0 com.android.statementservice
adb shell pm uninstall --user 0 com.xiaomi.mitv.advertis
adb shell pm uninstall --user 0 com.android.location.fused
adb shell pm uninstall --user 0 mitv.service
adb shell pm uninstall --user 0 com.xiaomi.mitv.service
adb shell pm uninstall --user 0 com.xiaomi.screenrecorder
adb shell pm uninstall --user 0 com.mitv.screensaver
adb shell pm uninstall --user 0 com.ktcp.tvvideo
adb shell pm uninstall --user 0 com.miui.systemAdSolution
adb shell pm uninstall --user 0 com.pptv.tvsports.preinstall
adb shell pm uninstall --user 0 com.duokan.videodaily
adb shell pm uninstall --user 0 com.pplive.atv
adb shell pm uninstall --user 0 com.xiaomi.mitv.advertise
adb shell pm uninstall --user 0 com.mitv.tvhome
echo.
ping 127.0.0.1 -n 5 >nul
goto connect
echo "恭喜您,精简成功,快去重启下电视,看看效果吧!"
@pause
刷机包在这里:xiaomi.rar
附参考文章:
https://zhuanlan.zhihu.com/p/173370224?utm_id=0
发表评论