Bricked by locking the bootloader? - Xiaomi Redmi Note 7 Questions & Answers

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

Related

Can't unlock bootloader, flash rom/recovery, or wipe data

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.

Extracting media from a locked Huawei P8 Lite with lost passphrase

Hello all,
I'm in possession of a Huawei P8 Lite of which the owner lost the passphrase. The question is whether the photos on the device can still be recoved. The bootloader of the device is currently locked. Debug mode is not enabled (nor is my computer authorized).
I was hoping that it would be possible to unlock the bootloader (which supposedly does not trigger a factory reset on this model?) - and then install a custom recovery from where I could backup the pictures. In order to unlock the bootloader, I would need IMEI-1 + IMEI-2 and the S/N. I was able to obtain one of the IMEIs by typing *#06# on the emergency call screen. Is there a way to obtain the other codes somehow (perhaps via fastboot)? Once I obtain the necessary information, my assumption is that I would be able to get an unlock code from Huawei after which I can unlock from fastboot. (Or does OEM unlock still need to be enabled from the developer options in Android?)
Edit: seems like the S/N is shown when connecting in fastboot mode and listing "fastboot devices".
Edit2: seems like obtaining the IMEI through the emergency call functionaltiy combined with the S/N is enough: I modified the "Product ID Generator" tool to include the "ALE-L21" model, and now it generates valid Product IDs that can be used on the Huawei website to obtain an unlock code.
Alternatively, I've noticed that there's an "emergency data backup" mode on this model, which I accidentally entered. I was hoping anyone knows more about this mode (note that this is different from the fastboot & rescue mode). I got booted into this mode because somehow the ext4 partition failed to mount during one of the many times I rebooted the phone. This mode also allowed me ADB access - however, this was a rescue OS which did not actually contain the user data. I would like to attempt to boot into this mode again, gain root access via a kernel exploit, and either read out the unlock code from /dev/block/mmcblk0p** or directly copy the media onto an SD card. Does anyone know how to "trigger" booting into this mode? The kernel code for the p8 lite seems to have a flag "CONFIG_FEATURE_HUAWEI_EMERGENCY_DATA" which enables this feature.
Pointers welcome
Note, I'm not desperate to recover the data - but this has become more of a "challenge" I'd like to solve.
Edit: I was able to unlock the bootloader with details obtained from the device. Unlocking the device did not initiate a wipe. Now it comes down to installing a recovery image and pulling the data
ce3c said:
Hello all,
I'm in possession of a Huawei P8 Lite of which the owner lost the passphrase. The question is whether the photos on the device can still be recoved. The bootloader of the device is currently locked. Debug mode is not enabled (nor is my computer authorized).
I was hoping that it would be possible to unlock the bootloader (which supposedly does not trigger a factory reset on this model?) - and then install a custom recovery from where I could backup the pictures. In order to unlock the bootloader, I would need IMEI-1 + IMEI-2 and the S/N. I was able to obtain one of the IMEIs by typing *#06# on the emergency call screen. Is there a way to obtain the other codes somehow (perhaps via fastboot)? Once I obtain the necessary information, my assumption is that I would be able to get an unlock code from Huawei after which I can unlock from fastboot. (Or does OEM unlock still need to be enabled from the developer options in Android?)
Edit: seems like the S/N is shown when connecting in fastboot mode and listing "fastboot devices".
Edit2: seems like obtaining the IMEI through the emergency call functionaltiy combined with the S/N is enough: I modified the "Product ID Generator" tool to include the "ALE-L21" model, and now it generates valid Product IDs that can be used on the Huawei website to obtain an unlock code.
Alternatively, I've noticed that there's an "emergency data backup" mode on this model, which I accidentally entered. I was hoping anyone knows more about this mode (note that this is different from the fastboot & rescue mode). I got booted into this mode because somehow the ext4 partition failed to mount during one of the many times I rebooted the phone. This mode also allowed me ADB access - however, this was a rescue OS which did not actually contain the user data. I would like to attempt to boot into this mode again, gain root access via a kernel exploit, and either read out the unlock code from /dev/block/mmcblk0p** or directly copy the media onto an SD card. Does anyone know how to "trigger" booting into this mode? The kernel code for the p8 lite seems to have a flag "CONFIG_FEATURE_HUAWEI_EMERGENCY_DATA" which enables this feature.
Pointers welcome
Note, I'm not desperate to recover the data - but this has become more of a "challenge" I'd like to solve.
Edit: I was able to unlock the bootloader with details obtained from the device. Unlocking the device did not initiate a wipe. Now it comes down to installing a recovery image and pulling the data
Click to expand...
Click to collapse
Now simply install twrp, connect to PC and you will be able to see all the files in Explorer
faby GT said:
Now simply install twrp, connect to PC and you will be able to see all the files in Explorer
Click to expand...
Click to collapse
With twrp you can delete lockscreen specific files to remove lock
Audriuskins said:
With twrp you can delete lockscreen specific files to remove lock
Click to expand...
Click to collapse
If you think about this, you can see how easy it is to unlock a phone (also for bad purposes...)
Agreed, I'm surprised that Huawei didn't force a device wipe before allowing OEM unlock. Especially because you can obtain all the details you need from the phone to obtain an unlock code on the Huawei website.
I indeed ended up installing TWRP and remove the password.key file to remove the lock

Pattern unlock on Custom ROM

I have a custom ROM(Evolution X) installed on my Mi A1. I wasn't able to unlock my phone using the saved pattern today but could unlock it using my fingerprint. Foolishly, I restarted my phone thinking that would solve the issue. The pattern was recognized during the "Enter pattern to start device" phase but I can't unlock the screen after that as it is necessary to input pattern after a restart. The system UI restarts when I try to unlock using a pattern.
I don't have TWRP on my device as I hotboot it during ROM flashing.
My problems are:
- I can't hotboot TWRP as my default USB mode is "Charging" and to change that I need to unlock the phone
- Because of the above problem device is not showing up on adb/fastboot.
I can however boot into Android recovery.
Can someone guide me on how to unlock my phone?
I'm pretty sure the "charging" USB mode have nothing to do with the problem, as I regularly connect to adb in charging mode. Maybe you forget to turn on USB debugging?
However, I think you can still get into fastboot and boot the TWRP, because I don't think fastboot gonna be affected by that.
If the above cannot help then the only way now is flash the stock rom to clear the password.

Bootloader not unlocking

Hello there, probably this is one of the stupid questions that you will read so I am sorry.
I got this phone in state of BLOD, checked and found out that I need the device unlocked so I decided freezing will do that job after reading the infamous guide on this page. Took it out and woila, it turns on now. I happily go to settings, enable developer options, and enable OEM unlock and USB debugging, happily restarted my phone and it's still locked. after dancing around for some time trying to find a way to unlock it, I decided to flash official os (android 8) through recovery mode ADB. Now I can't even boot by putting it into a freezer and when I try to flash an other version like android 6, it says that it's meant for "Angler" and my device is "", yeah "" it's empty.
Do I put this device in a wall I am building?
KamiNazy said:
Hello there, probably this is one of the stupid questions that you will read so I am sorry.
I got this phone in state of BLOD, checked and found out that I need the device unlocked so I decided freezing will do that job after reading the infamous guide on this page. Took it out and woila, it turns on now. I happily go to settings, enable developer options, and enable OEM unlock and USB debugging, happily restarted my phone and it's still locked. after dancing around for some time trying to find a way to unlock it, I decided to flash official os (android 8) through recovery mode ADB. Now I can't even boot by putting it into a freezer and when I try to flash an other version like android 6, it says that it's meant for "Angler" and my device is "", yeah "" it's empty.
Do I put this device in a wall I am building?
Click to expand...
Click to collapse
Not an expert but what you had to do was oem unlock and then usb debugging, after that connect the device and give ADB the permission so it installs adb interface driver. After that, reboot to bootloader open adb and try to unlock. It wouldn't be possible so, you manually install the google driver so it installs the bootloader interface, after that do the fastboot unlocking

POCO M3 Stuck on recovery, NV Data Corrupted (PLEASE HELP:c)

I have a POCO M3 on stock version, I haven't tried to root it or install any custom stuff, I was sleeping and when I woked up, my phone was constantly getting into recovery mode, I believe they can enter on recovery mode by mistake or something, just reboot to system and problem solved, but this wasn't the case, there's a message on red below all menus saying "NV Data is corrupted" and I can't do anything, I don't want to wipe data, I need to recover it, but if it is the only way to recover the phone, I'll do it.
Until now, I have tried:
- Booting into safe mode (it says MIUI for 2-3 secs and reboots)
- I've read on internet that flashing a stock rom via MiFlash could help, I get a "couldn't write on locked state or something like that")
- Tried to unlock bootloader with MiUnlock to flash the stock rom (it says that I have to set an option on Developer Options, but the phone can't boot, I can't access Developer Options)
- Also tried to flash modem with NON-HLOS.bin with fastboot (FAILED (remote: Flashing is not allowed in Lock State), because my bootloader is locked I suppose...)
I don't know what to do, if someone can help, I'd really appreciate it, this is my last resource. (I could send it to a Xiaomi Service or something but here in my country there aren't any store or technical support available, only third-party "technicians", they almost always are a scam and charge ridiculous amounts of money and don't even diagnose the issue with the phone...)
rendon.kevin said:
I have a POCO M3 on stock version, I haven't tried to root it or install any custom stuff, I was sleeping and when I woked up, my phone was constantly getting into recovery mode, I believe they can enter on recovery mode by mistake or something, just reboot to system and problem solved, but this wasn't the case, there's a message on red below all menus saying "NV Data is corrupted" and I can't do anything, I don't want to wipe data, I need to recover it, but if it is the only way to recover the phone, I'll do it.
Until now, I have tried:
- Booting into safe mode (it says MIUI for 2-3 secs and reboots)
- I've read on internet that flashing a stock rom via MiFlash could help, I get a "couldn't write on locked state or something like that")
- Tried to unlock bootloader with MiUnlock to flash the stock rom (it says that I have to set an option on Developer Options, but the phone can't boot, I can't access Developer Options)
- Also tried to flash modem with NON-HLOS.bin with fastboot (FAILED (remote: Flashing is not allowed in Lock State), because my bootloader is locked I suppose...)
I don't know what to do, if someone can help, I'd really appreciate it, this is my last resource. (I could send it to a Xiaomi Service or something but here in my country there aren't any store or technical support available, only third-party "technicians", they almost always are a scam and charge ridiculous amounts of money and don't even diagnose the issue with the phone...)
Click to expand...
Click to collapse
USE Any Software Box Connect Phone To EDL Mode Write EFS File 100% Ok

Categories

Resources