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

Xiaomi procedure failed: [getServiceToken] Missing serviceToken cookie #23

Closed
rodrgz opened this issue Jul 13, 2021 · 249 comments · Fixed by vmavromatis/XiaoMiToolV2#1 or #26
Closed

Comments

@rodrgz
Copy link

rodrgz commented Jul 13, 2021

I followed the instructions to unlock my Xiaomi phone, but I found this procedure error in the current linux version and in the Windows version.

Screenshot from 2021-07-13 09-35-19

@FrosT2k5
Copy link

did u find any solution for it so far?

@rodrgz
Copy link
Author

rodrgz commented Jul 13, 2021

did u find any solution for it so far?

No, do you reproduce this issue?

@FrosT2k5
Copy link

FrosT2k5 commented Jul 13, 2021

Yes I did dude. I am trying to solve my friends blocked bootloader in linux, but this doesnt seem to work sad. You got any other working way?

@rodrgz
Copy link
Author

rodrgz commented Jul 13, 2021

Yes I did dude. I am trying to solve my friends blocked bootloader in linux, but this doesnt seem to work sad. You got any other working way?

Unfortunately no, the closest I got was through Xiaomitoolv2. I tried with the official tool in Win10, but the line with the USB connection just blinked once and ejected the USB connection. I do not try yet to format the cell phone to an old android and then try again. But I think it's possible a server problem, I don't know, maybe I will wait sometime to try again.

@FrosT2k5
Copy link

Yes I did dude. I am trying to solve my friends blocked bootloader in linux, but this doesnt seem to work sad. You got any other working way?

Unfortunately no, the closest I got was through Xiaomitoolv2. I tried with the official tool in Win10, but the line with the USB connection just blinked once and ejected the USB connection. I do not try yet to format the cell phone to an old android and then try again. But I think it's possible a server problem, I don't know, maybe I will wait sometime to try again.

That's sad... I just made him unlock with official tool in windows. It worked it seems, nice

@fengzee
Copy link

fengzee commented Jul 14, 2021

I got stuck at the same issue. I think Xiaomi has just made changes to their service and requiring a "serviceToken" for server authentication. I have just 1 more day left before I can unlock my phone. Sad. I don't have a Windows device so I cannot use the Xiaomi official tool. Planning to find an internet cafe with Windows PCs.

@FrosT2k5
Copy link

I got stuck at the same issue. I think Xiaomi has just made changes to their service and requiring a "serviceToken" for server authentication. I have just 1 more day left before I can unlock my phone. Sad. I don't have a Windows device so I cannot use the Xiaomi official tool. Planning to find an internet cafe with Windows PCs.

U use Linux? Maybe try using windows using kvm. Maybe that will work. Idk a shit about it tho haha. Hope u find someway. Do let me know what u do

@Usaamah99
Copy link

I'm getting that too on a Mac

@swarupbc
Copy link

Same issue on Linux

@FrosT2k5
Copy link

No solution/workaround for it as of now... Sad. Maybe we should as for Linux tool in miui forum. They say people who need unlocked for Linux are very less

@fengzee
Copy link

fengzee commented Jul 15, 2021

I got stuck at the same issue. I think Xiaomi has just made changes to their service and requiring a "serviceToken" for server authentication. I have just 1 more day left before I can unlock my phone. Sad. I don't have a Windows device so I cannot use the Xiaomi official tool. Planning to find an internet cafe with Windows PCs.

U use Linux? Maybe try using windows using kvm. Maybe that will work. Idk a shit about it tho haha. Hope u find someway. Do let me know what u do

I'm a Mac user. I have virtual machine options on Mac (eg. Parallel Desktop) too but I'm too lazy to download a Windows system image. I'm pretty sure most Xiaomi engineers also work on Macs. It's insane they only provide a Windows version of their tool.

@FrosT2k5
Copy link

I got stuck at the same issue. I think Xiaomi has just made changes to their service and requiring a "serviceToken" for server authentication. I have just 1 more day left before I can unlock my phone. Sad. I don't have a Windows device so I cannot use the Xiaomi official tool. Planning to find an internet cafe with Windows PCs.

U use Linux? Maybe try using windows using kvm. Maybe that will work. Idk a shit about it tho haha. Hope u find someway. Do let me know what u do

I'm a Mac user. I have virtual machine options on Mac (eg. Parallel Desktop) too but I'm too lazy to download a Windows system image. I'm pretty sure most Xiaomi engineers also work on Macs. It's insane they only provide a Windows version of their tool.

Yeah man sad. Why they wanna do all this, permission and all. just let fastboot oem unlock, unlock the bootloader, it'll be simple af and can run it anywhere. Even on phone using bugjaegar

@higorhi
Copy link

higorhi commented Jul 21, 2021

I'm a Windows user, had the common issue of unrecognizable device in fastboot. Flashed a live boot Linux USB drive with Solus OS, got XiaoMiToolV2 working and all, did all the udev shenanigans to allow device access permissions, and got stuck on the same issue. Seeing as this is happening on all three platforms and that all reports of that are all within the last week, I'm highly suspecting of Xiaomi's services instability, really.

I don't know if you have had this other issue as well, but when trying to sync the account to allow for bootloader unlocking, it now fails basically all the time. I think I was lucky on Sunday and got a success response once but that was it; all other responses are something of the likes of "Couldn't execute sync procedure. Please try again".

This behavior makes me think the issues are somehow related. I'll keep you guys posted.

@CavaleriOmar
Copy link

CavaleriOmar commented Jul 22, 2021

I have been trying to unlock my, now old, Redmi 6 for three days to install a custom rom ... but the error exposed by @erikrodrgz keeps happening to me.

What mistake is that anyway?

PS: I'm on Linux

@FrosT2k5
Copy link

FrosT2k5 commented Jul 22, 2021

I have been trying to unlock my, now old, Redmi 6 for three days to install a custom rom ... but the error exposed by @erikrodrgz keeps happening to me.

What mistake is that anyway?

PS: I'm on Linux

It's not your mistake, its xiaomi messed something up I think, right now best solution is somehow get windows and use the xiaomi's official unlocker...

@kagiannis
Copy link

kagiannis commented Jul 22, 2021

I had the same problem in Linux. I finally did it in windows with the official app. But I needed to run bcdedit /set testsigning on as administrator and then run XiaomiToolv2 to install some needed drivers .

@mconrado
Copy link

mconrado commented Jul 22, 2021

I have same problem. Probably the Xiaomi site changed something

@slonkazoid
Copy link

Same with Linux and Windows (kvm + usb redirection)

@CavaleriOmar
Copy link

@uAliFurkanY how did you set up the USB connection?

Using kvm I was unable to get xiaomi recognized not only by XMT2, but not even by MiPC suite... Windows recognizes it, bit Mi softs no...

@kagiannis
Copy link

@CavaleriOmar in qemu you can do this -usb -device usb-host,hostbus=NUM,hostport=NUM where you can find the numbers with lsusb. But it didn't work for me. I don't know if it is a problem with my laptop as also fastboot had problems. Only using a different laptop with windows 10 it worked.

@slonkazoid
Copy link

slonkazoid commented Jul 25, 2021 via email

@CavaleriOmar
Copy link

CavaleriOmar commented Jul 26, 2021

@uAliFurkanY , same VM

Done.

Windows 10 under VM... MI PC suite did not recognize it simply because the Redmi 6 is out of support...

MI Flash Unlock found it right away (yesterday it didn't recognize it because I'm a jerk and I hadn't put it in fastboot).

@pixrafal
Copy link

I got same problem, too.
I had been used it to unlock/twrp/flash many Mi-devices, included Redmi Note5/Note7/Note8/K20/K30/K30s, on my mac (Mojave 10.14.6) without any issue, but recently when I tried to unlock my new Redmi 9T , I got same message and always failed. even I tried to check old success unlock/flash devices, I got same message, too.

I don't have any PC with win7/10, and I also don't use VM with win10.

did MIUI server change rules?

@ahmadraniri1994
Copy link

@pixrafal wow, world seems small huh? I'm facing same issue with Redmi 9T, fortunately I seem not alone. Keep monitor this issue guys.

@FrosT2k5
Copy link

I got same problem, too.
I had been used it to unlock/twrp/flash many Mi-devices, included Redmi Note5/Note7/Note8/K20/K30/K30s, on my mac (Mojave 10.14.6) without any issue, but recently when I tried to unlock my new Redmi 9T , I got same message and always failed. even I tried to check old success unlock/flash devices, I got same message, too.

I don't have any PC with win7/10, and I also don't use VM with win10.

did MIUI server change rules?

Yes seems like Miui server changed something. Sad... This is the worst thing about xiaomi

@ghost
Copy link

ghost commented Aug 7, 2021

Having the same issue!. hopefully, this gets resolved soon.

@AlecsFerra
Copy link

Same issue probably xiaomi changes his APIs

@yxles-dev
Copy link

is there any possibility for this to be fixed? I want to unlock the bootloader of my Mi 3c so I can install Ubuntu Touch but I don't want to wait for the official unlocker to be able to unlock the device

@marrobHD
Copy link

Even if this tool would work, you still have to wait because this unlock tool is using Xiaomis APIs.

@7iomka
Copy link

7iomka commented Aug 11, 2021

Снимок экрана 2021-08-11 в 18 25 02

Error when I'm try to unlock locked bootloader on xiaomi redmi note 7 pro prime (after upgrading to miui 12.5 all google services not works and I need root for go back to miui 11..)

@Climax-Arc
Copy link

Screenshot 4

Screenshot 3

Screenshot 2

any one found solution, i tried both tools but still same error

@zhekaqq
Copy link

zhekaqq commented Oct 29, 2022

Screenshot 4 Screenshot 3 Screenshot 2

any one found solution, i tried both tools but still same error

just use newer version http://miuirom.xiaomi.com/rom/u1106245679/6.5.406.31/miflash_unlock-en-6.5.406.31.zip

@Climax-Arc
Copy link

Screenshot 4 Screenshot 3 Screenshot 2 any one found solution, i tried both tools but still same error

just use newer version http://miuirom.xiaomi.com/rom/u1106245679/6.5.406.31/miflash_unlock-en-6.5.406.31.zip

is this file works for linux or mac?

@IgorM-Oliveira
Copy link

image

@Uphanjoel
Copy link

Uphanjoel commented Jan 4, 2023

followed the tutorial to change a few line using JDK11, built successfully but then got stuck during login process...
anyone has any issue with the SMS verification code that is not sent at all even after 3x attempts ?Please help

@tsoernes
Copy link

@Uphanjoel same here

@YusufKenanTurak
Copy link

followed the tutorial to change a few line using JDK11, built successfully but then got stuck during login process... anyone has any issue with the SMS verification code that is not sent at all even after 3x attempts ?Please help

same here too, any solve suggestion for that?

@edisionnano
Copy link

followed the tutorial to change a few line using JDK11, built successfully but then got stuck during login process... anyone has any issue with the SMS verification code that is not sent at all even after 3x attempts ?Please help

same here too, any solve suggestion for that?

There's a pr that fixes qr code login, I tried it and it works. If you don't wanna login via qr then follow my suggestion on #88

@kambei
Copy link

kambei commented May 17, 2023

same here too, on Linux.

Schermata del 2023-05-17 23-15-01

@KiraiEEE
Copy link

KiraiEEE commented May 28, 2023

image
damn son (on windows 11)

@stevleibelt
Copy link

followed the tutorial to change a few line using JDK11, built successfully but then got stuck during login process... anyone has any issue with the SMS verification code that is not sent at all even after 3x attempts ?Please help

same here too, any solve suggestion for that?

There's a pr that fixes qr code login, I tried it and it works. If you don't wanna login via qr then follow my suggestion on #88

@francescotescari Thank you for your wonderful tool plus your spend time creating it.
I am running into the same error as anyone else here. Is there a reason why you do not merge the pull request #88 and release a new version of your tool?

Best regards and thanks in advance,
Stev

@charlzyx
Copy link

charlzyx commented Aug 1, 2023

in my case, i used https://github.com/francescotescari/XiaoMiToolV2/releases/tag/v20.7.28 this version and login with sms code , unlock success!
password login will meet this error.

@foxadb
Copy link

foxadb commented Aug 15, 2023

in my case, i used https://github.com/francescotescari/XiaoMiToolV2/releases/tag/v20.7.28 this version and login with sms code , unlock success! password login will meet this error.

@charlzyx I have the same "Missing serviceToken cookie" error, how do you login with sms code?

I only have login/password or qrcode methods, but qrcode actually fails after scanning showing "QR code has expired" error message 😞

Thanks!

image

@charlzyx
Copy link

in my case, i used https://github.com/francescotescari/XiaoMiToolV2/releases/tag/v20.7.28 this version and login with sms code , unlock success! password login will meet this error.

@charlzyx I have the same "Missing serviceToken cookie" error, how do you login with sms code?

I only have login/password or qrcode methods, but qrcode actually fails after scanning showing "QR code has expired" error message 😞

Thanks!

image

image

@foxadb
Copy link

foxadb commented Aug 15, 2023

@charlzyx When you click on the top right button, you go back to the login/password prompt which cause the "Missing serviceToken cookie" error later.

image

@charlzyx
Copy link

@charlzyx When you click on the top right button, you go back to the login/password prompt which cause the "Missing serviceToken cookie" error later.

image

image
i don't know why you Forgot password right no sitch to phone login, my ip in China .

@flixcrls
Copy link

in my case, i used https://github.com/francescotescari/XiaoMiToolV2/releases/tag/v20.7.28 this version and login with sms code , unlock success! password login will meet this error.

i got the session token error, why you get unlock success, im in v20.7.28 too
Screenshot 2023-08-16 at 22 55 45

@stevleibelt
Copy link

So again and seriously, just download a legal Windows 10 iso, install it as virtual machine and use the official unlock tool. It took me less than 30 minutes and I could just throw away this virtual machine afterwards.

@flixcrls
Copy link

So again and seriously, just download a legal Windows 10 iso, install it as virtual machine and use the official unlock tool. It took me less than 30 minutes and I could just throw away this virtual machine afterwards.

i already tried it, the UTM and pararel desktop both can't detect my phone with fastboot

@stevleibelt
Copy link

@flixcrls What stops you from using virtual box?

@flixcrls
Copy link

@stevleibelt okay, i install it again, but if it failed to detect my phone, i give up

@stevleibelt
Copy link

@flixcrls good luck. VirtualBox worked out of the box.

Don't forget to follow one of the many Virtualbox USB Passthrough guides out there.
First, your host os should detect your phone (see adb wikipage: archlinux.org).

Fingers crossed

@flixcrls
Copy link

@stevleibelt i give up, the problem is the driver cant update cause the m1 chip, and the miui is in 12.5, the fastboot in 12.5 is different, i just contact xiaomi support for wasting my time, i will waiting for another developer to make UBL accessible to macos, thank you once again for your help and suggestion. 🤞

@kaliiiiiiiiii
Copy link

Windows

@mardy @marscher @dportalesr @MagicFab @tkreuder
https://en.miui.com/unlock/download_en.html seems to work just fine on Windows. Gotta wait 358hrs (15 Days) tho -_-

@koreyba
Copy link

koreyba commented Oct 26, 2023

https://mega.nz/file/4UAjgKrC#Fk1V172GES7M4IUpg_pCfJkGVYXTBOSKxvIj93kuMeA
Just extract and bash run.sh
Happy modding!

The file you are trying to download is no longer available.
This link is unavailable as the user’s account has been closed for gross violation of MEGA’s Terms of Service.

:( can you upload somewhere else?
PS: I will open a PR for this

https://dubox.com/s/1RLWtwwYzoz6W3R4INjyKbw Password: nvrs

unzip XiaoMiToolV2(Alpha Version by Denis Sossich).zip

cd "XiaoMiToolV2(Alpha Version by Denis Sossich)"

bash run.sh

Link doesn't work( Need to download it. Have the same issue.

@mindtheegab
Copy link

getting same error on poco f5

@stevleibelt
Copy link

Just want to link to the project Xiaomi-HyperOS-BootLoader-Bypass.

To be fully transparent, a friend of mine wanted to use the above linked project to free up his poco phone but was not able to do the manual setup routine.
I've added a docker compose environment to the project. I was able to login to the docker container and saw my anrdoid via adb devices.
The rest is not tested by me, but maybe it helps :).

@JiaZombie
Copy link

kiruba_jkl's answer worked for me.

@Stefan2008Git
Copy link

image

Had the same issue on my Xiaomi Redmi Note 12 4G NFC Topas when i tried to unlock bootloader. Enabled developer options, enabled USB debugging, logged into my Xiaomi account and still the same error

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 a pull request may close this issue.