TWRP bootloop - Xiaomi Mi 9 Questions & Answers

Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.

nerijusas said:
Cant boot into system after installing miui11. Everytime when i boot into system it reboots into twrp.
Click to expand...
Click to collapse
More details needed if you want some help or all you wanted is some condolence?
P.S. If you don't know what details, just describe what actions have been taken I was on ROM x versions x.x.x with TWRP x, how you flashed MIUI11 and what MIUI11 ROM and version you used.

TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.

P.S I have global version

nerijusas said:
TWRP version is: 3.3.1-42
I was on original rom and I used this rom: xiaomi.eu_multi_MI9_V11.0.2.0.QFACNXM_v11-10
Procedure: I wiped dalvik/ART cahce, cache, System Data and then installed the rom and rebooted and I am now in bootloop.
Click to expand...
Click to collapse
Does your TWRP successfully decrypt data now? Do you have access to files in TWRP? Or you just see strange names.
If that is the case, just format data, it's an option in wipe menu. And then reflash ROM.
btw wiping system is not needed and useless.

Decrypts successfully because i install rom from internal storage and still it doesnt help.

nerijusas said:
Decrypts successfully because i install rom from internal storage and still it doesnt help.
Click to expand...
Click to collapse
Then everything should work, try to read this thread: https://xiaomi.eu/community/threads/miui-11-0-stable-release.52628/ , may be you not the only one.
But i would try format data any way. Format will remove everything and will create a fresh unecrypted file system. Wipe only delete files.
If it won't help you may try to flash fastboot ROM, and then format and etc.
btw When you wipe cache/dalvik, it takes some time to boot, it can be 5-10 minutes.

Related

Decryption unsuccessful

I just flashed aicp latest build and got the decryption unsuccessful!!
why is that happening coz i have not encrypted my phone .... i even flashed lineage 15.0 and same is happening pls help me
I had to run the Qualcomm restore tool to get back from this state. Obviously you will loose all data when doing so.
The strange thing is I just flashed the same LineageOS zip as before and ended in this state. [emoji848]
pitrus- said:
I had to run the Qualcomm restore tool to get back from this state. Obviously you will loose all data when doing so.
The strange thing is I just flashed the same LineageOS zip as before and ended in this state. [emoji848]
Click to expand...
Click to collapse
what should I do now?
gulatilakshay said:
what should I do now?
Click to expand...
Click to collapse
format data if you are installing the new rom over a stock oxygem rom that will delete all your data and remove encryption.
From fastboot you need to format userdata (you will loss everything, however you might have already lost everything). You will get formatted decrypted internal storage with reduced size. Don't panic.
Then you required to flash blue_spark TWRP recovery (v50 or latest) from fastboot.
Then boot to recovery and format internal storage from Advance Wipe menu (under Wipe). You will regain the actual internal storage size.
Flash your desired rom.
Thanks
OP, I tried the latest LineageOS unofficial and got the same error. Just reflash a ROM like Cardinal Xtended or an Oreo ROM that you have verified to be working on your phone. Clear System, Data and Cache. All should be well, and you don't have to wipe storage.
Cheers!

Always Stuck in Fastboot

Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Platinum_Pyth0n said:
Hello,
I have an Indian K20 pro (Raphaelin), my bootloader has been unlocked. I flashed Indian (10.3.8.0, Android Q) through Abhishek's TWRP. I wanted to check out Miui Mix, so I did the usual, booted in to Recovery (TWRP) then clicked on Format Data, then proceeded to wipe other dalvik, cache, system, internal storage, I then tried to boot in to recovery again so that I could flash the Rom. I was stuck in fastboot, so couldn't proceed further with anything but the Fastboot logo. I then flashed Fastboot Rom (10.3.3.0) through the MiFlash tool. Booted in to the ROM, then flashed Mauronofrio's TWRP, then I repeated the same process Format Data, then, wipe other dalvik, cache, system, internal storage. Now I am back to square stuck with the Fastboot mode which doesn't seem to be losing my sight. While I did flash the fastboot rom again, I'm just hesitant to proceed further without people with experience.
Can someone please help me install Miui Mix? Thank you.
Click to expand...
Click to collapse
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
ergysramaj said:
Format data type yes / wipe dalvik , cashe maybe internal but not system.
I hope this will work
Click to expand...
Click to collapse
Yup, didn't work. Thank you for helping though.
Now that you have a clean stock fastboot rom flashed, flash twrp, wipe data(use that where you have to type YES), then flash your mix ROM. Don't wile system lol
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
No need to wipe internal storage, it gets wiped when you format data. Don't wipe system.
After formatting data go to the mount menu and unmount data, then mount it again. You should then be able to access the data partition OK, without needing to reboot into TWRP. From here you can move the ROM your want to install onto the phone and then flash it.
Also, after reinstalling the fastboot ROM, make sure you've booted into MIUI at least once before installing TWRP.
Click to expand...
Click to collapse
Hey Robo.5000, we meet again.
A summary of what I have done so far: Installed Fastboot 10.3.3.0, booted into the ROM, then finished setting up the account. Tried to Flash TWRP (Mauro's & Abhishek's) builds, then a Mod on the Telegram group of Miui Mix suggested me to: Format Data, then do the Dalvik Cache, System, Cache, etc, then tried installing the ROM (MiuiMiX_2.2.0_raphael_9.11.7_v11-10_20191107.zip).While installing it tells me that my Phone is Raphaelin and not Raphael. I do not know what to do.
same here always end with fastboot screen when i try to flash a custom rom or root my device via magisk 20.1
device k20 pro 8gb/256 came with mi 9 t pro rom
really appreciated if any one can post step by step to flash cusom rom or root the device
pocophone f1 was my prev device it was easierto flash custom or root
i dont know what i miss
Do not wipe system.

Unable to install custom roms

Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
dev-DaT said:
thanks, i always thought that a wipe was sufficient, or at least equal to a format... anyways will report back later when i have time to try it. lets hope it works because i can't handle this chinese rom
Click to expand...
Click to collapse
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Robbo.5000 said:
The format is needed to temporarily remove encryption
I've just remembered that I missed an important step. Call it step 1.5
If you going to flash immediately after flashing official MIUI you must boot into MIUI once before doing anything else. You don't need to go through the set-up, you can boot immediately into fastboot after you get to the initial set-up page. The first boot finalises the install and is needed before you flash over the top of it. That may be the cause of your issue if you had missed this before.
Click to expand...
Click to collapse
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... now iam stuck again on fastboot screen because i wiped + formatted everything.
Edit:
When i want to flash recovery it says "OKAY" but it is unable to boot:
Sending 'recovery' (65536 KB) OKAY [ 1.562s]
Writing 'recovery' OKAY [ 0.333s]
Finished. Total time: 1.989s
Sending 'boot.img' (65536 KB) OKAY [ 1.547s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
dev-DaT said:
Ok so i flashed TWRP again, rebooted to stock rom and then rebooted into recovery, but the stock recovery is still there.
When i flash TWRP and reboot into recovery immediately i can enter TWRP, but if i reboot the phone to MIUI and then reboot again, TWRP is gone again...
It seems like TWRP does not persist... If i wipe all data trough TWRP and then reboot, i don't have OS but i do reboot back into TWRP, because well, there is nothing else...
Click to expand...
Click to collapse
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Robbo.5000 said:
This is normal, MIUI will restore stock recovery of the recovery partition changes. In order to persist TWRP you need to either install Magisk, disable dm-verity or install a custom ROM.
If you are going to flash a custom ROM, then you should do so immediately after flashing TWRP.
After formatting data, TWRP has an issue seeing the data partition, so go to the reboot menu in TWRP and select to reboot to recovery.
Then you can immediately install the ROM of choice. You cannot boot back into system as you'll lose TWRP.
Click to expand...
Click to collapse
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
dev-DaT said:
Ok, it appears that everytime i wipe system, i am not able to boot anymore into TWRP... Am i supposed to wipe System? or only wipe data & format data
Click to expand...
Click to collapse
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Robbo.5000 said:
There is no need to wipe system. You only need to wipe cache and dalvik and format data. (I choose to factory reset because it's easier in TWRP, but you could do advanced wipe and select cache and dalvik, then format data. Follow the steps exactly, but include my later step 1.5
I've just followed this myself today, as I've moved from LOS to the latest unofficial Havoc build.
In theory you could start by booting to fastboot and flashing TWRP again, then follow the steps from that point. You probably don't need to install MIUI.
Click to expand...
Click to collapse
Ok thanks a lot! So no need to wipe system partition after stock rom install. just wipe cache/dalvik/data, got it.
Most ROM install guides tell you to wipe /system when coming from stock rom. I guess this requirement has changed? or depends on what ROM you're coming from?
Use can use my guide
https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
it has how to flash roms, and fastboot fix. (which tells why the Recovery isn't staying)
Robbo.5000 said:
This works for me every time.
1 Flash the latest fastboot ROM.
2 Flash TWRP (same one you used)
3 Boot into TWRP (use the vol+ button when booting)
4 In format menu swipe to factory reset, then format data (VERY IMPORTANT this must be FORMAT not just wipe)
5 In reboot menu boot into recovery, this ensures TWRP correctly accesses the newly formatted data partition.
6 Copy over the ROM (and GApps, if needed and/or Magisk)
7 Flash the ROM, (then GApps if needed)
8 Boot into system and do the initial setup
9 If installing Magisk, boot back to TWRP and install Magisk.
There is no need to wipe anything else. There is no need to wipe anything again after installing. There is no need to disable encryption or dm-verity.
Click to expand...
Click to collapse
I need help... The reason why I'm flashing custom rom is, when the latest update came MIUI 12.5 android 11, all sensors of my phone stopped working like (Gyroscope, accelerometer, proximity sensor) I tied to flash the rom by fastboot method but still the problem persists. because of that I unlocked bootloader and flashed twrp. After flashing custom rom when I tried to boot it, it stuck on booting screen and when I tried to reboot into recovey it is showing fastboot mode. I'm unable to boot into custom rom.
dev-DaT said:
Hi all,
I was on xiaomi.eu MIUI 11 ROM for some time, but wanted to switch to either Evolution or Syberia ROM.
I did a complete wipe and installed evolution os trough twrp... but i forgot to remove encryption so i bricked my device...
So then, I flashed the latest stock rom (11.05)with Xiaomi flash tool, but then i was stuck with the chinese ROM so...
1. I went back to bootloader and flashed mauronofrio's TWRP recovery .
2. completely wiped phone; Cache,System,Data,Internal storage
3. copied Evolution OS 4.1 to my phone
4. installed zip trough TWRP, all successfull
5. but then when rebooting, TWRP says:"No OS installed, do you wish to continue"
6. i tried other ROMs like xiaomi.eu and syberia, but these would either give me the same problem, or just bootloop until iam back in the fastboot screen...
Anyone any idea what iam doing wrong?
Click to expand...
Click to collapse
Bro I have one doubt, I installed pixel os successfully then I roll back into stock os(miui) with locking bootloader, the. Again I unlock bootloader successfully, but the problem is I am unable to install os, i tried wipe data, catch. But the stock rom was not removed. What can I do?
Using orange fox in resmi note 10 pro

Fastboot after wiping everything in Twrp.

Hello, when i install new rom i format data, wipe everything in twrp then i install rom(im mainly using ones with oss vendor) and dfe and phone just goes fastboot logo. When i uncheck system partition everything is fine. Is there someone that knows how to wipe system partition without going fastboot.
MickyZa said:
Hello, when i install new rom i format data, wipe everything in twrp then i install rom(im mainly using ones with oss vendor) and dfe and phone just goes fastboot logo. When i uncheck system partition everything is fine. Is there someone that knows how to wipe system partition without going fastboot.
Click to expand...
Click to collapse
Don't wipe system, it's not needed. Doing the factory reset in TWRP wipes everything that's need to be wiped for a clean flash.

Stuck at MI Logo...

Hello all,
so i have an strange issue here. after installing magisk canary yesterday evening, i ended up in a bootloop.
so i stayed pretty cool and went to twrp, used magisk uninstaller and thought hmm okay ****, still not booting, not even shows the boot animation now.
stuck at the MI logo, flicks one time, and then stuck again.
so trying to reflash magisk then with 20.4, but nothing changed.
i ended up doing a full wipe, downloading the latest v12 vendor global and reflashed the rom.
booted up all fine. set it all up again, did a random restart, without doing stuff.
boot animation....10 minutes..
restarted stuck at mi logo again.
not even the system is trying to get up.
now i can wipe verything, vendor, data, system, dalvik, whatsoever, i wiped everything, flashed vendor again, installed rom.
nothing... stuck at the MI logo.
any ideas?
many thanks
If you're flashing recovery ROM i suggest you use fastboot ROM
Sent from my Redmi K20 Pro using Tapatalk
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
supelele said:
now i can wipe verything, vendor, data, system, dalvik, whatsoever, i wiped everything, flashed vendor again, installed rom, FORMAT DATA, reboot to system.
Click to expand...
Click to collapse
try format data after flashing the rom.
jcdr12 said:
try format data after flashing the rom.
Click to expand...
Click to collapse
does not change anything , still the same issue.
seems that i cannot use any custom rom anymore. always stuck at the Mi logo.
i need to reset the whole phone via MiFlashTool once i installed a custom rom which ends up not booting.
rip custom rom...
supelele said:
does not change anything , still the same issue.
seems that i cannot use any custom rom anymore. always stuck at the Mi logo.
i need to reset the whole phone via MiFlashTool once i installed a custom rom which ends up not booting.
rip custom rom...
Click to expand...
Click to collapse
From stock MIUI.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash custom ROM
Flash GApps if needed/wanted
Boot into the ROM
Everything should be good
Flash Magisk if required
Do not wipe any other partitions in TWRP, the factory reset is enough.
Make sure you format data in TWRP - don't miss this step out.
If you're doing this immediately after flashing MIUI, you must boot into MIUI once to finalise the installation.
Yes format data not wipe.
when i flash custom rom, even i am not on miui i first format data with yes in twrp then reboot to twrp. I put rom and gapps to internal memory, and install rom and gapps. and when finish reboot to system, when phone restart it stack at mi logo, so i have to go back to twrp and do again format data with typing yes, and then reboot to system and it works. so no wipe data, format data with typing yes.
oh and i thought, wipe is the same as format.... :/
works like charm. booted up successfully evo x with vendor 12 global.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash Vendor
Flash custom ROM
Boot into the ROM
Everything should be good
Flash Magisk if required
thanks all !
supelele said:
oh and i thought, wipe is the same as format.... :/
works like charm. booted up successfully evo x with vendor 12 global.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash Vendor
Flash custom ROM
Boot into the ROM
Everything should be good
Flash Magisk if required
thanks all !
Click to expand...
Click to collapse
If you want to change to a different ROM, or if you want to update Evo x, then the safest way is to remove lockscreen security before flashing. This will remove encryption, which will allow you to clean flash a new ROM, or dirty flash an update, without any issues caused by encryption.
Once your done, add the lockscreen security back.
supelele said:
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
Click to expand...
Click to collapse
whats your version of mi flash tool
supelele said:
i reflashed now via xiami flash tool and stock rom and it boots up.
but as soon as i flash twrp and a custom rom, with wipe before, everything is stuck again on the mi logo.
what the...?
Click to expand...
Click to collapse
I'm getting the same problem, is there any fix?

Categories

Resources