Hello, owner of a Xiaomi Mi A2 running the June update.
I recently unlocked the bootloader through "fastboot oem unlock" command. Ever since I am stuck in bootloop. I have managed to boot in TWRP using a specific img for the device, but I am not sure how to proceed. Is it possible to install a stock rom and start all over?
thymiosK said:
Hello, owner of a Xiaomi Mi A2 running the June update.
I recently unlocked the bootloader through "fastboot oem unlock" command. Ever since I am stuck in bootloop. I have managed to boot in TWRP using a specific img for the device, but I am not sure how to proceed. Is it possible to install a stock rom and start all over?
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/help/strange-issue-mi-a2-t3945125
thymiosK said:
Hello, owner of a Xiaomi Mi A2 running the June update.
I recently unlocked the bootloader through "fastboot oem unlock" command. Ever since I am stuck in bootloop. I have managed to boot in TWRP using a specific img for the device, but I am not sure how to proceed. Is it possible to install a stock rom and start all over?
Click to expand...
Click to collapse
You should read this flashing guide first and then proceed further...
https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
There is a link of how to unlock bootloader properly in the same thread so read that too... I think you missed the flashing unlock critical part during unlock bootloader process so if you are still in stock then do it first so that you can able to flash stock later or else it would be difficult for you to flash back stock..
Since I was able to get int fastboot I tried countless times locking and unlocking bootloader. After numerous retries I have also managed to install a stock rom I found online using the TWRP. And it did work. I got my phone back to working. Thank you anway.
Related
Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
happimeal said:
Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
Click to expand...
Click to collapse
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Thank you for a great explanation.
If you ask the people at xposed modules they may be able to do something maybe....
5.1 still displays bootloader unlocked message.
cschmid44 said:
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Click to expand...
Click to collapse
I have installed h815 KDZ files using LGUP. When i reboot it still displays Bootloader unlocked message. I can not use bootloader unlock/lock guide as I have bootloader unlocked.
Any other means to get rid of the message.
bump for way to relock h815
Hello team,
I had 4.03 with unlocked BL and TWRP installed. I reinstalled the stock N recovery first. When I use the command "fastboot oem lock" it ask me to say yes and I do, it reboots and flashes the white symbol and reboots, stuck in this bootloop. Anybody seen this before or have a fix? I am trying to restore to stock to sell.
thanks,
Nope I didn't have an issue like you. 2 attempt of going back to stock and never had an issue. Did you successfully flash the stock recovery?
Just use the unbrick meathod it resets everything
kingheri1 said:
Nope I didn't have an issue like you. 2 attempt of going back to stock and never had an issue. Did you successfully flash the stock recovery?
Click to expand...
Click to collapse
Yes- I did flash the stock recovery. But when I do the "fastboot oem lock" it just boot loops- any ideas?
aaronc_98 said:
Hello team,
I had 4.03 with unlocked BL and TWRP installed. I reinstalled the stock N recovery first. When I use the command "fastboot oem lock" it ask me to say yes and I do, it reboots and flashes the white symbol and reboots, stuck in this bootloop. Anybody seen this before or have a fix? I am trying to restore to stock to sell.
thanks,
Click to expand...
Click to collapse
You should never lock the bootloader with non stock recovery or boot image. The security in newer devices is a lot meaner.
There are two ways you can resolve this:
Method 1:
You'll need to unlock the bootloader first. Try getting into fastboot and run "fastboot oem unlock".
If it allows unlocking you're done, just flash everything stock (first the recovery and then OOS 4.0.3 via the ADB option in the recovery). Then, go to fastboot and relock the bootloader. Should work since it worked many times for me.
Method 2:
If it doesn't allow and you're in TWRP you can't do any flashing since the locked bootloader won't allow TWRP to boot.
In this case, contact OnePlus Support via Live Chat and tell them you got a software issue with your phone.
They'll give you links to three files needed for flashing the device. Download those and let them know. They'll flash your device via remote support within a week. No matter what S/W state it is in.
Hope it helps
Note, this is my first attempt at rooting and flashing a custom rom.
I unlocked the bootloader and attempted to flash cm. Also used SuperSU and twsp to backup. The flash did not go through, as far as I could tell. The phone would still boot, with the warning, however once I attempted an OTA update from 4.4 to 5.0 the phone is now stuck on the unlocked bootloader warning. HELP!!!
naboyd32cp said:
Note, this is my first attempt at rooting and flashing a custom rom.
I unlocked the bootloader and attempted to flash cm. Also used SuperSU and twsp to backup. The flash did not go through, as far as I could tell. The phone would still boot, with the warning, however once I attempted an OTA update from 4.4 to 5.0 the phone is now stuck on the unlocked bootloader warning. HELP!!!
Click to expand...
Click to collapse
When in fastboot mode, device is UNLOCKED, Status Code 3, Software Status Modified. Any help would be appreciated!
Solved !!!
I was able to flash global miui 9.5.
Hi ,
So after finally the bootloader is unlocked I tried to flash the global rom via mi flash tool.
Update failed and an error message is update crc list failed !
I tried flashing back the chinse rom and I get the same error.
I can boot the device to recovery mode, but its mi recovery 3.0, I have 3 options:
1.wipe data
2. boot to system
3. connect via pc suite
tried with pc suite but it says my device isn't supported.
The computer recognizes the device via MiFlash tool but in adb via cmd when I type adb devices I get blank row and its unable to find the device.
how can I make my phone usable again please?
I have tried many things I found on google but nothing worked.
Thank you all
Hi
Is fastboot mode able?
Try to unlock again.
what do you mean able?
the phone is recognized via Mi Flash tool but in adb via cmd it is not recognized.
I waited 700 hours for the unlock and the phone is unlocked.
can you explain please what is fastboot able and what do you mean to try to unlock again?
thx
Hi
Could you start the phone in fastboot mode?
StupiduserHH said:
Hi
Could you start the phone in fastboot mode?
Click to expand...
Click to collapse
yes the phone is in fastboot mode, and I cant back to normal mode for regular use.
I tried to unlock again like you said it the program said the device is already unlocked.
Have you tried the first option, wipe data?
Don't panick, since you have fastboot mode it's not bricked. Let's start by booting into TWRP.
Download TWRP and put it in the same directory with your FASTBOOT.exe file.
Open a windows dos prompt and get to the same directory as your FASTBOOT file.
Reboot your phone into FASTBOOT mode.
in your DOS prompt type "Fastboot boot yourrecoveryfilename.img" (change the yourrecoveryfilename.img to the TWRP recovery image file you downloaded)
your phone should reboot into TWRP if there wasn't an error. TWRP won't be permanent (if you reboot out of TWRP it won't retain it), but will allow you to flash ROM.
I've only ever flashed all my ROMs through TWRP, never used anything else since i unlocked the phone.
Let me know how this goes.
fastboot .exe file,where can i get it
_katho_ said:
Have you tried the first option, wipe data?
Click to expand...
Click to collapse
wherecan i download this fastboot file
Hello all.
Big screw up, I think. So I've had my MI 8 for a while now, no issues, until today I decided to install official lineage on it. The bootloader was unlocked. I flashed TWRP, but every time I rebooted the phone, it would go back to stock recovery, not TWRP. So here the issue started:
- Via Mi flash tool, I reflashed global MIUI 10 back to stock. I didn't realize I had relocked the bootloader...
- I tried reflashing TWRP without realizing I had relocked the bootloader.
- Thinking that the TWRP flash was done incorrectly again, I simply wanted to go back to stock, and attempted to use the mi flash tool to reflash, once again, the global stock MIUI 10. the flash tool said it was a success. (I still didn't realize I was on a locked bootloader)
- I am now on a bootloop. I can't get past the stock recovery screen, but I can go into fastboot. The recovery screen has a warning that the ROM cannot be used on the phone.
- I tried re unlocking the bootloader with the unlock tool, but because my Mi account credentials are not input on the phone (the phone was wiped clean), I cannot re unlock it.
What can I do? How can I get out of the bootloop, and hopefully re unlock and flash global rom clean again?
dancarriv said:
Hello all.
Big screw up, I think. So I've had my MI 8 for a while now, no issues, until today I decided to install official lineage on it. The bootloader was unlocked. I flashed TWRP, but every time I rebooted the phone, it would go back to stock recovery, not TWRP. So here the issue started:
- Via Mi flash tool, I reflashed global MIUI 10 back to stock. I didn't realize I had relocked the bootloader...
- I tried reflashing TWRP without realizing I had relocked the bootloader.
- Thinking that the TWRP flash was done incorrectly again, I simply wanted to go back to stock, and attempted to use the mi flash tool to reflash, once again, the global stock MIUI 10. the flash tool said it was a success. (I still didn't realize I was on a locked bootloader)
- I am now on a bootloop. I can't get past the stock recovery screen, but I can go into fastboot. The recovery screen has a warning that the ROM cannot be used on the phone.
- I tried re unlocking the bootloader with the unlock tool, but because my Mi account credentials are not input on the phone (the phone was wiped clean), I cannot re unlock it.
What can I do? How can I get out of the bootloop, and hopefully re unlock and flash global rom clean again?
Click to expand...
Click to collapse
Here I made this thread for you : https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
tsongming said:
Here I made this thread for you : https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
Click to expand...
Click to collapse
I finally got around fixing this. It turns out my phone was China, with Global ROM. So I did an EDL test point method and paid someone with an authorized account to access my laptop remotely to Flash the latest China ROM. I waited the required period for bootloader unlocking, and it's back alive!
I'm running official lineage 16, and I'm pretty happy with the results. I'm Using it as a daily driver instead of my all stock pixel 2 XL. No issues.
dancarriv said:
I finally got around fixing this. It turns out my phone was China, with Global ROM. So I did an EDL test point method and paid someone with an authorized account to access my laptop remotely to Flash the latest China ROM. I waited the required period for bootloader unlocking, and it's back alive!
I'm running official lineage 16, and I'm pretty happy with the results. I'm Using it as a daily driver instead of my all stock pixel 2 XL. No issues.
Click to expand...
Click to collapse
That's great news! It sucks that you were tricked into thinking your that phone is a global version. But at least you able to get things permanently sorted.
Sent from my Xiaomi MI 8 using XDA Labs
Agimax said:
Don't panick, since you have fastboot mode it's not bricked. Let's start by booting into TWRP.
Download TWRP and put it in the same directory with your FASTBOOT.exe file.
Open a windows dos prompt and get to the same directory as your FASTBOOT file.
Reboot your phone into FASTBOOT mode.
in your DOS prompt type "Fastboot boot yourrecoveryfilename.img" (change the yourrecoveryfilename.img to the TWRP recovery image file you downloaded)
your phone should reboot into TWRP if there wasn't an error. TWRP won't be permanent (if you reboot out of TWRP it won't retain it), but will allow you to flash ROM.
I've only ever flashed all my ROMs through TWRP, never used anything else since i unlocked the phone.
Let me know how this goes.
Click to expand...
Click to collapse
Hey, so I don't want to spam you, but seems like you really know about this and I desperately need some help...
Could you please take a look at my thread? https://forum.xda-developers.com/xi...nt/help-bricked-mi-mix-2s-installing-t4131269
Thank you
Hi XDA.
I was curious to find out is it possible to flash stock rom back on the device and relock the bootloader without bricking the device.
The EDL method seems like a pain..
The model is Raphaelin.
Flashed chinese 10.3.16.0, wiped system, flashed HAVOC, formatted data, wiped, booted. Everything works fine.
My questions are...
If and can i flash the EU rom and lock bootloader? Maybe through MiFlash.
Or
If and how can I flash the indian global rom and lock the bootloader after that?
Thanks guys!
Raphaelin means Indian ROM? If, you cant lock bootloader after flash different region ROM. If you lock bootloader after flash CN MI or RU type ROM, your device will boot lop means brick. You have to flash IN (india) official ROM to relock bootloader.
Download Indian Global Fastboot ROM and flash by XiaoMiFlash software.
http://bigota.d.miui.com/V10.3.5.0....INGlobal_V10.3.5.0.PFKINXM_f924323a4b_9.0.zip
https://androidfilehost.com/?fid=11410963190603913551
https://mega.nz/#!HAhjTSzR!m10q_1q2Q4CL3sAYtF_78OdgtxdlJ4BrmwVxfNzNAfc
aman2125 said:
Hi XDA.
I was curious to find out is it possible to flash stock rom back on the device and relock the bootloader without bricking the device.
The EDL method seems like a pain..
The model is Raphaelin.
Flashed chinese 10.3.16.0, wiped system, flashed HAVOC, formatted data, wiped, booted. Everything works fine.
My questions are...
If and can i flash the EU rom and lock bootloader? Maybe through MiFlash.
Or
If and how can I flash the indian global rom and lock the bootloader after that?
Thanks guys!
Click to expand...
Click to collapse
You can only lock the bootloader with the ROM from the same region as the phone. In your case you can only lock the bootloader when flashing an official Indian fastboot ROM. If you try to lock the bootloader flashing any other ROM you will hard brick the phone. This can only be done when flashing the official fastboot ROM with the Mi Flash Tool.
Robbo.5000 said:
You can only lock the bootloader with the ROM from the same region as the phone. In your case you can only lock the bootloader when flashing an official Indian fastboot ROM. If you try to lock the bootloader flashing any other ROM you will hard brick the phone. This can only be done when flashing the official fastboot ROM with the Mi Flash Tool.
Click to expand...
Click to collapse
Okk.. Thanks a lot!!!
Won't dare try anything stupid..
I have the Chinese version of k20pro and now I'm running the eu version of rom that is saying that my redmi is a 9t pro.
I also tried to lock the bootloader with this rom, but the phone got stuck on bootloop.
I thought that my phone is bricked, as no unlocked bootloader, there is no possibility to install the twrp and mi flash gave me an error. Luckily I put the phone in fastboot mode and run again the process of unlocking the bootloader and worked for me.
I would like to give it another try, but when I will have more time to read what other steps are needed and not to end up with a bricked device, especially that I enjoy this phone a lot.
degeaba1981 said:
I have the Chinese version of k20pro and now I'm running the eu version of rom that is saying that my redmi is a 9t pro.
I also tried to lock the bootloader with this rom, but the phone got stuck on bootloop.
I thought that my phone is bricked, as no unlocked bootloader, there is no possibility to install the twrp and mi flash gave me an error. Luckily I put the phone in fastboot mode and run again the process of unlocking the bootloader and worked for me.
I would like to give it another try, but when I will have more time to read what other steps are needed and not to end up with a bricked device, especially that I enjoy this phone a lot.
Click to expand...
Click to collapse
You can not lock the bootloader again if you have any ROM that is not for the same region as your phone. With a Chinese phone, this means you can only lock the bootloader when installing Chinese MIUI.
You were lucky you had already unlocked the phone before and so had unlock permission on your Mi account. Many others have bought phones with the bootloader already unlocked, then done the same as you. Because they could not then unlock the bootloader, they have ended up with a hard bricked device, which needed flashing with an authorised service account.
How to Re-lock bootloader
Hi... I'm on stock rom Raphaelin v11. 0.4.0 global stable and my bootloader is unlocked. While using mantra RDservice app, it gives an error of rooted device. My device isn't rooted and every payment app runs fine. So I want to try locking bootloader to see if it works.