francescotescari / XiaoMiToolV2

XiaomiTool V2 - Modding tool for xiaomi devices
https://www.xiaomitool.com
Apache License 2.0
625 stars 124 forks source link

[UNLOCK IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works #98

Open nazarewk opened 1 year ago

nazarewk commented 1 year ago

looks like the tool can be declared officially dead, even though I got it to login with QR code scanner (top-right corner before putting your username & password in) Xiaomi Server denied the request to unlock device.

UPDATE: it is still very useful for flashing and recovering dead devices.

https://github.com/francescotescari/XiaoMiToolV2/pull/41 - login URL fix https://github.com/francescotescari/XiaoMiToolV2/pull/94 - Use CookieManager from javafx https://github.com/francescotescari/XiaoMiToolV2/pull/67 - update JavaFX to show captcha properly

finishes with screenshot-2023-02-28_16-02-12 :

Failed to unlock your device, Xiaomi server returned error 20045:
Error descripiton: Unknown error: 20045
Server description: Please use common user tool on the official website
nazarewk commented 1 year ago

update: mi flash tool is still quite useful even if I had to unlock from (official app) inside Windows VM

UpgradeDenied commented 1 year ago

hey i was trying to compile this for windows but it wasant working, do u mind sending me some bins?

nazarewk commented 1 year ago

I did not build it for Windows:

  1. I used the official xiaomi unlock tool on Windows to lift the bootloader lock
  2. I bricked the device when configuring it
  3. I un-bricked the device using this tool on Linux
Nik-Kot commented 1 year ago

This is most likely caused by the official Xiaomi unlock tool getting updated, but this tool still presenting itself as an old version.

jk2K commented 1 year ago

this pr, work for me. thanks

https://github.com/jk2K/XiaoMiToolV2/tree/mac

branch mac

for mac m1

build.gradle.kts

-    id("org.openjfx.javafxplugin") version "0.0.9"
+    id("org.openjfx.javafxplugin") version "0.0.13"

...

javafx {
-   version = "19.0.2.1"
+   version = "20.0.1"
    modules = listOf("javafx.controls", "javafx.fxml", "javafx.web", "javafx.swing")
}

gradle/wrapper/gradle-wrapper.properties

- distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
flixcrls commented 10 months ago

@jk2K Hello, is it still working?