MIUI7 系统应用精简(米5、红米note3)
1.由于安装的部分应用在root后无法使用,所以自己一直不能使用MIUI的开发版本。
2.前段时间米5升级MIUI8,实在是用着不咋地,耗电,王者还掉帧,于是降级miui7
3.被逼走上了刷机路。
1.首先解锁BL,解锁后可以刷第三方recovery。
2.刷第三方recovery,刷了第三方recovery之后就可以执行任意刷机包了。
3.重点到了,就是刷机脚本。
a.论坛上闲找到了一个屏蔽广告的刷机包。改改META-INF\com\google\android\updater-script,改后脚本如下,主要是用来精简系统应用的。(在米5、红米note3已经用过一个月,稳定,也比较省电,估计不会有啥大bug)
updater-script(刷机脚本)
run_program("/sbin/mount", "/system"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/GPStestSvc"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/NFCtestSvc"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/TSMClient"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/FingerprintServiceExtension"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/SmartcardService"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/dpmserviceapp"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SeempService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QtiTelephonyService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QtiGbaAuthService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PrimaryCardController"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/matcli"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/embms"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/DeviceInfo"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/datastatusnotification"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/com.quicinc.wbcserviceapp"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/BluetoothExt"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/BluetoothMidiService"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/CallLogBackup"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/StatementService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SecureExtAuthService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SampleExtAuthService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/FidoCryptoService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/FidoSuiService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/uimremoteclient"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/UpnpService"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/ProxyHandler"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/FPService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/StaProxyService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QFingerprintService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QComQMIPermissions"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/qcrilmsgtunnel"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/InterfacePermissions"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/ConferenceDialer"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/com.qualcomm.qti.services.secureui"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/CarrierCacheService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/CaptivePortalLogin"); set_perm_recursive(0, 0, 0755, 0000, "/system/vendor/app/CABLService"); set_perm_recursive(0, 0, 0755, 0000, "/system/vendor/app/colorservice"); set_perm_recursive(0, 0, 0755, 0000, "/system/vendor/app/ims"); set_perm_recursive(0, 0, 0755, 0000, "/system/vendor/app/imssettings"); set_perm_recursive(0, 0, 0755, 0000, "/system/vendor/app/vtremoteservice"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/OmaDownload"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/Backup"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/BackupRestoreConfirmation"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/YellowPage"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/EngineerToolOp"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/EngineerTool"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/SharedStorageBackup"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/CNEService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QtiFeedback"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/QtiBackupAgent"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/VoicePrintService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/xdivert"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SampleAuthenticatorService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SecureSampleAuthService"); set_perm_recursive(0, 0, 0755, 0644, "/system/app/TouchAssistant"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/WAPPushManager"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/InputDevices"); set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/ExternalStorageProvider"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PhotoTable"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/MiVRFramework"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/TSMClient.apk"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/MiDrive"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PacProcessor"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/LiveWallpapers"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/LiveWallpapersPicker"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/VisualizationWallpapers"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/CellBroadcastReceiver"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/HoloSpiralWallpaper"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/jjstore"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/jjknowledge"); set_perm_recursive(0, 0, 0755, 0644, "/system/app/jjhome"); set_perm_recursive(0, 0, 0755, 0644, "/system/app/jjcontainer"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/AutoTest"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/MiGameCenterSDKService"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/MiuiGallery"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/VirtualSim"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/MiDrop"); set_perm_recursive(0, 0, 0755, 0000, "/system/priv-app/Mipub"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/mab"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/Stk"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PicoTts"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/BasicDreams"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/UserDictionaryProvider"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/VoiceAssist"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/MiLivetalk"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/AntHalService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/XiaomiVip"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/XMPass"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/Mipay"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PaymentService"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/AnalyticsCore"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SystemBaseFunctions"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/ModemTestMode"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/Email"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/Metok"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PhaseBeam"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/Galaxy4"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/NoiseField"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/PrintSpooler"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/BugReport"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/GameCenter"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/MiuiVideo"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SystemAdSolution"); set_perm_recursive(0, 0, 0755, 0000, "/system/app/SogouInput"); delete_recursive("/system/data-app/AdEcommerce"); delete_recursive("/system/data-app/klobugreport"); delete_recursive("/system/data-app/MiFinance"); delete_recursive("/system/data-app/O2O"); delete_recursive("/system/data-app/talkback"); delete_recursive("/system/data-app/VTalk"); package_extract_dir("system", "/system"); run_program("/sbin/umount", "/system"); run_program("/sbin/sleep", "1"); run_program("/sbin/reboot")
说明文件
AntHalService.apk 就是天线接口,用来连接天线的。
CarrierConfig 运营商网络配置,不能删
CNEService 建议保留 作用未知
ConfigurationClient ota升级可能用
WfdClient.apk - WLAN DISPLAY OPPO宣传中的在电脑上播放手机上的内容就是这个
WfdService.apk可删除屏幕投影服务
WfdService.apk - 同上
VoicePrintService 声纹,类似声音解锁或者语音文字转换
ExternalStorageProvider 外部存储设备,包括外存储卡,所以不能删,否则sd卡不能访问
statementservice 实现App Links
StepsProvider。记步相关。
Qti 高通的缩写
QtiBackupAgent.apk可删除未知,大概与系统备份有关 不良反应未知
CNEservice 不知道干啥的建议保留
xdivert.apk可删除X转移?不良反应未知
SampleAuthenticatorService 可删 不知道干啥的 感觉是实习生写的垃圾
SampleExtAuthService 可删 不知道干啥的 感觉是实习生写的垃圾
SecureExtAuthService 可删 不知道干啥的 感觉是实习生写的垃圾
SecureSampleAuthService 可删 不知道干啥的 感觉是实习生写的垃圾
cablservice.apk cabl是通过计算屏幕显示内容调节背光,而下拉状态栏的自动模式是根据环境亮度来调节屏幕背光,两者的原理不同。只是不知道为什么,或许调节亮度有哪个函数触发了cabl程序,产生的上述效果。
uimremoteclient 虚拟sim卡用的
Provision.apk不可删恢复出厂后第一次开机要用删了会卡在个性那里
ManagedProvisioning.apk 这个不要删除,系统第一次开机启动的第一个应用就是ManagedProvisioning.apk,里面做了一些初始化过程。如果强制删除了恢复出厂设置时开机可能会出现按键没反应无法锁屏等BUG。
PacProcessor 用于和电脑进行连接。但国内的手机助手软件大都使用USB调试甚至使用无线网来连接,这个家伙根本没有出场的机会。
btmultisim.apk多sim卡 (双卡应用,删除后无法使用双卡,读的书少,我乱猜的!)
Webviewgoogle.apk不要删
删了很多软件会FC,如:短信!!、邮件、支付宝钱包、12306等等。
CaptivePortalLogin.apk,当wifi链接上以后存在问号和感叹号情况下,手机也会提示你wifi需要配置,你点击提示,就会显示“所需要的程序不存在",也不会跳转到wifi所需要跳转的网页上。
结论是CaptivePortalLogin.apk可以删除或禁用,但是wifi链接出现问题的时候,可能会造成无法跳转进入wifi的网页进行验证。
CNEService.apk 用小狐狸(叹号杀手)可以修改成功,但是重启后又变回了www.qualcomm.cn,很长时间让我十分费解。于是我终于下定决心好好研究一下是为什么~最后发现是CNEService.apk这个应用在每次开机时候都会重新指定检测服务器,强行改成www.qualcomm.cn。
com.android.sharedstoragebackup
[-shared|-noshared]
默认是-noshared 这个会问你是否连手机储存空间或是SD卡的档案一起备份。
我是不知道若有APP安装在SD卡上的时候 没打这指令是否会略过,但若大部分的APP都安装在内部空间的话,这个就可以不用打了。
(注:HTC有保留一个名为com.android.sharedstoragebackup的APK,这个APK会将SD卡或是手机空间的资料都备份 因此除非使用-nosystem指令,否则对于HTC手机来说 不管有无打-shared 手机空间的资料一定会备份)。
com.android.wallpapercropper 这个在裁剪壁纸的时候会用到, 不用的时候可以禁用掉)
DownloadProviderUi只是下载管理器,删除无影响的
DownloadProvider.apk不能删除,否则无法下载
Provision.apk 【设置向导/选删】 ,开机引导,恢复出厂需要
CABLService.apk 可删除 传感器服删除后还是能自动调整背光不良反应未知
CaptivePortalLogin.apk 可删除 不良反应未知
colorservice.apk 可删除 彩色服务,不良反应未知,亮度里色彩一样可调
com.qualcomm.qti.services.secureui.apk 可删除 未知安全的用户界面服务,不良反应未知
ConfigurationClient 接入点配置,不删吧
*com.qualcomm.location.apk 删了估计不能定位
Bluetooth.apk 可删除 蓝牙共享(删除后可用第三方软件代替)
BluetoothExt.apk 可删除 蓝牙相关应用 删了无法开启蓝牙不需要蓝牙的就删
btmultisim 打开文件看与蓝牙相关,还是不删了
embms.apk 多媒体广播多播业务
FingerprintServiceExtension 用来让指纹可以支持切换主页功能
dpmserviceapp可能和光线感应和距离感应有关
b.下载的host列表有的会导致qq头像不能访问,有点会导致百度图片无法访问,对进行了修改。\system\etc\hosts
hosts
127.0.0.1 localhost
#mi
#127.0.0.1 connect.rom.miui.com
127.0.0.1 logupdate.avlyun.sec.miui.com
127.0.0.1 adinfo.ra1.xlmc.sec.miui.com
127.0.0.1 image.box.xiaomi.com
127.0.0.1 pdc.micloud.xiaomi.net
127.0.0.1 api.miui.security.xiaomi.com
127.0.0.1 update.miui.com
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 reader.browser.miui.com
127.0.0.1 adinfo.ra1.xlmc.sec.miui.com
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 file.market.xiaomi.com
127.0.0.1 sdkconfig.ad.xiaomi.com
127.0.0.1 test.ad.xiaomi.com
127.0.0.1 new.api.ad.xiaomi.com
#mi Tech
127.0.0.1 f3.mi-stat.gslb.mi-idc.com
127.0.0.1 app01.nodes.gslb.mi-idc.com
127.0.0.1 app02.nodes.gslb.mi-idc.com
127.0.0.1 pic.xcarimg.com
127.0.0.1 m.sjzhushou.com
127.0.0.1 sousuo.xm.sjzhushou.com
127.0.0.1 pgl.yoyo.org
127.0.0.1 yun.rili.cn
127.0.0.1 beha.ksmobile.com
127.0.0.1 i3.go2yd.com
127.0.0.1 zhwnlapi.etouch.cn
127.0.0.1 applog.uc.cn
127.0.0.1 v2.fm.duokanbox.com
127.0.0.1 sousuo.xm.sjzhushou.com
127.0.0.1 twin13a131.sandai.net
127.0.0.1 alog.umeng.co
127.0.0.1 alog.umeng.com
127.0.0.1 ex.umengcloud.com
127.0.0.1 report.adview.cn
127.0.0.1 www.adview.cn
127.0.0.1 cm.p4p.cn.yahoo.com
127.0.0.1 p.alimama.com
127.0.0.1 aliunion.cn.yahoo.com
127.0.0.1 ads.yimg.com
127.0.0.1 union.mop.com
127.0.0.1 adnet.sohu.com
127.0.0.1 cpc.sogou.com
127.0.0.1 adv.imhb.cn
127.0.0.1 ad.greedland.net
127.0.0.1 ad1.greedland.net
127.0.0.1 links.panr.com
127.0.0.1 dds.sogua.com
127.0.0.1 show.sogua.com
127.0.0.1 unionch.qyule.com
127.0.0.1 union.link7.cn
127.0.0.1 code.51sotu.com
127.0.0.1 ad.363.in
127.0.0.1 a.779.net
127.0.0.1 x.cnxad.com
127.0.0.1 cheer.cjoy.com.cn
127.0.0.1 u.ads8.com
127.0.0.1 cpc.xioo.cn
127.0.0.1 code.qihoo.com
127.0.0.1 lianmeng.com
127.0.0.1 allyes.com
127.0.0.1 code.comuce.com
127.0.0.1 uid.mdbchina.com
127.0.0.1 f.mtmmt.com
127.0.0.1 hi2.totolook.com
127.0.0.1 www.u88.cn
127.0.0.1 file.chanet.com.cn
127.0.0.1 home.wangmeng.com
127.0.0.1 union.narrowad.com
127.0.0.1 131377.com
127.0.0.1 yee.js.cn
127.0.0.1 cpc.9v.cn
127.0.0.1 click.jebe.renren.com
127.0.0.1 cupid.jebe.renren.com
127.0.0.1 shaft.jebe.renren.com
127.0.0.1 jebe.renren.com
127.0.0.1 jebe.xnimg.cn
#qq
127.0.0.1 adsview.qq.com
127.0.0.1 adsclick.qq.com
127.0.0.1 adsfile.qq.com
#127.0.0.1 pingma.qq.com
#qq head picture
#127.0.0.1 q.qlogo.cn
#qq zone weibo pic
#127.0.0.1 m.qpic.cn
#baidu
127.0.0.1 a.baidu.com
127.0.0.1 api.tuisong.baidu.com
127.0.0.1 baidutv.baidu.com
127.0.0.1 bar.baidu.com
127.0.0.1 boscdn.bpc.baidu.com
127.0.0.1 c.baidu.com
127.0.0.1 cjhq.baidu.com
127.0.0.1 cpro.baidu.com
127.0.0.1 drmcmm.baidu.com
127.0.0.1 fclick.baidu.com
127.0.0.1 hm.baidu.com
127.0.0.1 sa3.tuisong.baidu.com
127.0.0.1 nsclick.baidu.com
127.0.0.1 static1.searchbox.baidu.com
127.0.0.1 sa.tuisong.baidu.com
#127.0.0.1 tb1.bdstatic.com
#127.0.0.1 c.hiphotos.baidu.com
#127.0.0.1 tb.hiphotos.baidu.com
c.因为系统文件都没有删,倘若觉得有问题也可以通过改成下面脚本全量还原
updater-script(还原脚本)
run_program("/sbin/mount", "/system");
delete_recursive("/system/data-app/AdEcommerce");
delete_recursive("/system/data-app/klobugreport");
delete_recursive("/system/data-app/MiFinance");
delete_recursive("/system/data-app/O2O");
delete_recursive("/system/data-app/talkback");
delete_recursive("/system/data-app/VTalk");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/app");
run_program("/sbin/umount", "/system");
run_program("/sbin/sleep", "1");
run_program("/sbin/reboot")