Installer le logiciel ADB (Android Debug Bridge)
Activer le mode Développeur et Débogage USB sur le smartphone
Connecter le smartphone à l'ordinateur : le logiciel doit retourner le nom de l'appareil. Il peut apparaître comme reconnu mais non autorisé (unauthorized). Il faut alors accepter.
did@thot:~$ adb devices List of devices attached 1d9df55a0407 unauthorized
did@thot:~$ adb devices List of devices attached 1d9df55a0407 device
did@thot:~$ adb shell 1|merlinnfc:/ $ pm list packages | grep miui package:com.miui.screenrecorder package:com.miui.powerkeeper ...
merlinnfc:/ $ pm uninstall -k --user 0 com.xiaomi.payment Success
adb shell cmd package install-existing nom_du_package