Can't unlock bootloader, flash rom/recovery, or wipe data - Xiaomi Redmi 4 Prime Questions & Answers

Hey -
So I got my redmi 4 prime today, and I want to unlock the bootloader. (I have made sure it is indeed locked with the "fastboot oem device-info")
While trying the official method, I got the 50% error "Can't verify device". I tried everything suggested to
fix it - Made sure my "OEM unlock", "USB Debugging" are enabled, added my device and account under "MI Unlock Status", that fastboot and adb recognize the device,
tried disabling driver signatures, logging into my account using account id... nothing helped.
Then I tried flashing the chinese developer rom. Using the "Updater" app, I got an error saying "Can't verify update - You're allowed to flash the newest develop version published by MIUI forum from stable version only".
Now, according to the settings menu, I DO run the stable version - I run Miui global stable 8.2.4.0. I tried flashing the chinese stable version, but got a similar error.
I tried flashing using Mi Flash and fastboot mode, but I get some "Flash tz error" message. I tried using MiFlash and edl mode, but it seems that edl has been disabled - Trying to enter into it simply reboots the phone.
My recovery is also very stripped down - It has no update/wipe options, but only some hardware tests, device info, and the option to boot back into sideload/fastboot/normal.
Using sideload doesn't seem to work as well - no matter what I try to install, I get an "failed to read command" error.
I'm really running out of ideas, and I wan't to get this phone running and start using it daily with some non-MIUI rom.
Thank you for your help

As for me I had kinda the same issue that I couldn't get past 50% so what I did was Delete my Device from my Mi account and did a factory reset then after the factory reset you'll be asked to sign in with your Google,Xiaomi account DO NOT sign in with any account, don't even connect to the wifi,just boot up the phone straight without any Google,Xiaomi account, then in the settings activate your wifi,find the bootloader unlocking thingy which will tell you sign in with your Mi Account, sign in,reboot your phone after signing in then unlock your phone and you're done.

psykkuno said:
As for me I had kinda the same issue that I couldn't get past 50% so what I did was Delete my Device from my Mi account and did a factory reset then after the factory reset you'll be asked to sign in with your Google,Xiaomi account DO NOT sign in with any account, don't even connect to the wifi,just boot up the phone straight without any Google,Xiaomi account, then in the settings activate your wifi,find the bootloader unlocking thingy which will tell you sign in with your Mi Account, sign in,reboot your phone after signing in then unlock your phone and you're done.
Click to expand...
Click to collapse
This 50% stuck, i think 99% of Xiaomi users who try to unlock bootloader for the first time always experience this, i'm the same as you before, i try everything as i'm desperate to unlock the bootloader, you try this first..
kinycx said:
Try doing this and let me know if this works:
1. Factory reset the phone
2. Don't set up the Wireless network and Mi Account on first boot
3. After initial setup turn on Developer options, then turn on USB debugging and OEM unlocking
4. Reboot the phone
5. Set up the wireless network
6. Go to Developer options > Mi Unlock status and click on Add account and device then set up Mi Account using account Id (accept every pop-up)
7. Reboot into fastboot and try to unlock your phone
Click to expand...
Click to collapse
If this didn't work for you, sadly you just have to wait to try again next week. It worked for me, i didn't do any attempt to unlock the bootloader, then suddenly after a week i did this and now my bootloader is unlocked. Just be patient.

Related

Help :Bootloader stuck at 50% on Redmi pro

When trying to unlock the bootloader I am stuck at 50% and it fails because it cannot verify the device.
My find device is set to on (some say it needs to be)
i have also tried to flash the dev rom using the flash tool but it runs to completion straight away and the phone remains in fastboot mode and doesn't reboot and so when manually rebooting nothing happens.
This is nearly 2 weeks of work to flash my phone because there is a virus in the Note application whereby advertisement banners appear when connected to the internet and with a malware scan the problem lies with a trojan in the note application meaning I have to flash the phone.
No progress at all in a week and I can seem to get around this 50% bootloader problem, does this mean Xiaomi haven't verified my request ? when logging into the bootloader it says checking permissions and then proceeds to log in, Its been 4 days no since I applied for permission to unlock the bootloader.
Help would be appreciated this is a new phone.
make sure you are on developer China rom , not stable
make sure you have checked usb debuging
make sure you are logged on mi account on device and on miflash
criszz said:
make sure you are on developer China rom , not stable
make sure you have checked usb debuging
make sure you are logged on mi account on device and on miflash
Click to expand...
Click to collapse
The developer rom flashes instantly like within a second so I am not convinced it has flashed.
usb debugging is on
find device is on
logged onto mi account
but how do you log onto the flash tool ? do you mean log into the bootloader unlock tool ?
rayperry9 said:
The developer rom flashes instantly like within a second so I am not convinced it has flashed.
usb debugging is on
find device is on
logged onto mi account
but how do you log onto the flash tool ? do you mean log into the bootloader unlock tool ?
Click to expand...
Click to collapse
yes, log on any mi account you can, i read that's help
anyway developer rom is A MUST, flash with sp flash tool and only system and data or via updater.
criszz said:
yes, log on any mi account you can, i read that's help
anyway developer rom is A MUST, flash with sp flash tool and only system and data or via updater.
Click to expand...
Click to collapse
My phone is logged into my mi account
are you saying log into the mi account in the flash tool ? is that possible ?
Your adb drivers are not properly installed. If you are you flashing this with windows 10, do it on windows 7 of you have a chance, i had same issue.
I am having no success with this

My last hope... I cant unlock my bootloader

Hello!
I read dozens of pages and watch many videos and I cant unlock my bootloader. I have rom 8.0.4.0 and cant update, unlock or install any new rom. I try to unlock, but gives at 99% says "cant verify..." I try to ad the .zip in the update menu, but it says it "not possible check the actualization"... can anyone help me, please!
thks
MI account
Ricardo Gouveia said:
Hello!
I read dozens of pages and watch many videos and I cant unlock my bootloader. I have rom 8.0.4.0 and cant update, unlock or install any new rom. I try to unlock, but gives at 99% says "cant verify..." I try to ad the .zip in the update menu, but it says it "not possible check the actualization"... can anyone help me, please!
thks
Click to expand...
Click to collapse
Hi friend,
I believe, you already have MI account and permission SMS from Xiaomi. If not, please read how to get bootloader unlock permission from Xiaomi over the net. If you have that permission, please make sure that you are using latest version of MI unlock tool.
Then log in with your MI username and password. Activate developper options in the phone, then USB debugging + OEM unlock in the developper options. Then go to fastboot and connect the phone. Check wheter the phone drivers are properly installed in Windows.
If everything is OK, then hit UNLOCK. If you have all of the above completed, then you should succeed.
If you want to flash another rom in the phone, you can make that without to unlock bootloader with an Xiaomi enginnering cable. Google is your friend
ayhan4ik said:
Hi friend,
I believe, you already have MI account and permission SMS from Xiaomi. If not, please read how to get bootloader unlock permission from Xiaomi over the net. If you have that permission, please make sure that you are using latest version of MI unlock tool.
Then log in with your MI username and password. Activate developper options in the phone, then USB debugging + OEM unlock in the developper options. Then go to fastboot and connect the phone. Check wheter the phone drivers are properly installed in Windows.
If everything is OK, then hit UNLOCK. If you have all of the above completed, then you should succeed.
If you want to flash another rom in the phone, you can make that without to unlock bootloader with an Xiaomi enginnering cable. Google is your friend
Click to expand...
Click to collapse
Hi, thks for help.. I dont have that "OEM unlock" option, dont know why...
This is what I get: "Current account is not bound to this device"

[Ultimate Guide][Riva] Unlock, Root, TWRP Guide for Redmi 5A [6/3/2018]

This will the Ultimate Guide to Unlock Bootloader. Install TWRP and Root.
Unlock Bootloader
Requirements:
• Mobile
• PC
• USB Cable
• Internet connection
Procedure:
• Setup your MIUI account by going to Settings -> Mi Account
• Apply for permission here (Use MIUI browser on the phone-Mandatory) (http://en.miui.com/unlock/download_en.html)
• Use your phone number with your country prefix to log in (ex. +91 Mobile number, is for India. Ex +91 99999999)
• Write why you want to unlock the device in 2-3 sentences (it may take a few days, Be patient. You will receive SMS confirmation if approved)
• Download Mi Unlocker from here (http://en.miui.com/unlock/download_en.html)
• Enable developer options by going to Settings -> About phone and tap 7 times on MIUI version
• Go to Settings -> Additional Settings -> Developer Settings and tick OEM Unlocking and USB debugging
• Go to Settings -> Additional Settings -> Developer Settings -> Mi Unlock Status and press Unlock
• Turn your Mobile data, Sync , WiFi and GPS on and wait for 5 minutes and don't turn them off afterwards
• Go to Mi Cloud by clicking here (https://i.mi.com/)
• Login with your phone number
• Click on Find device and locate your phone
• In the folder where you've extracted the Mi Unlock tool, you will find a program called MiUsbDriver, open it and press Install
• Log in to Mi Unlock by opening miflash_unlock on PC with the same phone number you used in obtaining the unlock permission
• Switch off your phone and go into Fastboot by pressing Volume down and Power simultaneously and connect your phone to the PC
• Once it shows a handset in Mi Unlock click on Unlock button
• Wait for a minute and you are done
• Your phone's bootloader is now UNLOCKED
NOTE: if you are stuck anywhere during this procedure, please start from step 1.
The main advantage of this procedure is that you don't need Developer ROM, it will work on Official builds as well.
Flashing TWRP
Requirement
ADB
TWRP for Redmi 5A (Riva) (https://forum.xda-developers.com/android/development/recovery-twrp-3-1-1-0-xiaomi-redmi-5a-t3712243)
LazyFlasher zip https://androidfilehost.com/?fid=673368273298947108
Procedure:
1. Reboot to Fastboot mode by pressing and holding Volume down + power button
2. Connect the phone to the computer with the original usb cable.
3. On your computer download the recovery from the link below and move it to the ADB folder.
4. Now in the adb folder, press shift and right click, select “open command prompt here”
5. Type the following
fastboot devices (to check if the computer recognizes the phone)
fastboot flash recovery twrp-3.2.1-0-riva.img (Flashes the TWRP to the phone)
6. Reboot the device to recovery. DO NOT BOOT TO SYSTEM YET Use Volume Up + Power to boot to recovery.
7. Flash Lazyflasher to disable dm-verity & forced encryption on MIUI.
8. Reboot to system
Now you have TWRP and MIUI.
Cheers.
If you've visited the MIUI forums, you'll be seeing complaints everywhere about the unsuccessful account binding that shows error code: 86023 hardwareId abnormal (<- Chinese fonts), and it has to do with Indonesian Xiaomi products. I'm certain Indian devices are all good to go for unlocking. But other devices are having a hard time. Trust me I've done you're guide before, with the same procedures, I've even tried other guides, but it's the same results. If you want to see my logcat, I'll upload one for you.
TAM warranty problem
I think it is related with this issue for Indonesian Mi user. http://en.miui.com/thread-719126-1-1.html
ezrawk said:
If you've visited the MIUI forums, you'll be seeing complaints everywhere about the unsuccessful account binding that shows error code: 86023 hardwareId abnormal (<- Chinese fonts), and it has to do with Indonesian Xiaomi products. I'm certain Indian devices are all good to go for unlocking. But other devices are having a hard time. Trust me I've done you're guide before, with the same procedures, I've even tried other guides, but it's the same results. If you want to see my logcat, I'll upload one for you.
Click to expand...
Click to collapse
That's a server issue
Gowtham55 said:
That's a server issue
Click to expand...
Click to collapse
Which has been fixed since like a week ago. Yeah that's what they say. Server issue. For Indian user's yeah it was a server issue, but for Indo users nope, we had to totally go crazy on social media and forums until they enabled UBL (ENABLED UBL?).
Let me get this straight, I asked several local Xiaomi authorized service centers and even TAM service centers, I emailed local Xiaomi CS, even did an online chat with them. What did all of them say? They all said the same thing: that UBL has been disabled for Indonesian Xiaomi devices under TAM warranty. Do you have proof that it was a server issue for TAM devices? If you do please post it. Please if it was a server issue, why the heck did the replies of Xiaomi CS Indonesia emails to me all said the same things: "UBL has been disabled for devices under TAM warranty."
I had to wait for a total of 3 months and several days (plus an extra 15 days after binding account, which right now I'm in my 9th day of waiting). I needed my 5A to be unlocked and rooted from day 1. Why? Because my old phone died out, I needed my 5A to be my daily driver. I needed it for work, for communication, for projects. I was willing to wait for 15 days prior binding, but it didn't get resolved for 3 bloody damn months. Would Xiaomi compensate my loses? Nope. So please if it was really a server issue, bring me proof, because I am already totally disappointed in Xiaomi.
360 hours mi flash unlock wait
Today I unlocked my bootloader finally after 360 hours of waiting
Thanks for guide its very helpfull
Thanks for the post. It'd be so cool if there was an alternate method than the legit one... I've request it to be unlocked 15 days ago, maybe more, and still havn't gotten any news...
parpagnas said:
Thanks for the post. It'd be so cool if there was an alternate method than the legit one... I've request it to be unlocked 15 days ago, maybe more, and still havn't gotten any news...
Click to expand...
Click to collapse
If you are not afraid of voiding the warranty, you could try this method: https://forum.xda-developers.com/android/general/bypass-bootloader-lock-redmi-5ariva-t3772381
After the 6th step, I got stuck in the mi logo... any solution?
will this unlock procedure wipe /data?
No
guys I'm getting 86006 error? anyone knows how to proceed?
If I unlock my bootloader, will I be able to user other sim card provider as well?
Thans dev. all went very smoothly.
Mi Unlock Status : Unlock, Bootloader still locked
I do have the following issue: My "Mi Unlock Status" is already Unlock. When I use fasboot to get "oem device-info" it says device isn't unlocked. Unfortunately I cannot bind a new Mi-Account to the device, to follow the procedure. Anybody has an idea?
grandpianisto said:
I do have the following issue: My "Mi Unlock Status" is already Unlock. When I use fasboot to get "oem device-info" it says device isn't unlocked. Unfortunately I cannot bind a new Mi-Account to the device, to follow the procedure. Anybody has an idea?
Click to expand...
Click to collapse
Problem solved, had a unofficial global miui rom installed on my (originally) chinese device. After flashing chinese dev rom via EDL (tespoint) y I able to unlock the device in the normal way.
I am getting error current account can not unlock this device. Been trying for over 2 months now. Someone plz help me.
adityam0338 said:
I am getting error current account can not unlock this device. Been trying for over 2 months now. Someone plz help me.
Click to expand...
Click to collapse
Maybe someone will help, if you give detailed information about what you have tried, and what exactly went wrong with description of errors and maybe screenshots

Bricked by locking the bootloader?

So, the thing is - in the morning I have locked my device's bootloader, I did not install anything or else, just in minimal adb fastboot typed "fastboot oem lock", because I needed my bl to be locked to run some apps properly. Little did I know, it was a global rom on a chinese phone, and it also locked my device from booting the system, because it landed in state "this miui version cannot be installed on this device". As many people may know, it made my xiaomi able to run only fastboot or recovery menu, it just cannot boot the system. For the last 6 hours straight I have been looking for any resonable solutions, doable on the spot, but all I can see is EDL. Before anyone asks - I have already tried MiFlash (it won't run because device is locked), also minimal adb fastboot gives error "token verify failed", so I know i have to use something to unlock my phones bootloader. Of course, there is another BUT - I did not turn on usb debugging and mi boot unlock in settings, so using Mi Unlock on pc with fastboot turned on gives result in "Please add your account in "MIUI's Settings > Developer optionss > Mi unlock status", which, as I said, I cannot do.
So we come to my question - is there any reasonable way to turn on this "Mi unlock status" and USB Debug without turning on whole system, or any other way to unlock bootloader/turn on it properly?
Greetings from Poland and thank you for your help
Which recovery do you have? Maybe you could try to restore system and data if it is twrp/fox.
If it's stock recovery give the mi assisant a try, never used it myself though, but worth a try.
Also look here https://c.mi.com/thread-2224746-1-0.html
and here https://c.mi.com/thread-2312140-1-0.html

[Urgent help] Xiaomi Mi A1 Unlock bootloader

Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Is there anyone on the platform who knows on this issue?
Or it's just a platform of Ads?
oooooof, sounds like a harsh brick from some sort of malware downloaded into the device or your kids diddled with some kernel settings somehow
is your device running on qualcomm snapdragon? i have the fix for it in this site
but first try the update option on the recovery, might fix something
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
found some fix on a russian website, gonna translate it:
im gonna make a warning there off-script of the russian website, this is NOT guaranteed to work. if it doesnt, send it off for repairs.
what do you need to do this:
1 - fully charge the phone
2 - a working usb cable
3 - a computer with wifi on it (i can tell you have it since you likely posted it on the computer)
4 -you should have Mi flash pro
5 - a recovery image on chinese (WARNING: 1.9 GB, BE PATIENT)
6 - actually working braincells and hands ( you guaranteedly have em)
THE STEPS:
1 - Load in mi flash pro and register in it under your name (not always under your name)
2 - press recovery
3 - you should see a lightning bolt icon along with the IMEI of your device
4 - type in the path of the firmware
even if your device shows your system has been destroyed you can still boot into recovery.
5 - in your device boot into recovery
6 - you see connect with mi assistant? choose that option and confirm it
your device should direct you to connect the usb from your computer to your device
7 - After you setup everything you should see your device, if not, press refresh device, then you should see the flash button, press it
8 - and there begins the magic - wait 5-10 mins for the firmware to initialise, DO NOT DISCONNECT THE USB FROM YOUR DEVICE AT THIS POINT, IF YOU DO, YOU WILL SCREW IT UP AND HAVE TO DO IT ALL OVER AGAIN!
if you dont screw up and your device actually boots congratualtions! the power of xi jing ping has restored your phone to normal with a small drawback - its all in chinese
worry not, it doesnt end here:
9 - Unlock the bootloader AKA Unlock OEM (This is important, because otherwise you will brick yourself again and will have to do it all over again)
10 - boot your device into fast boot and flash the global firmware onto your device (the global firmware can be found on the same xiaomiui website you got the chinese firmware from)
i hope this lengthy guide helps
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
crud, i forgot the critical part:
it doesnt boot you to the average xiaomi screen, its the A1 model
at this point you need to use the ADB to flash the chinese firmware and unlock the bootloader on the chinese firmware, then flash the global one
though you can still use the same method i typed above
How's the progress so far?
Lamntox said:
oooooof, sounds like a harsh brick from some sort of malware downloaded into the device or your kids diddled with some kernel settings somehow
is your device running on qualcomm snapdragon? i have the fix for it in this site
but first try the update option on the recovery, might fix something
Click to expand...
Click to collapse
I tried recovery also try to format the disc with recovery mode(power on + Volume up ) but then it stuck on the formatting disc... line
arshad4u said:
I tried recovery also try to format the disc with recovery mode(power on + Volume up ) but then it stuck on the formatting disc... line
Click to expand...
Click to collapse
Yup, the device is probs bricked
Have you tried the other methods i described?
arshad4u said:
Hi All,
I'm new to this as I'm not an Android developer but a good Android user. Requesting moderator to update anything required.
I've Xiaomi mi A1 and it was working for the last 3 years. Last Sunday, it just got hanged while kids were playing with it(maybe multiple apps/videos/some ad clicked) and it got hanged.
I restarted and it stuck on "Android One" screen till now even after multiple attempts.
What I tried:
1. I tried to wipe/factory reset from the Android recovery option(power off + volume up) then it stuck there saying "Formatting data" and I've restarted it to come back to Android One screen after hours.
2. I tried using MiFlash tool and it continues throwing the error "remote device is locked. cannot erase".
Then I got to know bootloader must be unlocked. and for that:
1. I tried fast boot oem unlock but it just says OK and device reboots. When I check status back, it's again locked .
2.I tried to unlock it using MiFlashUnlock tool but it says not able to find account details as I may have logged in once but probably I may not have used Xiaomi as cloud instead I prefer Google cloud.
You can assume I'v already searched possibly all threads on the internet and added here all possible information.
Attached getvar-all.txt output
Click to expand...
Click to collapse
Hi i dont have that kind of a problem!
my problem is when i try to do oem unlock it says error 0x1002 and idk what to do (i have same phone btw) i tried anything but nothing works!

Categories

Resources