-
Notifications
You must be signed in to change notification settings - Fork 124
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
Fix error during unlocking caused by 'fastboot getvar token' returning 'GetVar Variabe Not found' on newer devices #88
base: master
Are you sure you want to change the base?
Conversation
…e Not found' on newer devices when unlocking bootloader.
Fixes #54 |
Hey can you provide a build with that fix somewhere? i am trying to do it but i am not a java dev. Thanks in advance |
Onto it, figuring out how to properly build this |
Here you go, please report if anything doesn't work as intended, i'll probably try to fix |
Omg I will try that tomorrow, a friend of mine has a Xiaomi to unlock, let's see. Thank you very much either way |
There is something strange on login, it says the JSON response {R S OK}, something like that. Even the old app is giving problems |
I'm trying to login however I'm never receiving the SMS with the verification code |
OK so small update, scanning the QR code to login will NOT work due to the aforementioned JSON issue; here's what you need to do: First problem solved, the second issue was that on Linux it couldn't find any devices and looking at the terminal there seemed to be some permission issue that chmod +x couldn't fix but this was easy to overcome. Second problem solved, then I ran into another issue; when booting to fastboot it would stay there for a split second and then black screen and no device on lsusb, this was an easy one. See I used the usb hub my keyboard had, using the usb ports on the back of my PC solved this issue. And now my fourth problem, while trying to solve issue #3 I ran out of SMS verification attempts and I shall wait 24 hours to receive another one. |
YES! It worked and I was able to unlock my Mi 8 Lite on Linux, thanks |
I also tried running java application .Please find below the error i got : |
Hello, Can you please make a mac os build? I am trying to build this branch but always getting java errors. |
I've done what you said. I changed the LoginController file and the JavaFX version for the captcha to shows up. Then, I built and ran the tool, I also navigated to the site you pointed out and requested and SMS code. After I tried to place the code in the tool I got a verification code error, then, when I tried to use the same code in the browser I got the same error. |
@Nik-Kot , could you please make a build for macos? |
Amigo tengo un problema, se que este tema está cerrado y no sé si todavía siga esto o estás activo, pero he bloqueado en bootloader lo que bloqueado con una rom personalizada me puede ayudar a desbloquearlo? |
Xiaomi has changed the fastboot behavior on newer devices. Now you need to call "fastboot oem get_token" instead of "fastboot getvar token", and the token also bacame longer.
This fix tries to get the token using the old way, and if the tken is not returned, it uses the new method to retrieve it, ensuring compatibility with both older and newer devices.