Salut fdp2
Oui bien exécuté sur les deux tel en mode admin mais ca n'a rien changé, d'ailleurs la sauvegarde est vide elle fait 1
J'ai du coup fait la procédure manuellement au lieu d'utiliser l'outil graphique tout en un MiToolkit. Voilà ce que j'ai fait vu que je n'arrivai pas à récupérer directement la base de donnée par un explorateur.
J'ai suivi la procédure ci-dessous qui consite à utiliser ADB directement en ligne de commande.
Non-Rooted Android Phones
Enable developer mode and USB debugging on your phone and connect it to your computer
Get the ADB tool for Windows:
https://developer.android.com/studio/re ... tools.html
Create a backup of the Mi Home app: .\adb backup -noapk com.xiaomi.smarthome -f backup.ab
On your phone you must confirm the backup. Do not enter any password and press button to make the backup
Get ADB Backup Extractor and install it:
https://sourceforge.net/projects/adbextractor/
Extract all files from the backup on your computer: java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar
Unzip the ".tar" file
Open /com.xiaomi.smarthome/database/miio2.db with a SQLite browser (for instance
http://sqlitebrowser.org/)
Execute the query "select token from devicerecord where localIP is '192.168.0.1'" where you replace the IP address with the IP address of the Mi Home device you want to get the token from. It will show you the 32 character device token for your Mi Home device.
Pour le dernier point j'ai lu directement la database avec l'outil et j'ai pu récupérer très facilement mon Token (les champs sont identifies dans risque). J'ai donc pu récupérer le Token ainsi que l'app installé sur le telephone.
Si ça peut servir à d'autres qui n'arrive pas en utilisant l'outil MiToolKit vous pouvez utiliser la version manuelle (plus longue mais qui a fonctionné pour moi).