Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: linux
Choose a base branch
from

Conversation

nazarewk
Copy link

@nazarewk nazarewk commented Feb 28, 2023

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
Copy link
Author

nazarewk commented Mar 1, 2023

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
@UpgradeDenied
Copy link

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

@nazarewk
Copy link
Author

nazarewk commented Mar 13, 2023

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
Copy link

ghost commented May 12, 2023

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

@jk2K
Copy link

jk2K commented May 28, 2023

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

@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