2022年年底,小米正式发布了MIUI14,说MIUI14可以删除8个核心应用以外的所有应用。然而我更新MIUI14后,并不像说的那样,再一次被当猴耍了。转念一想,国产的room怎么会做到这么良心呢?
一、MIUI14的大饼
首先,官网确实有说法的,"不可卸载应用仅8个",以下是MIUI14高大上的『锐意新生』官网:
MIUI 14 锐意新生更轻巧 / 更流畅 / 更安全 / 更人性化https://home.miui.com/ 这是我从官网截取到的【系统占用 大幅精简】部分的视频:
不过,网上也有不一样的声音,比如:
2022年10月之后新发售的小米手机才支持卸载。
再比如:
不可卸载的应用仅8个,指的是桌面有图标但是不可卸载的应用。
总结一下:仍然删不了绝大多数的垃圾系统应用,特别是一些没有图标在后台一直运行占用大量内存的无用系统app。
二、adb shell pm卸载应用
既然官方仍然不支持,我们有没有什么简单的方法去卸载这些不使用的应用呢?当然是可以的,本篇通过adb shell pm 命令去删除小米手机自带的系统应用,其他Android手机类似。
拿小米举例子,很多小米内置的应用在应用管理界面可以删除的,例如红外遥控,多看阅读等,而且卸载后也可以通过小米应用商店下载。所以,本篇讲的主要是如何卸载那些不同通过应用管理面板去卸载的应用。
当然,怕万一删除了重要的系统应用导致变砖,我拿我的备用机红米k30机器去做。在卸载之前,有312个应用程序。
通过adb shell pm list packages > test.txt,导出所有已安装应用的包名。如下:
package:com.miui.screenrecorderpackage:com.android.cts.priv.ctsshimpackage:com.qualcomm.qti.qms.service.telemetrypackage:com.android.internal.display.cutout.emulation.cornerpackage:com.google.android.ext.servicespackage:com.android.internal.display.cutout.emulation.doublepackage:com.android.providers.telephonypackage:com.android.dynsystempackage:com.miui.powerkeeperpackage:com.unionpay.tsmservice.mipackage:com.miui.qrpackage:com.android.providers.calendarpackage:com.miui.contentcatcherpackage:com.android.providers.mediapackage:com.milink.servicepackage:com.miui.dmregservicepackage:com.google.android.onetimeinitializerpackage:com.google.android.ext.sharedpackage:com.android.internal.systemui.navbar.gestural_wide_backpackage:com.xiaomi.powercheckerpackage:com.xiaomi.accountpackage:com.android.wallpapercropperpackage:com.bsp.catchlogpackage:com.xiaomi.cameratoolspackage:miui.systemui.pluginpackage:com.xiaomi.mi_connect_servicepackage:com.xiaomi.micloud.sdkpackage:com.sankuai.meituanpackage:com.android.protipspackage:com.miui.packageinstallerpackage:com.android.updaterpackage:com.android.externalstoragepackage:com.qualcomm.uimremoteclientpackage:com.xiaomi.gamecenter.sdk.servicepackage:com.android.htmlviewerpackage:com.miui.extraphotopackage:com.miui.securityaddpackage:com.android.companiondevicemanagerpackage:com.miui.gallerypackage:com.android.quicksearchboxpackage:com.android.mms.servicepackage:com.qualcomm.qti.qms.service.connectionsecuritypackage:com.android.providers.downloadspackage:com.xiaomi.paymentpackage:com.android.networkstack.inprocesspackage:com.miui.securitycenterpackage:com.android.internal.systemui.onehanded.gesturalpackage:vendor.qti.hardware.cacert.serverpackage:cmb.pbpackage:com.MobileTicketpackage:com.qualcomm.qti.telephonyservicepackage:com.android.browserpackage:com.miui.systemAdSolutionpackage:com.xiaomi.aiasst.visionpackage:com.miui.tsmclientpackage:com.qualcomm.qti.ridemodeaudiopackage:com.baidu.hipackage:vendor.qti.iwlanpackage:com.google.android.configupdaterpackage:com.android.soundrecorderpackage:com.baidu.input_mipackage:com.qualcomm.uimremoteserverpackage:com.miui.guardproviderpackage:android.qvaoverlay.commonpackage:com.android.providers.downloads.uipackage:com.android.vendingpackage:com.android.pacprocessorpackage:com.android.simappdialogpackage:com.miui.backuppackage:com.android.settings.overlay.miuipackage:com.miui.notificationpackage:android.overlay.commonpackage:com.android.connectivity.resourcespackage:com.miui.micloudsyncpackage:com.lilithgames.hgame.cnpackage:com.tencent.mmpackage:com.android.internal.display.cutout.emulation.holepackage:com.android.internal.display.cutout.emulation.tallpackage:com.miui.daemonpackage:com.miui.core.internal.assistantpackage:com.xiaomi.abpackage:com.android.networkstack.overlaypackage:com.android.modulemetadatapackage:com.android.certinstallerpackage:com.miui.vipservicepackage:com.android.carrierconfigpackage:com.google.android.marvin.talkbackpackage:com.wapi.wapicertmanagepackage:com.android.internal.systemui.navbar.threebuttonpackage:com.qti.qualcomm.datastatusnotificationpackage:androidpackage:com.android.systemui.notch.overlaypackage:com.android.contactspackage:com.qualcomm.wfd.servicepackage:com.miui.hybridpackage:android.miui.overlaypackage:com.miui.vsimcorepackage:com.miui.securitycorepackage:com.mi.healthpackage:com.qti.qualcomm.deviceinfopackage:com.rongcard.eidpackage:com.app.shanghai.metropackage:com.android.mmspackage:com.android.mtppackage:com.android.nfcpackage:com.android.onspackage:com.android.stkpackage:com.android.backupconfirmpackage:com.xiaomi.simactivate.servicepackage:com.mfashiongallery.emagpackage:com.goodix.gftestpackage:com.miui.phrasepackage:com.miui.miservicepackage:com.android.provisionpackage:org.codeaurora.imspackage:com.android.statementservicepackage:android.overlay.targetpackage:com.miui.systempackage:com.android.settings.intelligencepackage:com.android.calendarpackage:com.miui.translation.kingsoftpackage:com.miui.catcherpatchpackage:com.miui.miwallpaper.overlay.customizepackage:com.android.internal.systemui.navbar.gestural_extra_wide_backpackage:com.miui.systemui.devices.overlaypackage:com.miui.compasspackage:com.qualcomm.qti.dynamicddsservicepackage:com.miui.citpackage:com.miui.rompackage:com.miuix.editorpackage:com.qualcomm.qcrilmsgtunnelpackage:com.android.providers.settingspackage:com.miui.vpnsdkmanagerpackage:com.android.sharedstoragebackuppackage:com.xiaomi.location.fusedpackage:com.gh.gamecenterpackage:com.android.printspoolerpackage:com.miui.personalassistantpackage:com.miui.misoundpackage:com.android.wifi.resources.overlay.commonpackage:org.ifaa.aidl.managerpackage:com.android.dreams.basicpackage:com.google.android.overlay.modules.ext.servicespackage:com.android.incalluipackage:com.android.systemui.gesture.line.overlaypackage:com.fido.xiaomi.uafclientpackage:com.miui.bugreportpackage:com.android.sepackage:com.android.inputdevicespackage:com.fido.asmpackage:com.qti.slaservicepackage:com.android.bipspackage:com.qti.dpmserviceapppackage:com.android.fileexplorerpackage:com.qti.xdivertpackage:com.miui.voicetriggerpackage:com.xiaomi.macropackage:com.xiaomi.mircspackage:com.android.systemui.overlay.miuipackage:com.android.settings.overlay.commonpackage:com.google.android.overlay.gmsconfigpackage:com.miui.translation.youdaopackage:com.miui.mediafeaturepackage:com.miui.cloudbackuppackage:com.miui.face.overlay.miuipackage:com.android.cellbroadcastreceiverpackage:com.google.android.webviewpackage:com.google.android.overlay.modules.documentsuipackage:com.mipay.walletpackage:com.android.server.telecompackage:com.android.server.telecom.overlay.miuipackage:com.android.cellbroadcastservicepackage:com.android.keychainpackage:com.qti.snapdragon.qdcm_ffpackage:com.android.wifi.resources.overlay.targetpackage:com.android.camerapackage:com.xiaomi.xmsfpackage:com.google.android.gmspackage:com.google.android.gsfpackage:com.android.wifi.resourcespackage:com.android.phone.overlay.commonpackage:com.android.carrierconfig.overlay.commonpackage:com.android.calllogbackuppackage:com.miui.freeformpackage:com.xiaomi.miaudiovisualpackage:android.aosp.overlaypackage:com.android.systemui.overlay.commonpackage:com.tencent.mobileqqpackage:com.android.cameraextensionspackage:com.xiaomi.xmsfkeeperpackage:com.android.server.telecom.overlay.commonpackage:com.android.localtransportpackage:com.android.carrierdefaultapppackage:com.miui.wallpaper.overlay.customizepackage:com.qualcomm.qti.remoteSimlockAuthpackage:com.xiaomi.finddevicepackage:com.qualcomm.qti.devicestatisticsservicepackage:com.android.theme.font.notoserifsourcepackage:com.android.proxyhandlerpackage:com.xiaomi.joyosepackage:com.android.internal.display.cutout.emulation.waterfallpackage:com.qualcomm.qti.workloadclassifierpackage:com.miui.newhomepackage:com.miui.nextpaypackage:com.miui.notespackage:com.miui.wmsvcpackage:com.xiaomi.marketpackage:com.xiaomi.misettingspackage:com.google.android.printservice.recommendationpackage:com.xiaomi.mirrorpackage:com.miui.translationservicepackage:com.miui.cloudservicepackage:com.android.managedprovisioningpackage:com.miui.hybrid.accessorypackage:com.fingerprints.sensortesttoolpackage:com.miui.core.internal.editor.servicespackage:com.android.soundpickerpackage:com.tencent.soter.soterserverpackage:com.google.android.documentsuipackage:com.xiaomi.gnss.polarispackage:mos.tudourjkpackage:com.android.dreams.phototablepackage:com.miui.audiomonitorpackage:com.xiaomi.otrpbrokerpackage:com.miui.translation.xmcloudpackage:com.sohu.inputmethod.sogou.xiaomipackage:com.miui.touchassistantpackage:com.xiaomi.mtbpackage:com.baidu.BaiduMappackage:com.android.smspushpackage:com.miui.calculatorpackage:com.android.wallpaper.livepickerpackage:com.miui.cloudservice.sysbasepackage:com.miui.miwallpaperpackage:com.miui.securityinputmethodpackage:com.android.systemui.navigation.bar.overlaypackage:com.xiaomi.bluetoothpackage:com.gameabc.sgspadpackage:com.xiaomi.metoknlppackage:com.google.android.cellbroadcastservice.overlay.miuipackage:com.miui.cleanmasterpackage:com.android.storagemanagerpackage:com.miui.analyticspackage:com.android.bookmarkproviderpackage:com.android.settingspackage:com.qualcomm.qti.cnepackage:com.qualcomm.qti.lpapackage:com.qualcomm.qti.uimpackage:com.miui.weather2package:org.mipay.android.managerpackage:com.android.networkstack.tethering.inprocesspackage:com.android.networkstack.permissionconfigpackage:com.modemdebugpackage:com.qualcomm.locationpackage:com.android.cts.ctsshimpackage:com.miui.mediaeditorpackage:com.miui.yellowpagepackage:com.miui.accessibilitypackage:com.qualcomm.qti.uimGbaApppackage:com.qti.diagservicespackage:com.miui.systemui.carriers.overlaypackage:com.miui.systemui.overlay.devices.androidpackage:com.android.vpndialogspackage:com.android.phonepackage:com.android.overlay.gmstelephonypackage:com.android.shellpackage:com.android.wallpaperbackuppackage:com.android.providers.blockednumberpackage:com.miui.screenshotpackage:com.android.overlay.gmstelecommpackage:com.android.providers.userdictionarypackage:com.android.providers.media.modulepackage:com.android.emergencypackage:com.android.hotspot2.osuloginpackage:com.qualcomm.qti.xrcbpackage:com.android.internal.systemui.navbar.gesturalpackage:com.android.location.fusedpackage:com.android.deskclockpackage:com.android.systemuipackage:com.miui.core.internal.servicespackage:com.android.wifi.resources.xiaomipackage:com.android.bluetoothmidiservicepackage:com.qualcomm.qti.poweroffalarmpackage:com.qti.ltebcpackage:com.google.android.cellbroadcastreceiver.overlay.miuipackage:com.qti.phonepackage:com.android.permissioncontrollerpackage:com.android.thememanagerpackage:com.xiaomi.bsp.gps.npspackage:com.android.traceurpackage:com.miui.fmservicepackage:com.qualcomm.qti.gpudrivers.lito.api30package:com.taobao.taobaopackage:com.xiaomi.security.onetrackpackage:com.xiaomi.smarthomepackage:com.lbe.security.miuipackage:com.android.bluetoothpackage:com.qualcomm.timeservicepackage:com.xiaomi.drivemodepackage:com.qualcomm.atfwdpackage:com.qualcomm.embmspackage:com.android.providers.contactspackage:vendor.qti.imsrcspackage:com.android.captiveportalloginpackage:com.android.internal.systemui.navbar.gestural_narrow_backpackage:com.eg.android.AlipayGphonepackage:com.android.cellbroadcastreceiver.overlay.commonpackage:com.miui.corepackage:com.miui.facepackage:com.miui.homepackage:com.xiaomi.aiasst.servicepackage:com.miui.audioeffect
可以看到,内置的app非常多,其中有一些是核心应用,比如打电话发短信这种。还有一些例如小米视频、音乐等自带的实际可被第三方替换的应用。另外一些就是没有图标的后台运行占用内存的应用。
不多去废话,直接切入正题。卸载的命令:adb shell pm uninstall --user 0 包名,例如卸载小米视频:
adb shell pm uninstall --user 0 com.miui.video
运行后,显示success则卸载成功:
如果包名输入错误,则卸载失败,例如:
上面我们也导出了所有应用的包名,包名一共有300多个,如何知道每个应用的包名呢?这里给大家介绍一个容易被忽视的细节:
进入应用管理界面,点开打算卸载的应用,以壁纸为例(当然,壁纸是不建议卸载的):
2. 点击右上角那个带圆圈的i,就可以看到包名:
三、卸载后无影响的应用List
在卸载的过程中,也出现了几次问题。比如我卸载了查找设备后,导致一直弹toast。目前已经确认删除后没有什么不良反应的包名(长期更新):
adb shell pm uninstall --user 0 com.miui.videoadb shell pm uninstall --user 0 com.miui.playeradb shell pm uninstall --user 0 com.miui.contentextensionadb shell pm uninstall --user 0 com.xiaomi.gamecenter.sdk.serviceadb shell pm uninstall --user 0 com.miui.touchassistantadb shell pm uninstall --user 0 com.miui.yellowpageadb shell pm uninstall --user 0 com.miui.accessibilityadb shell pm uninstall --user 0 com.xiaomi.mi_connect_serviceadb shell pm uninstall --user 0 com.miui.personalassistantadb shell pm uninstall --user 0 com.miui.voicetriggeradb shell pm uninstall --user 0 com.miui.hybridadb shell pm uninstall --user 0 com.android.printspooleradb shell pm uninstall --user 0 com.xiaomi.powercheckeradb shell pm uninstall --user 0 com.xiaomi.mtbadb shell pm uninstall --user 0 com.xiaomi.paymentadb shell pm uninstall --user 0 com.mipay.walletadb shell pm uninstall --user 0 com.miui.cloudbackupadb shell pm uninstall --user 0 com.android.quicksearchboxadb shell pm uninstall --user 0 com.miui.tsmclientadb shell pm uninstall --user 0 com.xiaomi.xmsfadb shell pm uninstall --user 0 com.miui.nextpayadb shell pm uninstall --user 0 com.xiaomi.migameserviceadb shell pm uninstall --user 0 com.miui.carlink可选(投屏、互传):adb shell pm uninstall --user 0 com.milink.serviceadb shell pm uninstall --user 0 com.miui.mishare.connectivity小爱adb shell pm uninstall --user 0 com.miui.voiceassistadb shell pm uninstall --user 0 com.xiaomi.aiasst.visionadb shell pm uninstall --user 0 com.xiaomi.aiasst.service
注意,卸载后不会删除原有的安装包,所以内存并不会有显著的减少,且恢复出厂设置后这些内置的app也会再次被安装。
来源地址:https://blog.csdn.net/qq_21154101/article/details/128890118