Table of Contents

Pour débloquer un téléphone Xiaomi

https://forum.xda-developers.com/t/tool-win-lin-mac-miunlocktool-unlock-bootloader-of-xiaomi-devices-on-mac-linux.3782444/

https://github.com/francescotescari/XiaoMiToolV2/issues/23#issuecomment-927234350

sudo apt install git openjdk-11-jre openjdk-11-jdk gradle
git clone https://github.com/francescotescari/XiaoMiToolV2.git && cd XiaoMiToolV2 && git checkout linux
cd XiaoMiToolV2

Edit line 39 of src/main/java/com/xiaomitool/v2/gui/controller/LoginController.java**, change it to:
  private static final String LOGIN_URL = "https://account.xiaomi.com/pass/serviceLogin?sid=unlockApi&json=false&passive=true&hidden=false&_snsDefault=facebook&checkSafePhone=true&_locale=" + Locale.getDefault().getLanguage().toLowerCase();
  
./gradlew build && ./gradlew run

I chose “Global” region and logged in, it required 2FA to be sent to the phone. 2FA entry form didn't quite fit the window but I was able to enter the code and authenticate, then after a warning screen it showed the above confirmation.

For others on MacOS with font issues, use 11.0.8. 11.0.12 can't produce fonts, while later versions changed their apis too much. The easiest way to do this is to get a tar.gz from Oracle (you'll have to register a throwaway account) and direct your script there like this: JAVA_HOME=/Users/you/Downloads/jdk-11.0.8.jdk/Contents/Home ./gradlew run

[tycho:~/git/XiaoMiToolV2] linux(+1/-1) 5m40s ± cd ~/git/XiaoMiToolV2 && sudo JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ ./gradlew run

Pour réinitialiser les enceintes Mi Network Wifi Speaker

Bibliographie

https://forum.hacf.fr/t/downgrade-xiaomi-speaker-network-upnp/698/46