Para desinstalar múltiples apps instaladas en el móvil Xiami Mi 5 he seguido estos pasos:
1) Entramos en Configuracion/Acerca de
Hacemos clic 7 veces en VersionMIUI
2) Entramos en Configuracion/Sistema y Dispositivo/Ajustes adicionales/
Entramos en Opciones de desarrollador
Activamos 'Opciones de desarrollador'
Activamos 'Depuración USB'
Activamos 'Instalar via USB'
Activamos 'Depuración USB (Ajustes seguridad)'
3) Conectamos ahora el movil al PC por USB y en el móvil nos mostrará una pantalla en la que se solicita autorización para que el PC depure mostrando cierta clave RSA del PC. Aceptamos
4) Abrimos una terminal en el PC y editamos el fichero:
sudo gedit /etc/udev/rules.d/51-android.rules
5) Añadimos la línea siguiente, en mi caso 2727 es el ID de XIAOMI sacado de: https://android.googlesource.com/platform/system/core/+/android-4.4.2_r1/adb/usb_vendors.c:
SUBSYSTEM=="usb", ATTR{idVendor}=="2717", MODE="0666", GROUP="plugdev"
6) Guardamos el fichero
7) Ajustamos los permisos del fichero
chmod a+r /etc/udev/rules.d/51-android.rules
8) Lanzamos el comando 'adb devices' y debe sacar el móvil enganchado
$ adb devices
List of devices attached
024a89570005 device
9) Lanzamos el comando 'adb shell' y accedemos al prompt del SO del móvil
$ adb shell
vince:/ $
10) Sacamos la lista de apk de 'com.miui' y de 'com.xiaomi' que vienen preinstalados y precisan de 'demasiados permisos'
vince:/ $ pm list packages -f | grep com.miui
package:/system/app/MiuiScreenRecorder/MiuiScreenRecorder.apk=com.miui.screenrecorder
package:/system/app/PowerKeeper/PowerKeeper.apk=com.miui.powerkeeper
package:/system/app/SecurityAdd/SecurityAdd.apk=com.miui.securityadd
package:/system/priv-app/MiuiGallery/MiuiGallery.apk=com.miui.gallery
package:/data/app/com.miui.msa.global-OORRVl5tLrOn7tXXuNaPbQ==/base.apk=com.miui.msa.global
package:/system/priv-app/SecurityCenter/SecurityCenter.apk=com.miui.securitycenter
package:/system/app/GuardProvider/GuardProvider.apk=com.miui.guardprovider
package:/system/app/MiCloudSync/MiCloudSync.apk=com.miui.micloudsync
package:/system/app/MiuiDaemon/MiuiDaemon.apk=com.miui.daemon
package:/system/app/HybridPlatform/HybridPlatform.apk=com.miui.hybrid
package:/system/app/VsimCore/VsimCore.apk=com.miui.vsimcore
package:/system/app/SecurityCoreAdd/SecurityCoreAdd.apk=com.miui.securitycore
package:/system/app/SYSOPT/SYSOPT.apk=com.miui.sysopt
package:/system/app/miuisystem/miuisystem.apk=com.miui.system
package:/system/app/GlobalPackageInstaller/GlobalPackageInstaller.apk=com.miui.global.packageinstaller
package:/system/app/KSICibaEngine/KSICibaEngine.apk=com.miui.translation.kingsoft
package:/system/framework/framework-ext-res/framework-ext-res.apk=com.miui.rom
package:/system/app/BugReport/BugReport.apk=com.miui.bugreport
package:/system/app/YouDaoEngine/YouDaoEngine.apk=com.miui.translation.youdao
package:/system/priv-app/CloudBackup/CloudBackup.apk=com.miui.cloudbackup
package:/system/priv-app/MiuiFreeformService/MiuiFreeformService.apk=com.miui.freeform
package:/system/app/Notes/Notes.apk=com.miui.notes
package:/system/app/WMService/WMService.apk=com.miui.wmsvc
package:/system/app/TranslationService/TranslationService.apk=com.miui.translationservice
package:/system/app/CloudService/CloudService.apk=com.miui.cloudservice
package:/system/app/HybridAccessory/HybridAccessory.apk=com.miui.hybrid.accessory
package:/system/app/TouchAssistant/TouchAssistant.apk=com.miui.touchassistant
package:/system/priv-app/CloudServiceSysbase/CloudServiceSysbase.apk=com.miui.cloudservice.sysbase
package:/system/app/MiWallpaper/MiWallpaper.apk=com.miui.miwallpaper
package:/data/app/com.miui.cleanmaster-1/base.apk=com.miui.cleanmaster
package:/system/app/AnalyticsCore/AnalyticsCore.apk=com.miui.analytics
package:/data/app/com.miui.weather2-3QMiUSF8l7CJmzgfGWtq3A==/base.apk=com.miui.weather2
package:/system/priv-app/YellowPage/YellowPage.apk=com.miui.yellowpage
package:/system/app/AntiSpam/AntiSpam.apk=com.miui.antispam
package:/system/priv-app/WeatherProvider/WeatherProvider.apk=com.miui.providers.weather
package:/system/app/SmsExtra/SmsExtra.apk=com.miui.smsextra
package:/system/app/miui/miui.apk=com.miui.core
package:/system/priv-app/MiuiHome/MiuiHome.apk=com.miui.home
package:/system/priv-app/MusicFX/MusicFX.apk=com.miui.audioeffect
vince:/ $ pm list packages -f | grep com.xiaomi
package:/system/app/PowerChecker/PowerChecker.apk=com.xiaomi.powerchecker
package:/system/app/XiaomiAccount/XiaomiAccount.apk=com.xiaomi.account
package:/system/priv-app/RtMiCloudSDK/RtMiCloudSDK.apk=com.xiaomi.micloud.sdk
package:/system/app/PaymentService/PaymentService.apk=com.xiaomi.payment
package:/system/priv-app/MiRecycle/MiRecycle.apk=com.xiaomi.mirecycle
package:/system/app/XiaomiSimActivateService/XiaomiSimActivateService.apk=com.xiaomi.simactivate.service
package:/system/app/FusedLocationProvider/FusedLocationProvider.apk=com.xiaomi.location.fused
package:/system/app/GameCenterGlobal/GameCenterGlobal.apk=com.xiaomi.glgm
package:/system/app/UpnpService/UpnpService.apk=com.xiaomi.upnp
package:/system/app/XiaomiServiceFramework/XiaomiServiceFramework.apk=com.xiaomi.xmsf
package:/data/app/com.xiaomi.mipicks-YOCv_fXNYFwAN81W138v5g==/base.apk=com.xiaomi.mipicks
package:/system/priv-app/FindDevice/FindDevice.apk=com.xiaomi.finddevice
package:/system/app/Joyose/Joyose.apk=com.xiaomi.joyose
package:/data/app/com.xiaomi.midrop-rw_M9fL2PyzZ64NNQpjLhQ==/base.apk=com.xiaomi.midrop
package:/system/app/AppIndexProvider/AppIndexProvider.apk=com.xiaomi.providers.appindex
package:/system/app/MiuiBluetooth/MiuiBluetooth.apk=com.xiaomi.bluetooth
package:/system/priv-app/MiuiScanner/MiuiScanner.apk=com.xiaomi.scanner
package:/data/app/com.xiaomi.discover-1/base.apk=com.xiaomi.discover
11) Eliminamos los que no queramos tener instalados, poco a poco y sin prisa no hay que liarla. En mi caso eliminé:
vince:/ $ pm uninstall -k --user 0 com.miui.compass
vince:/ $ pm uninstall -k --user 0 com.android.calendar
vince:/ $ pm uninstall -k --user 0 com.miui.calculator
vince:/ $ pm uninstall -k --user 0 com.miui.weather2
vince:/ $ pm uninstall -k --user 0 com.miui.providers.weather
vince:/ $ pm uninstall -k --user 0 com.miui.videoplayer
vince:/ $ pm uninstall -k --user 0 com.miui.player
vince:/ $ pm uninstall -k --user 0 com.xiaomi.midrop
vince:/ $ pm uninstall -k --user 0 com.android.browser
12) Salimos de la consola del móvil
vince:/ $ exit
13) Cerramos la consola del PC
$ exit
14) Desconectamos el cable USB
15) Entramos en Configuracion/Sistema y Dispositivo/Ajustes adicionales/
Entramos en Opciones de desarrollador
Desactivamos 'Opciones de desarrollador'
Desactivamos 'Depuración USB'
Desactivamos 'Instalar via USB'
Desactivamos 'Depuración USB (Ajustes seguridad)'
Referencias:
https://www.fonearena.com/blog/275578/how-to-uninstall-apps-on-xiaomi-without-root.html
https://developer.android.com/studio/run/device
https://android.googlesource.com/platform/system/core/+/android-4.4.2_r1/adb/usb_vendors.c