yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 Guides, News, & Discussion] ov1lord:
It is possible. But you need to flash a miui rom with miflash and select lock bootloader when you do it
[Xiaomi Mi 5 Guides, News, & Discussion] Phyo Nyi Nyi:
thanks for knowledge sharing
[Xiaomi Mi 5 Guides, News, & Discussion] avs333:
I can't imagine if I ever buy something like their mi 5 device again. I've got the permission to end up with something like this in their logs:

DEBUG <04:29:05.589,T:2692> : Login success and get user detail

INFO <04:29:07.729,T:2584> : status result: {

"applyStatus" : 2, ### 2 = ok to unlock I gather!

"code" : 0,

"description" : null,

"shouldApply" : true,

"uid" : xxxxxxxxx ### my miui account, and it's connected!!!

}

DEBUG <04:29:07.729,T:2584> : unlock status: 2

DEBUG <04:29:07.729,T:2584> : should apply:true ### oh? should apply, really?

INFO <04:29:11.245,T:2700> : connected

DEBUG <04:29:13.870,T:2464> : VerifyDeviceInfo

ERROR <04:29:14.510,T:2464> : product: return:getvar:product FAILED (command write failed (Unknown error))

--- followed by an avalanche of:

ERROR ... (Unknown error))

...

Then it stops at 50% here. Fastboot then locates my device with "fastboot devices", but is unable to do _ANYTHING_ further than saying the same "Unknown error." Unknown, indeed?? WTF??

The file is log/MiFlashUnlock.log where's MiFlashUnLock is installed, do lucky guys experience something different?

I do believe that: when I get older, losing my hair, 64 years from now, they guys will _consider_ what they're doing, or stop this b*s at once?
[Xiaomi Mi 5 Guides, News, & Discussion] DutchMan_1990:
Well here are some tips that might help you,

1. Have you waited for some days after the permission approved? If no then wait for at least one week. I have heard that that the unlock request need some time to update in the cloud.

2. Make sure you've checked USB Debugging and OEM unlock option in Developer menu.

3. Log in with same details. eg if you login to mi account with phone no in the device then use the same in Mi Unlock.

4. There is an option called Mi unlock status under Developer menu. make sure you've bonded your account.
[Xiaomi Mi 5 Guides, News, & Discussion] Galaxyy11.gs:
Does it format internal space or sipe data??
[Xiaomi Mi 5 Guides, News, & Discussion] SaumyeMehrotra96:
did you get the 50% error during the unlock process...

are people still getting that error.

please reply

thanks
[Xiaomi Mi 5 Guides, News, & Discussion] sdspieg:
I received my Mi5 on Mar 28. Asked for unlock permission on Mar 30. Still haven't received an sms; but when I go onto the unlock/retry page, it redirects me to the download page, which (according to the information provided by Xiaomi itself) means I did receive authorization. I also do not have a driver problem - Win10 sees the phone both in fastboot and in regular boot. But when I run the unlock tool (latest version of April 6), I get is this error message (see attached)

Does anybody have any ideas on how to solve this?
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
I would say, just try this page step by step and start with the text: After you receive SMS etc.

Maybe you don't need the SMS anymore.

They changed several things in the past year (i now have to wait 72 hours after connecting my MI account to the new phone, that was new to me).

Maybe this also changed.

http://en.miui.com/thread-202290-1-1.html
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
It turns out that mi credit does not count in requesting to unlock. Got the sms grant in less than 24hrs... =)
[Xiaomi Mi 5 Guides, News, & Discussion] SunTsu1969:
Unlocking fails at 99%

I received permission to unlock but keep failing after the busy wheel spins at 99% for a bit at the "unlocking" stage.

I (successfully) went through the requested step of binding account and equipment in the developer mode setting a couple times but nothing changes. Couldn't find anything about it on the MIUI forum either.

Firmware is the most recent China Dev MIUI 8 ROM 7.4.11 and I want to switch to Global Stable

Any ideas or solutions to get the bloody lock off?
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
No error message visible?
[Xiaomi Mi 5 Guides, News, & Discussion] SunTsu1969:
This one (wouldn't let me post it until I have 10 posts made ..):

imgur.com/DxEyRBU
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
Well, that should be simple to fix.

First boot to MIUI and go to developer options.

There is an option to add you MI account to the phone.

Add your account that has got the unlock permissions tot this option.

The try the unlock again.

Next time, please ask in the General Q&A section of Mi5

This is developer thread section of Mi5.
[Xiaomi Mi 5 Guides, News, & Discussion] SunTsu1969:
And why I asked here :)
[Xiaomi Mi 5 Guides, News, & Discussion] lilicaull:
how in the all 7 hells did anyone unlock their bootloader ? i can`t seem to find and english version of anything..this is so frustating

Edit: got permision in 10 minutes but I keep getting the attached error
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
It tells you what is wrong :p

You have added the MI account less then 72 hours ago to the phone.

After adding the MI account to the phone, you have to wait 72 hours, before you can unlock.

Believe me, i tried every day during that 72 hours, but you have to wait.

Nothing to do about that.

It will count down, every time you try, so you have your own stopwatch :cool:
[Xiaomi Mi 5 Guides, News, & Discussion] lilicaull:
oh...well i`m stupid :)
[Xiaomi Mi 5 Guides, News, & Discussion] menomoo:
I am a dumb bastard ! I was setting this Mi 5 Plus mobile without the sim card . I did the pattern but it was late at nite and next day I forgot the pattern now the phone is locked . Does that mean locked for good ? Can I unlock it or if i remember the pattern have i got a chance or shall i smash it to pieces and send it back to XIAOMI ?

Thanks in advance
[Xiaomi Mi 5 Guides, News, & Discussion] lilicaull:
Hello, guys ! Followed all the steps here and today I unlocked the booloader or so i think..Now when i power on the device I have a red message with an unlock icon that say: booloader unlock. Does this mean that the process was successfull and now I can start rooting the phone and flash roms and stuffs ? Thanks
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
Yes, that is the sign that you are ready with unlocking.

Have fun with flashing :cool:
[Xiaomi Mi 5 Guides, News, & Discussion] Fixa33:
17 minutes? That was fast. I only have 39 credits. I guess i am lucky. :)
[Xiaomi Mi 5 Guides, News, & Discussion] markley:
i have tried to do this. my message already successful but the bootloader still lock. please help
[Xiaomi Mi 5 Guides, News, & Discussion] yakie996:
this is pure bull**** why should I wait 72 hours after I bought the phone to unlock the bootloader now I have to use this phone for 3 days than remove everything to unlock the bootloader, makes no sense to me... :(
[Xiaomi Mi 5 Guides, News, & Discussion] 11prathmesh:
Hi, Will I lose the internal storage or data partition after unlocking boot loader ? Will my phone factory reset during unlock process ? Please help I don't want to lose anything.
[Xiaomi Mi 5 Guides, News, & Discussion] Potato997:
When I unlocked the bootloader my phone didn't do a factory reset.

To bypass the 72 hours of waiting, I used an older version on MiFlashUnlock (v1.1)
[Xiaomi Mi 5 Guides, News, & Discussion] TheIceDragon:
Hi! I've donde everything step by step but the sms code has not arrived yet.. and it's been 2weeks, what should I do?
[Xiaomi Mi 5 Guides, News, & Discussion] xxmichael20xx:
66 Hours of Unlocking failed :(

How about this error sir???:confused::confused::confused:
[Xiaomi Mi 5 Guides, News, & Discussion] elot01:
Just to make sure:

After asking for unlock code, you got that code?

I see a green mark, so i suppose that you have that code and entered it.

Have you tried a second time?
[Xiaomi Mi 5 Guides, News, & Discussion] vafele:
you need to wait 72h after mi account bind to the phone, so my guess is theres still 66h to wait for you sir.
[Xiaomi Mi 5 Guides, News, & Discussion] troublecro:
Any reliable solution for stuck on 50% with can't verify device?

I tried almost all oslutions from web...still nothing

EDIT: solved
[Xiaomi Mi 5 Guides, News, & Discussion] Master_Jack:
Hello, I'm using MIUI Global Beta 7.10.12 right now. Should I change to China ROM before unlocking? Will my phone get factory reset (lost all its data) after unlocking the bootloader? Thank you!
[Xiaomi Mi 5 Guides, News, & Discussion] ianhughes74:
Thanks sir.
[Xiaomi Mi 5 Guides, News, & Discussion] incognitonk:
Will unlocking the bootloader wipe data?
[Xiaomi Mi 5 Guides, News, & Discussion] Hutabarat:
pls, help unlocking my mi5 miui9.

has been several days trying to unlock bootloader.

When using miunlock, it always show unknown error.
[Xiaomi Mi 5 Guides, News, & Discussion] ovu85:
Hi, my MI5 became bricked after an official update.

Bootloader is locked and can't find a way to unlock it.

I've tried every possible way to reflash it but i have no success.

When trying to unlock i get the message from the picture, any other way to unlock the bootloader?
[Xiaomi Mi 5 Guides, News, & Discussion] evanlocked:
Try force EDL by hacking pinned on pcb (test point EDL )

[youtube]RJ3_wvFbeeY[/youtube] see this link
[Xiaomi Mi 5 Guides, News, & Discussion] evanlocked:
Try it
[Xiaomi Mi 5 Guides, News, & Discussion] ovu85:
can't even find the firmware. Chinese firmware would help as i've read before.
[Xiaomi Mi 5 Guides, News, & Discussion] evanlocked:
No watter which firm atleast its fastboot ready file ,once u enter edl mode u can force to flaah fastboot file via mi flaah tool(if your device detected as qloader 9008 if im not wrong)
[Xiaomi Mi 5 Guides, News, & Discussion] ovu85:
Thanks for all the help!

This really did the job! Hope it will help others too!

http://en.miui.com/thread-809448-1-1.html
[Xiaomi Mi 5 Guides, News, & Discussion] cheeze.keyk:
anyone having trouble applying for an unlock thru Mi Unlock menu? it says error.
[Xiaomi Mi 5 Guides, News, & Discussion] martepato:
TheUltrametricSpace: Now after I got my bootloader unlocked, I was able to root my device just like you did.

While doing it I noticed it downloads something, so I grabbed myself a copy of it! The poor souls among you with a locked bootloader on 6.3.17 dev might want to try flashing this to your device from userland somehow. No idea how to do it since I'm not too experienced at this. Must be possible somehow though right?

Anyways, good luck.

https://mega.nz/#!xYs0jRZI!Z8Gzf-j0G0aYlsKOKzFRPYMgnvzQTjaFOsfhUfWg3lM
[Xiaomi Mi 5 Guides, News, & Discussion] sidamos77:
Do you need to flash the developer ROM to unlock?

Does the stable ROM also have root after unlock?

Is it true that you don't get OTAs anymore after unlock?

Thanks!
[Xiaomi Mi 5 Guides, News, & Discussion] CodeX86:
Was the file you grabbed flashed after it downloaded? (Did the phone reboot and flash the .zip or .img file?)

Thanks...
[Xiaomi Mi 5 Guides, News, & Discussion] kickassdave:
This is not true. I can confirm latest Developer ROM on a locked bootloader does NOT give you access to root features. It leaves you with a page confirming you need an unlock code.
[Xiaomi Mi 5 Guides, News, & Discussion] KnieveI:
Hi.

I havent got my phone yet but got the link for unlock tool. Got it about 10 days after request.

Should i wait to download it? Does anybody know how long the permission lasts?

Iv only had a couple of posts in total in the Mi forum.

Thanks

KnieveI
[Xiaomi Mi 5 Guides, News, & Discussion] CodeX86:
The unlock tool isn't what grants the permission, your account does. So if you received confirmation, it means that you're account has been granted permission and you can unlock one device every 30 days.
[Xiaomi Mi 5 Guides, News, & Discussion] kickassdave:
Thanks for sharing this - it's key to getting the inbuilt supersu working with the developer ROM.

I'm found a way to disable the encryption, but keep everything else working. Only problem was supersu 2.46 caused it to fail to boot, so I'm back to square one, and trying again to get supersu on it.

Additionally, I was finding browsing via Chrome was extremely slow, when I flashed the stock system img file, these problems were gone and without the encryption I'm 90% sure everything seemed faster.

[EDIT]

Wasn't needed, but thanks anyway. Latest SuperSU done the job!! I'm all sorted!
[Xiaomi Mi 5 Guides, News, & Discussion] alnug:
Just to say that i applied for unlock permissions with 10 credit and got it in about 10 days so yeah you can only try
[Xiaomi Mi 5 Guides, News, & Discussion] brambizimski:
Anyone who has been able to gain root access on the 7.2.10.0 stable rom ?
[Xiaomi Mi 5 Guides, News, & Discussion] sidamos77:
The stable ROM does not have a root application built-in.

So, it only would work by flashing SuperSU in TWRP. With unlocked bootloader, you can flash TWRP.

The available TWRP for the Mi 5 can't flash SuperSU because of the encryption of the /data partition (although TWRP for Nexus devices can).

But I wonder why, because you could read SuperSU.zip from an USB stick and the /boot and /system partition are not encrypted, so it should only fail for the user app.

But people are saying that it does not work with encrypted /data partition. I have not tried it.

If that's really the case, you would have to format /data to disable encryption and then you can flash SuperSU in TWRP.

I am currently using the developer ROM with the built-in root app. But I disabled boot verify in TWRP, because otherwise some apps would not work correctly. And even with that, it is not as compatible as SuperSU.

Did anyone try flashing SuperSU with FlashFire or Flashify on the developer ROM?
[Xiaomi Mi 5 Guides, News, & Discussion] brambizimski:
Yeah still waiting for my unlock permission.

Are you talking about a 7.2.10.0 developer rom ?
[Xiaomi Mi 5 Guides, News, & Discussion] sidamos77:
I have the 6-3-31 developer ROM. Those have a different naming scheme than the stable ROM.
[Xiaomi Mi 5 Guides, News, & Discussion] brambizimski:
Oh ok that makes sense, can you "dirty" flash the the dev rom over the stable one through the built-in updater ?

According to this guy you still need to have an unlocked xiaomi account though ? (to gain root privileges)
[Xiaomi Mi 5 Guides, News, & Discussion] sidamos77:
I came from 7.2.10.0 and flashed to 6.3.31 with the Updater app. This process wipes your data. After that, I unlocked it with the Unlock Windows Program.

Then I activated root on the phone (I think, in the Security app) and then it downloaded a small update, which actually provided the root functionality.
[Xiaomi Mi 5 Guides, News, & Discussion] skoobee:
having problems unlocking mine. I have got my unlock text and have downloaded the tool. I sign in with the tool and connect the phone. It goes to 50% then says couldnt verify device. Current account is different from the account info on the device

Edit: NVM it was because i had never signed in to miui account on the phone. unlock successful
[Xiaomi Mi 5 Guides, News, & Discussion] abyssq:
How did you disable the encryption? Please share it with us. :)
[Xiaomi Mi 5 Guides, News, & Discussion] os_man:
Just format "userdata" in twrp, reboot, then back to twrp and flash latest beta of supersu and will get root without ant problems, done 2 weeks ago..
[Xiaomi Mi 5 Guides, News, & Discussion] veron161:
Just theoretical question. Since I already installed (buggy and removed) global rom, I cannot request bootloader unlock?

I have only one problem with global rom and that's I have only one locale available (China). On mui forum one guy sad, that's because I installed global rom on locked bootloader.
[Xiaomi Mi 5 Guides, News, & Discussion] Heisenberg:
[size=+1]Thread cleaned. Stop bickering with each other, XDA is not the place for it.[/size]
[Xiaomi Mi 5 Guides, News, & Discussion] AuzanAgnar:
so only in china rom? not for global rom?
[Xiaomi Mi 5 Guides, News, & Discussion] adwinp:
Is anyone aware of the possibility to unlock in linux?

The official tool works only on windows O_o
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
Very strange, I didn't receive any unlock acknowledge and I wanted to test the procedure . I went to unlock screen and started unlock . it finished 100% good and rebooted the phone with all my applications still present (phone was not reset during "unlock" as said) .

I do twice the process flow and got answer that this phone doesn't need to be unlock

Then I tested internal root (su) and got it suucessfuly.

fastboot seems to be working I got return of "fastboot device number"?

Any idea of what is my status and what I should or could do as I don't want to brick it so early?

edit: Phone remains encrypted..'but .'flushing data did the trick.)

edit2: It is truly unlocked without getting any sms from them.

I have flashed TWRP and with it the latest Russian ROM called MS.

conclusion: Xiaomi is late sending the confirmation to the end user.

ISOLVED
[Xiaomi Mi 5 Guides, News, & Discussion] alfay0m3ga:
I unlocked my phone today. Or at least it's what Mi Unlock said; Done.

There is any way to check if it's unlock?

I'm trying to access to recovery mode but only a picture of a phone connected to a wire appears.

What does it mean?

Thanks
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
check with adb fastboot instruction:

fastboot oem device-info

and

You have to install a recovery of your own (TWRP)

http://xdaforums.com/mi-5/how-to/how-to-remove-device-encryption-t3347024

or this

http://en.miui.com/thread-245756-1-1.html

or that

http://en.miui.com/thread-263612-1-1.html

be patient
[Xiaomi Mi 5 Guides, News, & Discussion] alfay0m3ga:
Thank you very much for you help :victory:. It's unlocked.
[Xiaomi Mi 5 Guides, News, & Discussion] flyturbo:
Trying to apply for unlock and it isn't working for me after I click the Unlock button from this site --> http://en.miui.com/unlock/

Page redirects to Chinese site and page refreshes every 5 seconds. --> http://www.miui.com/extra.php?mod=x...u0HQBc88r&_ssign=uu4uhSO2OO3ncSMDiCc2ZG3eXak=
[Xiaomi Mi 5 Guides, News, & Discussion] whiulasnogn:
Hi there,

I got a mi 5 about a month ago, followed the steps in unlocking it. Got the SMS and unlocking permission. Downloaded and flashed to latest developer ROM (6.4.21). Synced account. However my issue is still with verifying the device. I've tried a few different USB ports (USB 2.0 and 3.0) and I always get the "Not connected to Mi Phone" after reaching 50%. In my miui.com profile settings I have Mi 5 selected for device and MIUI Version is 6.4.21. I have been searching through many threads and forums for an answer but am stumped.

I hope someone can direct me correctly.. :(

Thanks in advance!
[Xiaomi Mi 5 Guides, News, & Discussion] j2002:
Someone had pointed at the profile you have in your Miui account. I don't know if that makes sense but... is it shown as 100% configured?
[Xiaomi Mi 5 Guides, News, & Discussion] Simontjee:
I have the black 128gb version pre-ordered. Can i already apply for permission to unlock? I heard it may take some time, so it would be best to have everything ready so i can start when the phone arrives. Although i dont want the permission not to be valid anymore once i get the phone.
[Xiaomi Mi 5 Guides, News, & Discussion] 4719:
I have asked for permission long before I ordered my phone. Got it after 16 days. No problem at all. Have no credits on MIUI site. So just go ahead and ask for it. And it stays valid forever.
[Xiaomi Mi 5 Guides, News, & Discussion] Simontjee:
oke thanks. Now wait for the phone to arrive.
[Xiaomi Mi 5 Guides, News, & Discussion] Schnedi:
Hey guys, nort sure if it was already asked but. Can i unlock the bootloader with a MAC?
[Xiaomi Mi 5 Guides, News, & Discussion] tuarai:
What happen if you don't get any reply within 10 days?
[Xiaomi Mi 5 Guides, News, & Discussion] j2002:
They took almost a month to respond me.
[Xiaomi Mi 5 Guides, News, & Discussion] tuarai:
It's been half a month for me. Keep my fingers crossed.
[Xiaomi Mi 5 Guides, News, & Discussion] NisseGurra:
A week now, my Mi5 is in the box until i get the unlock code, the stock fw is really horrible.
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
I tried the unlock process while wating for the sms.

rhe phone get unlocked at first trial.

The agrement sms still not received after one month.

No risk to try.
[Xiaomi Mi 5 Guides, News, & Discussion] NisseGurra:
I tried the MiFlashUnlock_1.1 but it says "your device is not supported by Mi unlock"

Guess i have to wait?
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
This is the direct link for unlock:

http://en.miui.com/unlock/

You may have changed the stable rom to a china dev version if not yet done.
[Xiaomi Mi 5 Guides, News, & Discussion] shade.sh:
Let me guess you didn't receive the confirmation sms? If so, this message is just to say "sit down and wait for the confirmation sms" ;)

---------- Post added at 10:35 ---------- Previous post was at 10:33 ----------

Yes you can, i had the same situation. Just install a trial version of VMWare Fusion, Parallels or Virtual Box and Windows 10 (Or Windows 7 if you like this more ;) - Just be sure that the virtual USB port with your Mi5 is connected to the Virtual Machine. Worked flawless here on my MacBook Pro.
[Xiaomi Mi 5 Guides, News, & Discussion] tym3k:
You can also install windows on a second partition using bootcamp, it's easy and it works better than vms.
[Xiaomi Mi 5 Guides, News, & Discussion] vikas776:
I am having problems unlocking mine. I have got my unlock text and have downloaded the tool. I sign in with the tool and connect the phone. It goes to 50% then says couldnt verify device. Current account is different from the account info on the device .

tried to remove account , readd account .

factory reset device .

read miui forums . all suggesting to use developer rom but got the error cannot verify update.

is there any way to unlock this device .

This phone is becoming a nightmare for me
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
Sure ? you are connected on both the phone AND the computer with the same account?

And you have updated the phone with a DEV version of the rom?

Is your phone in fastboot mode and did you checked adb driver are well installed?

(you should see the phone connexion when you plug it for verification, if unlock said : no phone, this is the reason)
[Xiaomi Mi 5 Guides, News, & Discussion] vikas776:
i figured

Thank God my EDL mode was unblocked luckily

as there is no way to install developer rom coz the updater app failed to verify package . I installed the modified eu rom in EDL mode, then unlock the bootloader.

There is tons of people on internet facing this account mismatch issue and there edl is also blocked.
[Xiaomi Mi 5 Guides, News, & Discussion] tym3k:
Does unlocking the bootloader void warranty?
[Xiaomi Mi 5 Guides, News, & Discussion] dzontra83:
How long did you wait for the unlock sms? I applied on 6th may, still no sms confirmation, i posted on miui forum 3 times, still no luck. Any mail, to write to xiaomi directly? Tnx
[Xiaomi Mi 5 Guides, News, & Discussion] j2002:
Mine took almost a month. I read (don't remember where) that there's chance of having permission to unlock and not received the sms yet. Try (or wait)
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
TRY the unlock process every day, it should unlock when accepted even without sms received. I never received it.
[Xiaomi Mi 5 Guides, News, & Discussion] AP_on_xda:
i applied for unlock request having negligible number of credits(6 fyi) .they took 2 and half month to confirm
[Xiaomi Mi 5 Guides, News, & Discussion] lolo9393:
I am in the same position as your (low credit number) and I was able to unlock my 2 phones after 10 and 13 days of waiting. SMS confirmation is not arrived YET.
[Xiaomi Mi 5 Guides, News, & Discussion] killbox:
I was granted permission just after a couple of days without any Mi credits or any posts on their side. I just signed up right before applying.