Flashing with locked bootloader - Xiaomi Mi 5s Questions & Answers

Hi,
My bootloader is locked, and I don't have access to a Windows box to use the Xiaomi unlock tool.
I can use fastboot to boot straight into TWRP without installing it. While temporarily booted into TWRP I can theoretically flash Lineage or any other ROM.
Is it safe to do the above, to flash whilst temporarily booted into TWRP?

I've flashed TWRP and later a ROM from Xiaomi.eu to a MI4c. It was locked after updating to Android 7.
If you can put it to fastboot mode with buttons, you'll be able to put it in EDL mode with ADB.
Then you can flash a official ROM with Miflash, but putting TWRP downloaded from Xiaomi.eu instead of original in rom folder.
After that you can copy and flash any rom with TWRP.
Seen in reddit and linked to tutorial from here.
Enviado desde mi MI 6 mediante Tapatalk

Related

Mi Max Helium Stuck on Mi Logo

Hi, new to the forum and new with flashing android. Got some troubles when trying flashing my Mi Max Helium.
I successfully installed TWRP 3.0.2-0 (From http://forum.xda-developers.com/mi-max/development/recovery-twrp-3-0-2-0-touch-recovery-t3388073) on Mi Max Helium (locked bootloader), then booted to TWRP and flashed the latest official v8.1.3.0 global ROM. However, Mi Max stuck on Mi Logo after reboot.
I flashed with a mod ROM (Helium Global 8.0.3.0 Stable Rooted (10-13-16) by ajsmsg78, from here: http://forum.xda-developers.com/mi-max/development/rom-miui-8-global-t3439698) and successfully rebooted. The system automatically downloaded v8.1.3.0 global ROM, but TWRP kicked in during system restart which resulted in update failed.
Just don't understand why flashing mod ROM succeeded but official one not, and how can I update to the latest ROM? ajsmsg78 has mod the latest ROM but it seems having some glitches and I don't want to use it.
Thanks.
hi richard few things to keep in mind while flashing
1)the only way to flash official rom (miui firmware) on a locked bootloader would be to put phone in edl mode(press vol up+ vol down+ pwr btn simultaneously on pwr of condition) and flash thru miflashtool beta using fastboot files. this is regardless in which rom ur on presently custom cm/globe/mod miui.
2)ota update can happen only when ur on official firmware that too.global stable to global stable r chinese stable to chinese stable.similarly with developer roms
so if u want to to get to official firmware.first download the required files: miflashtool and setup on pc.download fastboot firmware (files end with .tgz extension.extract twice u end up with folder contain some files and folder named images).now point to the folder containing extracted files.check"clean all option" at bottom right of miflash window. put phone in edl mode and flash the firmware.u will lose twrp recovery and root.
wingryder said:
hi richard few things to keep in mind while flashing
1)the only way to flash official rom (miui firmware) on a locked bootloader would be to put phone in edl mode(press vol up+ vol down+ pwr btn simultaneously on pwr of condition) and flash thru miflashtool beta using fastboot files. this is regardless in which rom ur on presently custom cm/globe/mod miui.
2)ota update can happen only when ur on official firmware that too.global stable to global stable r chinese stable to chinese stable.similarly with developer roms
so if u want to to get to official firmware.first download the required files: miflashtool and setup on pc.download fastboot firmware (files end with .tgz extension.extract twice u end up with folder contain some files and folder named images).now point to the folder containing extracted files.check"clean all option" at bottom right of miflash window. put phone in edl mode and flash the firmware.u will lose twrp recovery and root.
Click to expand...
Click to collapse
Thank for clarifying. What if I flash supersu right after flashing official ROM?
richardjhy said:
Thank for clarifying. What if I flash supersu right after flashing official ROM?
Click to expand...
Click to collapse
It works!
After flashing a rom then press reboot system, if you see messeage, "No OS installed", you just need to flash superSU to let it mount your system again, that's all

Accidentally wiped Vendor in TWRP

Phone: Redmi Note 5 Global Version (Not Rom!) Red
I installed TWRP successfully and accidentally wiped Vendor (no backups created) before I flashed xioami.eu miui 10 rom.
Now when I try to install Xiaomi.eu Rom in TWRP i get the following error
"E2001: Failed to update vendor image.
Updater process ended with error 7. Error installing zip file...."
How can I fix this? Please help I am afraid I bricked this phone
flash vendor image via fastboot.
How do I get the right vendor image? can you post all commands? Explain
Please help me
cassinni said:
Please help me
Click to expand...
Click to collapse
Reflash the rom again! It can be from twrp
which one? the one i want to flash i tried 20 times its always the same error.
cassinni said:
which one? the one i want to flash i tried 20 times its always the same error.
Click to expand...
Click to collapse
Flash original MIUI ROM using fastboot method
en.miui.com/a-234.html
Flash latest available version
Redmi Note 5 Latest Global Stable Version Fastboot File Download
or Redmi Note 5 Pro Latest Global Stable Version Fastboot File Download?
I ask because I got the Redmi Note 5 Global Version (Dual Camera) in red color. Dual Camera is usually considered Pro eventhou it says nowhere Pro.
Using your link will relock my sim card or what do they mean by locked?
This phone came unlocked sim by xiaomi (stock).
Also will this relock my bootloader, which xiaomi unlocked for me after waiting 360 hours?
cassinni said:
Redmi Note 5 Latest Global Stable Version Fastboot File Download
or Redmi Note 5 Pro Latest Global Stable Version Fastboot File Download?
I ask because I got the Redmi Note 5 Global Version (Dual Camera) in red color. Dual Camera is usually considered Pro eventhou it says nowhere Pro.
Using your link will relock my sim card or what do they mean by locked?
This phone came unlocked sim by xiaomi (stock).
Also will this relock my bootloader, which xiaomi unlocked for me after waiting 360 hours?
Click to expand...
Click to collapse
pro and global its the same we use the same rom. whyred dual camera global AI or india pro same rom.
you check clean all in miflash so you dont lock your bootloader again..
cassinni said:
Redmi Note 5 Latest Global Stable Version Fastboot File Download
or Redmi Note 5 Pro Latest Global Stable Version Fastboot File Download?
I ask because I got the Redmi Note 5 Global Version (Dual Camera) in red color. Dual Camera is usually considered Pro eventhou it says nowhere Pro.
Using your link will relock my sim card or what do they mean by locked?
This phone came unlocked sim by xiaomi (stock).
Also will this relock my bootloader, which xiaomi unlocked for me after waiting 360 hours?
Click to expand...
Click to collapse
Just select flash_all.bat
You don't have to lock your bootloader but bootloader should be unlocked before flashing fastboot ROM
Check fastboot ROM file name, it should start with whyred (no matter whether you select Redmi Note 5 Pro or Redmi Note 5 global)
That's unusual, I always wipe vendor before flash a custom rom and don't have any issues.
Buet allways u can flash stock rom with TWRP or Fastboot and recover it.
I got mi suite installed, I got Mi Flash installed, adb and none can find my phone. WHen I turn on device it goes automatically into fastboot, maybe i can get into twrp but i cannot get into regular miui, I deinstalled all antivirus/firewall. I tried usb2 and usb3 ports on my pc.
PS C:\adb> adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
PS C:\adb> adb devices
List of devices attached
I can get into twrp. Could I insert a sd card and add stock stable xiaomi rom for my phone and flash it thru twrp?
Would that delete twrp aswell and my unlocked bootloader?
Hi,
i could copy files to internal storage while twrp is running. Now can I fix my phone if i flash xiaomi stock rom in twrp?
will that lock bootloader? delete twrp? OR do I have to flash the fastboot version of stock xiaomi rom in twrp?
cassinni said:
Hi,
i could copy files to internal storage while twrp is running. Now can I fix my phone if i flash xiaomi stock rom in twrp?
will that lock bootloader? delete twrp? OR do I have to flash the fastboot version of stock xiaomi rom in twrp?
Click to expand...
Click to collapse
Flashing Recovery ROM from TWRP will not lock bootloader but twrp will be replaced by mi recovery to avoid this after flashing recovery ROM just flash twrp.img
I flashed stock xiaomi rom and twrp+lazyflasher. system runs again but i cannot install the rom i want.
"E2001: Failed to update Vendor image.
Updater process ended with error 7" after that i cannot boot anymore into system.
So i have to reflash stock rom while still in twrp, twrp and lazyflasher and i get into stock rom.
cassinni said:
I flashed stock xiaomi rom, now my system runs again but twrp is gone. bootloader is still unlocked. Now i am trying to flash twrp but adb gives error file size too large...
i think its related to my phone being the Global Version. I read it somewhere...
Click to expand...
Click to collapse
You can't flash twrp all you have to do is fastboot boot twrp.img and from twrp recovery once again you have to flash twrp.img
i meant flash twrp within twrp. sorry
try to download and flash any other costom rom. I usually wipe all except internal storage and sd card when flashing rom.
neokragu said:
try to download and flash any other costom rom. I usually wipe all except internal storage and sd card when flashing rom.
Click to expand...
Click to collapse
Why what would that do?
what rom you are using?. your rom might be corrupted. I used Aosp - Pie, los 15, bootlegger, AE, etc currently on MSM extended. I wipe vendor partition before flashing rom everytime.

Stuck in fastboot

Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I tryed to flash the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash again i get error "no crc list ".
I enter the recovery mode and wiped all data but is still stuck.
What can i do to flash to a Global ROM and get out of fastboot?
Thanks
iscac7558 said:
Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I tryed to flash the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash again i get error "no crc list ".
I enter the recovery mode and wiped all data but is still stuck.
What can i do to flash to a Global ROM and get out of fastboot?
Thanks
Click to expand...
Click to collapse
You might do something wrong on miflash tool. Retry but I never used this
It's possible to flash global on cn if bootloader is unlocked.
BTW why not flashing orangefox twrp and flash miui with it ? Xiaomi.eu or any other modded miui ?
Regards
Sent from my MI MAX 3 using XDA Labs
Same issue
My max3 china rom change to global rom
Stuck at fastboot please help me
iscac7558 said:
Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I tryed to flash the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash again i get error "no crc list ".
I enter the recovery mode and wiped all data but is still stuck.
What can i do to flash to a Global ROM and get out of fastboot?
Thanks
Click to expand...
Click to collapse
When you flashed global rom with tool you needed to choose option to only wipe data but you chose flash and lock hence stuck in EDL mode now. Need to have someone with permissions remove it but it take you to open back off phone and do test point. I did same thing as you guys and found a guy you got my phone back. It's an easy error to make and it's why phone will go to fastboot when try to boot. You needed to change option. Try unlock bootloader as if flash work it will boot then when bootloader unlocked
If your bootloader is still unlocked then check the version of global rom your flashing as need a fastboot version not recovery
have you solved your issue?
iscac7558 said:
Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I tryed to flash the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash again i get error "no crc list ".
I enter the recovery mode and wiped all data but is still stuck.
What can i do to flash to a Global ROM and get out of fastboot?
Thanks
Click to expand...
Click to collapse
hi i was wondering if you were able to solve your issue. i have the exact same problem, any help would be sincerely appreciated.
nice1nice said:
hi i was wondering if you were able to solve your issue. i have the exact same problem, any help would be sincerely appreciated.
Click to expand...
Click to collapse
Hi there,
I encountered the same issue. I tried to flash some CN Rom without enough research, without knowing that you can't just flash an Android 10 rom from 9 directly by recovery (even TWRP). So I ended up Fastboot or TWRP but never able to boot into system. Fortunately I didn't flash my Max3 by fastboot rushly, so my phone was still unlocked.
This is how I solved it:
1. Download an official CN ROM (the below I used is MIUI 11 with Android 9.9.x);
I can't post link here but search "miui通过线刷升级" - you shall see a miui.com link ending with shuaji-393.html. That's the page I download the Mi Max3 ROM from.
2. Use MiFlash to flash the official ROM with the flash option "clean all", NOT "clean All and lock";
3. The phone shall reboot into system, give it 5-10 minutes;
4. Flash the miui.eu ROM you like (DO make sure it is Android 9 tho) by recovery (tutorial given under every official xiaomi.eu ROM download).
Again it's easy to search
It took me less than an hour to do it (I don't have much experience with new XiaoMi phone). So don't worry about bricking your phone forever.
Hope it helps to destress

Can't Flash Stock Firmware After Flashing Xiaomi.eu 11.0.9

Recently I unlocked bootloader of my K30 5G. It was my first Xiaomi phone. So, it is hard for me to doing all the advance things. What I did id:
1. Unlocked Bootloader
2. install TWRP using fastboot method (then I just boot into twrp to check if the twrp work or not and twrp was installed & working fine. Then I just booted into fastboot again and then ↓
3. flash the Xiaomi.eu 11.0.9 using fastboot.
4. Everything worked fine.
5. then I just realised that miui 12.5 is now available to install using TWRP.
6. then I try to boot into twrp but my phone just show the boot logo then go black screen & again booted into the system. I was unable to boot into recovery mode.
7. Then I try to install the twrp again using fastboot. it shows successful but when I boot into recovery mode it booting into system not going to recovery mode.
8. Then I tried to go back to my Chinese rom by flashing official fastboot rom using mi flash tool but when I try to do this it says: "antiroll back check error"
so what can I do now? How do I go back to Chinese rom? Or how do I install custom recovery?
Now I stuck in the xiaomi.eu 11.0.9 pls help
Hello,to use MiFlash to flash to stock ROM,you need to delete the part which is used to anti rollback (They do not want users to downgrade ,that may cause flashing failure),the part you should delete I will mark on the picture.Hope that will help you
IDundeFINED said:
Hello,to use MiFlash to flash to stock ROM,you need to delete the part which is used to anti rollback (They do not want users to downgrade ,that may cause flashing failure),the part you should delete I will mark on the picture.Hope that will help youView attachment 5223461View attachment 5223457View attachment 5223459
Click to expand...
Click to collapse
hey thanks for your reply. Though the K30 5G doesn't have anti roll back protect it shows me anti roll back check error. But then I found a comment on somewhere in Internet, the comment says: the folder in which you place the firmware should not be in other drives. it should be in "C" drive and the name shouldn't contain any special character and space. And the name should be small. Then what I did is:
1. Rename the folders to (1, 2,3 or a, b, c) then I move the firmware folder to "C" drive and flash using mi flash tool and it really worked .. (you may get error message. but don't worry it was success) enjoy

Question Laptop turned off while flashing using Mi Flash at the Super partition

Hey,
I was flashing MIUI 12.5.2 for my phone from mi flash and then windows update restarted my laptop in between.
It was flashing super.img
It is still in fastboot but none of the commands work.
What do I do?
If fastbooot still works then try to flash stock rom using miflash
If flashing with miflash doesn't work, try to flash the xiaomi.eu 12.5.2.0 fastboot rom (that is if you have an unlocked boot loader)

Categories

Resources