Skip to content

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

Open
nazarewk wants to merge 1 commit into
francescotescari:linuxfrom
nazarewk:fix/linux-unlock
Open

[UNLOCK IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works#98
nazarewk wants to merge 1 commit into
francescotescari:linuxfrom
nazarewk:fix/linux-unlock

Conversation

@nazarewk

@nazarewk nazarewk commented Feb 28, 2023

Copy link
Copy Markdown

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.

#41 - login URL fix
#94 - Use CookieManager from javafx
#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

francescotescari#41 - login URL fix
francescotescari#94 - Use CookieManager from javafx
francescotescari#67 - update JavaFX to show captcha properly

finishes with:
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 nazarewk changed the title 2023-02-28 aggregated fixes, but Xiaomi Server denies unlock anyway [TOOL IS DEAD] 2023-02-28 aggregated fixes, but Xiaomi servers denied unlock request Feb 28, 2023
@nazarewk nazarewk changed the base branch from master to linux February 28, 2023 15:06
@nazarewk nazarewk mentioned this pull request Feb 28, 2023
12 tasks
@nazarewk nazarewk changed the title [TOOL IS DEAD] 2023-02-28 aggregated fixes, but Xiaomi servers denied unlock request [UNLOCk TOOL IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works Mar 1, 2023
@nazarewk

nazarewk commented Mar 1, 2023

Copy link
Copy Markdown
Author

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

@nazarewk nazarewk changed the title [UNLOCk TOOL IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works [UNLOCK TOOL IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works Mar 1, 2023
@nazarewk nazarewk changed the title [UNLOCK TOOL IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works [UNLOCK IS DEAD] 2023-02-28 Xiaomi servers deny unlock request, but flash tool still works Mar 1, 2023
@ECarline

Copy link
Copy Markdown

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

@nazarewk

nazarewk commented Mar 13, 2023

Copy link
Copy Markdown
Author

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

@ghost

ghost commented May 12, 2023

Copy link
Copy Markdown

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

@jk2K

jk2K commented May 28, 2023

Copy link
Copy Markdown

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

Copy link
Copy Markdown

@jk2K Hello, is it still working?

topminipie added a commit to topminipie/XiaoMiToolV2 that referenced this pull request Dec 9, 2023
topminipie added a commit to topminipie/XiaoMiToolV2 that referenced this pull request Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants