Bootloop - Redmi 9 / Poco M2 Questions & Answers

My device is flashed with Havoc GSI, but after a mistake it is bootloop again and again.
How can i fixed it ?

Flash vbmeta here https://forum.xda-developers.com/redmi-9/how-to/guide-havoc-os-v3-8-20200821-official-t4165045
or
flash stock rom.

mhark.moby said:
Flash vbmeta here https://forum.xda-developers.com/redmi-9/how-to/guide-havoc-os-v3-8-20200821-official-t4165045
or
flash stock rom.
Click to expand...
Click to collapse
Thanks, i flashed all (system and vbmeta), i lost my data. Is it possible to recover my data ?
Is there an application that can that ?

Help, i done several things now my redmi9 always boot into te Main Menu Redmi-Recovery 3.0

Before you install roms be sure that you backup all your data so that you can recover your files.
i dont want to make it complicated if i am having a problem if i am doing like what youve done to your device.
GSI:
1. if you install any gsi rom to your device. backup always recommended. why? because you need to clear all the data and cache while installing these roms.
2. do not forget to flash vbmeta when installing gsi roms. you will face bootloop if you forgot.
ADB or uninstalling application in miui
1. do not remove security center, find my device or any related to power.
2. in china miui 12 do not remove getapps, mihome, security and find my device.
i will suggest to use mi flash tool and install stock rom to fix all your problem.
note:
when you are flashing gsi you need to go fastbootd.
when you are flashing stock rom using miflashtool just go in fastboot then do not forget to mark the clean all before flashing.
hope it will help you.

mhark.moby said:
Before you install roms be sure that you backup all your data so that you can recover your files.
i dont want to make it complicated if i am having a problem if i am doing like what youve done to your device.
GSI:
1. if you install any gsi rom to your device. backup always recommended. why? because you need to clear all the data and cache while installing these roms.
2. do not forget to flash vbmeta when installing gsi roms. you will face bootloop if you forgot.
ADB or uninstalling application in miui
1. do not remove security center, find my device or any related to power.
2. in china miui 12 do not remove getapps, mihome, security and find my device.
i will suggest to use mi flash tool and install stock rom to fix all your problem.
note:
when you are flashing gsi you need to go fastbootd.
when you are flashing stock rom using miflashtool just go in fastboot then do not forget to mark the clean all before flashing.
hope it will help you.
Click to expand...
Click to collapse
When i want ti do an update, how i do ? I will automaticaly lose my data when i flash GSI for doing update?

do backup and update it to your rom.

Related

Please help to install ROM in [Raphaelin]

Please help me. I can't seem to understand what exactly I need to do in order to install a custom ROM on my K20 Pro (Global 10.3.5.0.) I have tried following this (https://forum.xda-developers.com/k20...0-pro-t3953844) post thoroughly and others as well, but can't seem to exactly understand what I am required to do. Most custom ROM's state [Raphael], but as I purchased this device in India, it would most probably be [Raphaelin], after unlocking the Bootloader and installing TWRP, am I supposed to flash a Custom ROM (for ex. Lineage OS) directly or would I have to install a ROM which would make my device [Raphael]? Vendor and Firmware have gone over my head, I do not understand what I need to di. If someone could help me out, It would be mean a lot. Thank you.
Platinum_Pyth0n said:
Please help me. I can't seem to understand what exactly I need to do in order to install a custom ROM on my K20 Pro (Global 10.3.5.0.) I have tried following this (https://forum.xda-developers.com/k20...0-pro-t3953844) post thoroughly and others as well, but can't seem to exactly understand what I am required to do. Most custom ROM's state [Raphael], but as I purchased this device in India, it would most probably be [Raphaelin], after unlocking the Bootloader and installing TWRP, am I supposed to flash a Custom ROM (for ex. Lineage OS) directly or would I have to install a ROM which would make my device [Raphael]? Vendor and Firmware have gone over my head, I do not understand what I need to di. If someone could help me out, It would be mean a lot. Thank you.
Click to expand...
Click to collapse
If you're running stock MIUI and haven't moved to any custom MIUI's till date then you can straight away flash LOS. Moreover, most of the custom roms work on multiple vendors irrespective of whether it is a China Vendor or India or Global. It doesn't matter till the time the developer specifically asks you to be on a particular vendor.
Vendor isn't a dreaded thing. It's just the drivers needed to run the various components in the device (BT, WiFi etc). Till the time you don't wipe the vendor partion in twrp, you would always be good to go. You could carry on flashing custom roms w/o careing about the vendor.
Sent from my Redmi K20 Pro using Tapatalk
Sukhi said:
If you're running stock MIUI and haven't moved to any custom MIUI's till date then you can straight away flash LOS. Moreover, most of the custom roms work on multiple vendors irrespective of whether it is a China Vendor or India or Global. It doesn't matter till the time the developer specifically asks you to be on a particular vendor.
Vendor isn't a dreaded thing. It's just the drivers needed to run the various components in the device (BT, WiFi etc). Till the time you don't wipe the vendor partion in twrp, you would always be good to go. You could carry on flashing custom roms w/o careing about the vendor.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Thank you very much for your reply. So, just to check if I have understood correctly. I can just install TWRP and then flash Lineage OS straight away, right? I checked (https://forum.xda-developers.com/k20-pro/development/rom-lineageos-16-0-t3965311), and it mentioned:
Instructions :
Download the latest build and GApps
Reboot to recovery
Flash proper vendor and firmware
Flash the latest build and GApps
Reboot
What is "proper vendor and firmware"? And would I also be required to flash this?
Thank you.
Platinum_Pyth0n said:
Thank you very much for your reply. So, just to check if I have understood correctly. I can just install TWRP and then flash Lineage OS straight away, right? I checked (https://forum.xda-developers.com/k20-pro/development/rom-lineageos-16-0-t3965311), and it mentioned:
Instructions :
Download the latest build and GApps
Reboot to recovery
Flash proper vendor and firmware
Flash the latest build and GApps
Reboot
What is "proper vendor and firmware"? And would I also be required to flash this?
Thank you.
Click to expand...
Click to collapse
Go back to the Lineage instructions and read immediately below that. It starts P.S.
It explains exactly proper vendor and firmware means.
No you won't need to install anything for this step
Platinum_Pyth0n said:
Thank you very much for your reply. So, just to check if I have understood correctly. I can just install TWRP and then flash Lineage OS straight away, right? I checked (https://forum.xda-developers.com/k20-pro/development/rom-lineageos-16-0-t3965311), and it mentioned:
Instructions :
Download the latest build and GApps
Reboot to recovery
Flash proper vendor and firmware
Flash the latest build and GApps
Reboot
What is "proper vendor and firmware"? And would I also be required to flash this?
Thank you.
Click to expand...
Click to collapse
Nope ! You don't need to flash vendor + firmware as you already running an untouched stock MIUI build. That is for people who are coming from either modified MIUI builds (EU, Miroom etc) or custom roms with a different vendor (India device running on China Vendor)
Custom roms don't carry the Vendor Firmware files and you can only modify the existing Vendor when you move to other region stock or custom MIUI roms.
Back up your data on Internal storage to a safe place either on a PC or OTG. Skip this step if you have nothing important.
Boot In TWRP
Wipe System, Data , Cache , Dalvik
(Don't reboot at this point, Not Even a Recovery reboot)
Flash LOS
Flash GApps
Go to Advanced Wipe and Format Data by typing Yes
Reboot
Sent from my Redmi K20 Pro using Tapatalk
Sukhi said:
Nope ! You don't need to flash vendor + firmware as you already running an untouched stock MIUI build. That is for people who are coming from either modified MIUI builds (EU, Miroom etc) or custom roms with a different vendor (India device running on China Vendor)
Custom roms don't carry the Vendor Firmware files and you can only modify the existing Vendor when you move to other region stock or custom MIUI roms.
Back up your data on Internal storage to a safe place either on a PC or OTG. Skip this step if you have nothing important.
Boot In TWRP
Wipe System, Data , Cache , Dalvik
(Don't reboot at this point, Not Even a Recovery reboot)
Flash LOS
Flash GApps
Go to Advanced Wipe and Format Data by typing Yes
Reboot
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
I'm trying to install a custom rom in K20 pro raphaelin. But it is getting stucked at recovery. Then I have to install stock ROM using MIFlash. Any help on this issue?
Custom ROM is successfully flashed in TWRP.
MyNameIsAbey said:
I'm trying to install a custom rom in K20 pro raphaelin. But it is getting stucked at recovery. Then I have to install stock ROM using MIFlash. Any help on this issue?
Custom ROM is successfully flashed in TWRP.
Click to expand...
Click to collapse
Did you do FORMAT Data (not just Wipe) when you installed your custom ROM, and before rebooting?

Bring light into the darkness of encryption

Hi togehter,
I had some problems with flashing new custom roms and ended up in a bootloop with not being able to boot to recovery. This could be solved by flashing the stock image with the xiaomi flash tool.
Before I will fu up again I would like to bring some light into the darkness.
When coming from Stock Rom:
1. Unlock Bootloader -> done successfully
2. Flashed TWRP Recovery -> done successfully but storage (data) was encrypted
3. Flashed Magisk via Recovery -> done successfully (storage still encrypted)
from here I was happy using the Stock Rom with Root.
Now I started messing things up:
Because there are a few things that bother me about the stock rom i wanted to use lineageOS/Pixel Experience. So I proceeded as following:
1. Backup my data (still have to enter key when starting twrp to decrypt the storage) -> done successfully
2. Flash LineageOS -> resulted in bootloop to TWRP
When entering twrp there was no query about the key and data where encrypted. Also the Backup was not accessible .
3. I used all in one tool to erase storage and decrypt data. -> successfully... Now i was able to place data on the internal storage again and start flashing a rom
4. Flashing LineageOS -> done successfully and able to boot into rom
Back to TWRP data was encrypted and I had to enter key.
5. Flashing remove force encryption script via twrp. -> done but now i was facing boot to black screen. TWRP was not working anymore.
Only way to get it work again, was flashing stock image.
Why is the data system always encrypted. This is rly annoying and backups don't work, because i can not encrypt them. Also, I can not put any files on the memory because it is encrypted.
I would rly like to try a custom rom, but I would also like to be able to go back to a backup. What have i done wrong?
You have to flash no dm verify right after formatting data & flashing rom. Don't let it boot.
I would recommend using the stock firmware. Los/AOSP is rubbish for our device, it's too unstable, lacking features and has worse gestures.
SeppGoPro said:
Hi togehter,
.... What have i done wrong?
Click to expand...
Click to collapse
You need to format data (not just wipe data) in TWRP. Some people suggest before flashing a ROM and some say after, but I don't think it makes a great deal of difference either way.
Make sure you either flash the appropriate firmware and vendor recommended, or the fastboot ROM of that version.
Then in TWRP wipe cache and dalvik, then format data.
Reboot into TWRP, or unmount and mount the data partition in TWRP so it correctly reads the data partition.
Copy across the ROM (and GApps if needed)
Them flash.
Boot into the ROM and you should be good.
After initial setup, if you want root, boot into TWRP and flash Magisk.
From here, if you've set a pin on the ROM, you'll be encrypted, but everything should still work normally. You should be able to access everything normally in TWRP and also perform backups. You should be able to got data across from/to a PC normally.
Turbine1991 said:
You have to flash no dm verify right after formatting data & flashing rom. Don't let it boot.
I would recommend using the stock firmware. Los/AOSP is rubbish for our device, it's too unstable, lacking features and has worse gestures.
Click to expand...
Click to collapse
Not true in many ways.
There is need to flash no dm verity. It's one way of solving the issue, but it's not the only way. You should only do this if you know what it's for and if you know you want this.
AOSP ROMs are not unstable. I've been using them on mine for over 4 months. None are perfect and they have a few minor issues/bugs, but they are far from being considered unstable. I've never had shutdowns, reboots or FC'S.
Thanks for the replies.
Robbo.5000 said:
Make sure you either flash the appropriate firmware and vendor recommended, or the fastboot ROM of that version.
Click to expand...
Click to collapse
So for example with LineageOS 17 I can use the global vendor and firmware, but sometimes in the thread it is recommended to use chinese vendor and firmware. In this case I should flash another vendor and firmware then the global one.
What do you mean with a fastboot rom. How can I identify one of them?
Is the MiuiMix Rom a fastboot rom. This one changed my vendor and firmware. After flashing this rom, my bootlogo changed to redmi... Am i right with this suggestion?
SeppGoPro said:
Thanks for the replies.
So for example with LineageOS 17 I can use the global vendor and firmware, but sometimes in the thread it is recommended to use chinese vendor and firmware. In this case I should flash another vendor and firmware then the global one.
What do you mean with a fastboot rom. How can I identify one of them?
Is the MiuiMix Rom a fastboot rom. This one changed my vendor and firmware. After flashing this rom, my bootlogo changed to redmi... Am i right with this suggestion?
Click to expand...
Click to collapse
Fastboot ROMs are official ROMs that are flashed through the Mi Flash Tool
, with the phone booted into fastboot mode and connected to the PC. They contains almost all partitions, including vendor and all firmware. They will be a .tgz file. They are mainly used as an almost failsafe way to recover the phone, should you mess things up. Flashing them will restore the phone to factory, so will lose TWRP, but you're guaranteed a clean starting point.
If, for example, you want to install Havoc 3, it is recommended to flash it on top of either China or India 10.4 vendor and firmware. So if you're phone is currently on global firmware, you would then need to flash, say, Chinese firmware and vendor flies, before flashing Havoc.
If you have been previously flashing other mods, such as 75Hz, screen refresh rate, for example, then you might choose to flash the official Chinese fastboot ROM, instead of just the firmware and vendor, to ensure that you've cleaned the phone of any mods, etc. In most cases you will be fine flashing firmware and vendor, though.
Miuimix is a custom ROM, which is based on the official China MIUI ROM. Because it's based on the China ROM this is why the logo changed to Redmi.
Robbo.5000 said:
Miuimix is a custom ROM, which is based on the official China MIUI ROM. Because it's based on the China ROM this is why the logo changed to Redmi.
Click to expand...
Click to collapse
So in this case, i can just flash this rom and there is no need of flashing a diffrent vendor or firmware.
So final question: I'm happy with the stock rom plus root. I would like to try a custom rom but I'm not willing to go through the whole installtion procedure again. Is there a way of making a backup and keeping it?
When I backup the stock rom right now, the backup will ne encrypted again...When I formate the data, all my data will be gone again ?

custom rom flash problem

Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks
Click to expand...
Click to collapse
Format the data partition in TWRP. You need to do this when installing over MIUI.
Robbo.5000 said:
Format the data partition in TWRP. You need to do this when installing over MIUI.
Click to expand...
Click to collapse
thanks
but after Format the data partition and Wipe cache and dakvik and mount and unmount the data partition and reboot and flash rom
and reboot to system my phone gets rebooted to recovery again
Masoud.Ser said:
thanks
but after Format the data partition and Wipe cache and dakvik and mount and unmount the data partition and reboot and flash rom
and reboot to system my phone gets rebooted to recovery again
Click to expand...
Click to collapse
Are you booting into MIUI at least once after flashing it, before flashing anything else?
I've stopped doing the mount/unmount. I now always reboot back into TWRP after formatting data, seems more reliable.
In TWRP do a factory reset, then format data, then reboot back into TWRP.
After this install the ROM you want
Robbo.5000 said:
Are you booting into MIUI at least once after flashing it, before flashing anything else?
I've stopped doing the mount/unmount. I now always reboot back into TWRP after formatting data, seems more reliable.
In TWRP do a factory reset, then format data, then reboot back into TWRP.
After this install the ROM you want
Click to expand...
Click to collapse
yes booting into MIUI at least once after flashing it
after wipe and flash rom and reboot
phone into twrp again and also internal storage format auto and am cant use storage and must again flash miui rom with miflash for problem storage
Masoud.Ser said:
yes booting into MIUI at least once after flashing it
after wipe and flash rom and reboot
phone into twrp again and also internal storage format auto and am cant use storage and must again flash miui rom with miflash for problem storage
Click to expand...
Click to collapse
Can you provide all the steps you are doing. I can't see any reason why it's not working.
Robbo.5000 said:
Can you provide all the steps you are doing. I can't see any reason why it's not working.
Click to expand...
Click to collapse
1.flash miui 11.0.3 with miflash and boot...no set setup...
2. flash twrp 3 with fastboot and reboot to twrp
3.wipe cache and dakvik
4. wipe data
5.reboot to twrp
6.flash custom rom without error
but after reboot phone again into twrp and no load rom also cant use storage and write and copy file on storage ...
i have tried Pixel experience - Havoc -Evolution X....
Masoud.Ser said:
1.flash miui 11.0.3 with miflash and boot...no set setup...
2. flash twrp 3 with fastboot and reboot to twrp
3.wipe cache and dakvik
4. wipe data
5.reboot to twrp
6.flash custom rom without error
but after reboot phone again into twrp and no load rom also cant use storage and write and copy file on storage ...
i have tried Pixel experience - Havoc -Evolution X....
Click to expand...
Click to collapse
Step 4 needs to be format data, not wipe data, you have to type 'yes' to confirm when you do it.
Robbo.5000 said:
Step 4 needs to be format data, not wipe data, you have to type 'yes' to confirm when you do it.
Click to expand...
Click to collapse
thanks
work good.
I'm new entered the Xiaomi phone discussion
a few short questions
....................
1-Is it necessary to format data for flash in each time?
2-even need to flash miui with miflah and boot before flash custom rom in each time?
and do need to flash vendor global my phone before flash custom roms?
Masoud.Ser said:
thanks
work good.
I'm new entered the Xiaomi phone discussion
a few short questions
....................
1-Is it necessary to format data for flash in each time?
2-even need to flash miui with miflah and boot before flash custom rom in each time?
and do need to flash vendor global my phone before flash custom roms?
Click to expand...
Click to collapse
1 No
2 No
If you want to flash something else, remove lockscreen security first before flashing. This should allow you to dirty flash an update, or clean flash a new ROM, without problems. You only need to format data when flashing over MIUI.
If you get into problems and you cannot successfully get a custom ROM working, this is when you need to flash MIUI first.
You only need to flash vendor/firmware files when the custom ROM recommends/requires a version that is different to what you currently have.
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks[/QUOTE
Which model is yours indian version or Chinese ?
Click to expand...
Click to collapse
vicky#kick said:
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks[/QUOTE
Which model is yours indian version or Chinese ?
Click to expand...
Click to collapse
global
Click to expand...
Click to collapse
I am on k20 pro and trying to flash mortal os rc 14 but after flashing it properly it always stucks in bootloop...
1. Clean all the data partitions except internal storage
2. Flashing latest vendor for MIUI
3. Flashing mortal os rc 14 zip file
4. Flashing DFE
5. Rebooting and get stucks in bootloop
Help me what can i do..
aniketkumarak said:
I am on k20 pro and trying to flash mortal os rc 14 but after flashing it properly it always stucks in bootloop...
1. Clean all the data partitions except internal storage
2. Flashing latest vendor for MIUI
3. Flashing mortal os rc 14 zip file
4. Flashing DFE
5. Rebooting and get stucks in bootloop
Help me what can i do..
Click to expand...
Click to collapse
The emoji's screwed up my reply. Try again.
1. Next time create a new post, don't resurrect a vaguely similar old post.
2. Restore MIUI with a fastboot ROM and try again. Use my guide here to help you install the ROM of choice.
https://forum.xda-developers.com/k20-pro/how-to/simple-guide-flipkart-owners-t4151007/post83329343
If you're not sure what you're doing, follow the guide exactly, do not freestyle.
1.Install any rom
2. In recovery factory reset or change data partition to ext2 and then again back to ext4
Reboot
It will boot.
[email protected] said:
2. ...change data partition to ext2 and then again back to ext4...
Click to expand...
Click to collapse
WT........
Seriously?
Hi, I am new to K20 Pro, I have not unlocked my phone yet, I was just going through the forum, to understand all the things and how flashing is done in K20 Pro, I have a question about flashing the vendor, some ROM require it & some don’t, can anyone explain? And how do I choose the correct vendor for my device?? Where can I download the right vendor??
Thanks!
stanlin salu said:
Hi, I am new to K20 Pro, I have not unlocked my phone yet, I was just going through the forum, to understand all the things and how flashing is done in K20 Pro, I have a question about flashing the vendor, some ROM require it & some don’t, can anyone explain? And how do I choose the correct vendor for my device?? Where can I download the right vendor??
Thanks!
Click to expand...
Click to collapse
When flashing you will actually need vendor and firmware files together.
These are taken from the official MIUI fastboot ROMs. You can find them repackaged in a single flashable zip file from here.
https://downloads.akhilnarang.dev/MIUI/raphael/
Flashing one of these files in TWRP is the easiest way to go.
You can also find then repackaged as separate zip files from here
https://xiaomifirmwareupdater.com/
This site has a much greater archive, so is good if you need an older version that you can't find in the other site. You will need to make sure you download vendor and firmware files for the same version.
You should always stick to the version that is for the region of your phone. e.g. Indian vendor and firmware for an Indian K20 Pro, etc.
Some ROMs use an OSS vendor and so this is included as part of the ROM install. In which case there is no need to flash the MIUI vendor.
When a new version of MIUI is released, vendor and firmware files might get updated, to fix a bug or to add extra functionality. In this case some custom ROM devs will include them so that they get the bug fixes or extra functionality in their ROM too. When this happens they will update the minimum vendor and firmware version requirements for their custom ROM - the version will be the actual MIUI version in which the vendor and firmware files were updated.
Where a ROM doesn't specify vendor and firmware and doesn't have an OSS vendor, then it normally implies that any version will work that is from MIUI based on the same Android version. In this case use the most recent version, which you will already have if you've kept up to date with MIUI updates.
When installing a new ROM, you will only need to flash vendor and firmware files if your current version is less than the required version of the new ROM.
Robbo.5000 said:
When flashing you will actually need vendor and firmware files together.
These are taken from the official MIUI fastboot ROMs. You can find them repackaged in a single flashable zip file from here.
https://downloads.akhilnarang.dev/MIUI/raphael/
Flashing one of these files in TWRP is the easiest way to go.
You can also find then repackaged as separate zip files from here
https://xiaomifirmwareupdater.com/
This site has a much greater archive, so is good if you need an older version that you can't find in the other site. You will need to make sure you download vendor and firmware files for the same version.
You should always stick to the version that is for the region of your phone. e.g. Indian vendor and firmware for an Indian K20 Pro, etc.
Some ROMs use an OSS vendor and so this is included as part of the ROM install. In which case there is no need to flash the MIUI vendor.
When a new version of MIUI is released, vendor and firmware files might get updated, to fix a bug or to add extra functionality. In this case some custom ROM devs will include them so that they get the bug fixes or extra functionality in their ROM too. When this happens they will update the minimum vendor and firmware version requirements for their custom ROM - the version will be the actual MIUI version in which the vendor and firmware files were updated.
Where a ROM doesn't specify vendor and firmware and doesn't have an OSS vendor, then it normally implies that any version will work that is from MIUI based on the same Android version. In this case use the most recent version, which you will already have if you've kept up to date with MIUI updates.
When installing a new ROM, you will only need to flash vendor and firmware files if your current version is less than the required version of the new ROM.
Click to expand...
Click to collapse
Thanks a lot brother, for this detailed explanation.. [emoji56][emoji1]

Can't boot into new rom

I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
sternje said:
I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
Click to expand...
Click to collapse
Restore MIUI by flashing a MIUI fastboot ROM.
Get the fastboot ROM from here
https://xiaomifirmwareupdater.com/miui/raphael/
Choose the fastboot ROM for the phone you have (European or Global). Make sure it is a fastboot ROM, not a recovery ROM.
Use this guide to flash it
https://c.mi.com/oc/miuidownload/detail?guide=2
View the page in desktop mode if viewing on a phone.
In step 5 make sure you change flash option to 'clean all' before hitting flash. This is three radio button options at the bottom of the flash tool. The default locks the bootloader, so you need to change it to keep the bootloader unlocked.
After doing this boot into MIUI at least once before trying to install something again.
When flashing a custom ROM over MIUI you need to format data in TWRP.
After installing TWRP, boot into it a do the following.
Perform a factory reset.
Format data - make sure you format, not wipe, need to type 'yes' to confirm.
Reboot back into TWRP - this makes sure the data partition is properly mounted after formatting.
Now flash the ROM you want and GApps if needed.
Reboot to system and it should be good.
Flash Magisk if needed.
Do not wipe anything else in TWRP. It's not needed.
sternje said:
I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
Click to expand...
Click to collapse
First Learn Basics while messing with your device.
Kernel is a part of ROM's Zip,
So even if you wiped kernel(so called boot), it will again gets re flashed with new ROM.
Second your problem is,
You are booting into wrong partition.
I am not sure , what you did.
But Mi9TPro has two partitions, Google's new A/B partition table for Android.
And you may have wiped both Flashed A(example) and booting into B.
Therefore it is not booting properly.
Ask in Telegram group for faster solution.
Or wait here for better solution in reply.
OR
Simply flash Fastboot,
And then try everything again.
Ans from next time, read everything step carefully and then proceed.
Sent from my Redmi K20 Pro using Tapatalk
itspdp said:
First Learn Basics while messing with your device.
Kernel is a part of ROM's Zip,
So even if you wiped kernel(so called boot), it will again gets re flashed with new ROM.
Second your problem is,
You are booting into wrong partition.
I am not sure , what you did.
But Mi9TPro has two partitions, Google's new A/B partition table for Android.
And you may have wiped both Flashed A(example) and booting into B.
Therefore it is not booting properly.
Ask in Telegram group for faster solution.
Or wait here for better solution in reply.
OR
Simply flash Fastboot,
And then try everything again.
Ans from next time, read everything step carefully and then proceed.
Click to expand...
Click to collapse
This phone does not have A/B partitions.
Robbo.5000 said:
This phone does not have A/B partitions.
Click to expand...
Click to collapse
It has, but you can't see then normally in twrp.
Ask in telegram group for fast solution.
And please do read about android partition tables feom android oreo.
Sent from my Redmi K20 Pro using Tapatalk
itspdp said:
It has, but you can't see then normally in twrp.
Ask in telegram group for fast solution.
And please do read about android partition tables feom android oreo.
Click to expand...
Click to collapse
It's an A only, system as root device. It is not an A/B device.
This is why MIUI updates need to be installed in system recovery. It does not install updates when the system is live.
if it's booting back into twrp. It's usually one of the three mistakes.
1. wrong vendor
2. didnt flash dfe
3. flashed dfe for stock rom
4. encrypted, so format data partition.
you can follow the guide: https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
also, k20p is A partition only, not dual.
kernel is included with rom.
ask in telegram group for faster replies.
Sandeeep Kiran said:
if it's booting back into twrp. It's usually one of the three mistakes.
1. wrong vendor
2. didnt flash dfe
3. flashed dfe for stock rom
4. encrypted, so format data partition.
you can follow the guide: https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
also, k20p is A partition only, not dual.
ask in telegram group for faster replies.
Click to expand...
Click to collapse
You don't need to flash dfe. I've not yet come across a situation where it is required. Flashing dfe will make life easier, at the cost of greatly reduced security, but there are always options to do what you want without flashing dfe.
Robbo.5000 said:
You don't need to flash dfe. I've not yet come across a situation where it is required. Flashing dfe will make life easier, at the cost of greatly reduced security, but there are always options to do what you want without flashing dfe.
Click to expand...
Click to collapse
It's required for oss based builds now.

GUIDE How to Instal GSI ROM- Havoc-OS-v4.X-Official Android 11 On Redmi 8

Here I bring to you the official Havoc-os 4.X ROM Android 11 and fully functional on Redmi 8
The intention of this post is to make a step-by-step tutorial on the installation of this excellent GSI ROM on Redmi 8 and give assistance in the installation process
All the development credits for this wonderful ROM go to the Havoc team
@Ruturaj Kadam
@jhenrique09
@SKULSHADY
Remember I am not a developer, if you are presenting any bugs let us know and you can contact the Havoc team on Telegram
I am not responsible for any damage caused to your device by not following the steps or negligence at the time of this process, All the steps were carried out and tested on my personal device and are confirmed, My device Redmi 8 3/32, the version that i tested Havoc-OS-v4.5-20210208-Official-arm64-ab.img.xz
Bugs
videos recorded with the default camera do not play
Update: Install the NGCam_7.4.104-v1.8-fix.apk Once the application is installed open it take a photo close the application, this will create a folder in the SD called Gcam, inside the Gcam folder create a folder and call it Config7 and inside this place the XML file Redmi 8 GCam 7.4.104.314953318 G_Modder.xml restart the application and you're done
the only bugs that have is slow motion record not work for now
Automatic brightness does not work
Update: to fix the automatic brightness on your device, after installing the ROM, put in the folder SYSTEM-OVERLAY the treble-overlay-xiaomi-redmi 8.apk and set the permission for the apk on 644 ( use root explorer ) and reboot ..... problem solved
the necessary files are at the end of the tutorial
Steps
Note: I did the installation coming from Mui 12.EU, and there was no problem in the installation process or in the boot process
If you come from Miui12 .EU or any other GSI Rom go to step 4, if you come from the Rom stock follow the this steps
1- First make a backup of all the necessary information in case something goes wrong you can easily recover, Charge the battery at least 80%
All your data will be deleted during the process
2- Unlock the Bootloader if you have not already done it or do not know how to, follow this post: http://en.miui.com/unlock/
3- Install a custon recovery, if you dont know how to, follow this post: https://c.mi.com/thread-2850424-1-0.html
4- Make wipe only to Cache, Dalvik, System, Data and Internal SD
5- Format data,( if it doesn't format the data you will have bootloop) then Reboot into Recovery
6- Copy all the files to the phone (Havoc-OS-v4.X-20200522-Official-arm64-ab.img you can find it by unpacking the zip), Magisk,Magisk Path Fix, Permisiver, Certification Patch.zip, opengapp (recommended nano or pico)
7- Install system image to system partition (on TWRP go to install-Install image-System) .
8- Flash Permisiver v5 (on TWRP go to install selec permisver_v5.zip)
9- Resize system partition to flash opengapps (on TWRP go to Wipe-Advanced Wipe-Select System on the list-Repair or Change File System-Resize)
To Root
once you have installed an resized the system
10- Flash the Magisk path fix (on TWRP go to install selec MagiskA11_PATH_fix.zip)
11- Flash Magisk (on TWRP go to install selec Magisk-v23.0.zip)
12- Flash Opengapps
1-Flash Certification Patch
1 - Make a wipe to Cache and Dalvik
1- Reboot
The boot process takes 5 to 10 minutes the first boot, in case of any problem in any of the stages you can reinstall Miui version fastboot with Mi flash tool and start again
Download link Rom image:
arm64-ab • Havoc-OS
Havoc-OS Downloads
download.havoc-os.com
OpenGapss Android 11: https://sourceforge.net/projects/opengapps/files/arm64/test/20210130/
Magisk:
Download Magisk Manager Latest Version 26.1 For Android 2023
Magisk Manager is an app which helps users to root their phone. With the help of Magisk you can run banking apps and also pass SafetyNet tests.
magiskmanager.com
Hey !
I have a stupid question. Do you upload the GSI ROM and the other files on a SD card or on the internal storage ? I was searching this guide on the morning but I was wondering about that...
Thanks for your answer
letouvetpierre said:
Hey !
I have a stupid question. Do you upload the GSI ROM and the other files on a SD card or on the internal storage ? I was searching this guide on the morning but I was wondering about that...
Thanks for your answer
Click to expand...
Click to collapse
Don't mind it, I haven't read all the article....
letouvetpierre said:
Hey !
I have a stupid question. Do you upload the GSI ROM and the other files on a SD card or on the internal storage ? I was searching this guide on the morning but I was wondering about that...
Thanks for your answer
Click to expand...
Click to collapse
You can place it in either of the two, as long as you can access the storage where you placed them from the recovery
D
letouvetpierre said:
Don't mind it, I haven't read all the article....
Click to expand...
Click to collapse
Dont worry
Darth Inferno said:
You can place it in either of the two, as long as you can access the storage where you placed them from the recovery
Click to expand...
Click to collapse
Okay thanks I think I will try this in the few days. Thanks for your guide !
Hey ! Do we need to flash a vbmeta image for Havocon boot ?
Is there any bugs when you install Havoc with TWRP ? 'cuz i'm a little bit experimented with TWRP but i'm shy with GSI...
Thanks for the answer
UPDATE :
I bricked my phone. When i arrived to the step 5 and i rebooted into fastboot (i would reboot into recovery...)
So, what can I do ? I installed MiFlashTool to unbrick my phone, if it can...
I tried to reboot from fastboot to twrp and this is what happened :
fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 2.141s]
booting...
FAILED (remote: unknown reason)
finished. total time: 2.771s
Thanks...
letouvetpierre said:
UPDATE :
I bricked my phone. When i arrived to the step 5 and i rebooted into fastboot (i would reboot into recovery...)
So, what can I do ? I installed MiFlashTool to unbrick my phone, if it can...
I tried to reboot from fastboot to twrp and this is what happened :
fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 2.141s]
booting...
FAILED (remote: unknown reason)
finished. total time: 2.771s
Thanks...
Click to expand...
Click to collapse
Hi, I need to know some things to help you, what ROM did you have before flashing Havoc? do you have the bootloader unlocked? When did you use My flashtool, what method did you use?
letouvetpierre said:
Hey ! Do we need to flash a vbmeta image for Havocon boot ?
Is there any bugs when you install Havoc with TWRP ? 'cuz i'm a little bit experimented with TWRP but i'm shy with GSI...
Thanks for the answer
Click to expand...
Click to collapse
In my particular case it was not necessary to flash vbmmeta as I comment in the OP I come from Miui12.eu, but it is necessary to avoid problems whatever the ROM you have before installing Havoc is to have the latest version of TWRP and have configured a lock pattern security in ROM access and in the flashing process I didn´t have problems
Hey!
I was on the stock ROM when i started to flash HavocOs.
I unbricked my phone with the MIUnlockTool V2 and my phone's still alive.
I booted on TWRP with fastboot boot TWRP.img 'cuz I can't boot to TWRP with volume up and power...
How can I flash HavocOs in the good way ?
I have Redmi 8 3/32 like you...
letouvetpierre said:
Hey!
I was on the stock ROM when i started to flash HavocOs.
I unbricked my phone with the MIUnlockTool V2 and my phone's still alive.
I booted on TWRP with fastboot boot TWRP.img 'cuz I can't boot to TWRP with volume up and power...
How can I flash HavocOs in the good way ?
I have Redmi 8 3/32 like you...
Click to expand...
Click to collapse
Ok the first thing is that you have the bootloader unlocked, if it is that way regardless of the stock version of the rom you have when installing twrp you must install magisk to ensure that the Recovery remains fixed in this link is a tutorial on how to install it, that tutorial was made by me and approved by Xiaomi https://c.mi.com/thread-2850424-1-0.html ,
install the latest version of TWRP and as it says in the tutorial then flash magisk, once you have everything ready install miui 12.eu do not do many settings except create a blocking pattern when starting the rom this is used by TWRP to be able to decrypt the internal memory
All ready do the steps as indicated in this tutorial (If you come from Miui12 .EU or any other GSI Rom go to step 4)
If for some reason you have a problem, use MI flashtool to return to the stock rom, but make sure to use the snapdragon method, select MIflash and when opening the screen at the bottom select clean all, this will prevent you from blocking the bootloader and you can start again without problems (note when selecting clean all at the end it will give you an error for not being able to block the bootloader and the device will restart, do not worry it will restart normally without problems)
Darth Inferno said:
Ok the first thing is that you have the bootloader unlocked, if it is that way regardless of the stock version of the rom you have when installing twrp you must install magisk to ensure that the Recovery remains fixed in this link is a tutorial on how to install it, that tutorial was made by me and approved by Xiaomi https://c.mi.com/thread-2850424-1-0.html ,
install the latest version of TWRP and as it says in the tutorial then flash magisk, once you have everything ready install miui 12.eu do not do many settings except create a blocking pattern when starting the rom this is used by TWRP to be able to decrypt the internal memory
All ready do the steps as indicated in this tutorial (If you come from Miui12 .EU or any other GSI Rom go to step 4)
If for some reason you have a problem, use MI flashtool to return to the stock rom, but make sure to use the snapdragon method, select MIflash and when opening the screen at the bottom select clean all, this will prevent you from blocking the bootloader and you can start again without problems (note when selecting clean all at the end it will give you an error for not being able to block the bootloader and the device will restart, do not worry it will restart normally without problems)
Click to expand...
Click to collapse
Hey!
I thought about something this afternoon : if I flash HavocOS with adb and fastboot, we also haven't any problems with TWRP installation ! But the problem is that I haven't found any wiki to do that and i won't transform my phone to a beta tester....
Thanks a lot for your help but I think i will wait until a custom rom of LineageOs or HavocOs...
Hi . I am currently running havoc is 3.12 on my device I tried multiple times to flash this ROM without any success. Is not installing open gapps a problem ? Anyways when I flash this rom without flashing the certification patch I get a no os installed warning before rebooting from orange fox recovery but when I flash the certification I no longer get this message. Etherway I am getting stuck on a bootloop . How can I solve this issue? I did all the steps correctly wiping the correct partitions and formating data . Edit I wiped cache and dalvik after the bootloop without any success .
Dragonnuu said:
Hi . I am currently running havoc is 3.12 on my device I tried multiple times to flash this ROM without any success. Is not installing open gapps a problem ? Anyways when I flash this rom without flashing the certification patch I get a no os installed warning before rebooting from orange fox recovery but when I flash the certification I no longer get this message. Etherway I am getting stuck on a bootloop . How can I solve this issue? I did all the steps correctly wiping the correct partitions and formating data . Edit I wiped cache and dalvik after the bootloop without any success .
Click to expand...
Click to collapse
Hey !
I had the same bug before installing the v3.12 version.
I think it goes from the Permissiver v5. I think we should flash it to have the Havoc v4.
I'll test later if I have the time to do this and I'll inform you about the possibilities.
Hope I can help.
letouvetpierre said:
Hey !
I had the same bug before installing the v3.12 version.
I think it goes from the Permissiver v5. I think we should flash it to have the Havoc v4.
I'll test later if I have the time to do this and I'll inform you about the possibilities.
Hope I can hel
Click to expand...
Click to collapse
Thanks for replying and trying to help but last night I managed to get havoc 4.1 is installed by flashing lineage first (using another guide from this category). I will try again to get havoc 4.1 working without flashing lineage as soon as posible because I am curious .
Used online available guides bit still not able to install magisk on Hovoc 4.1
Anyone succeeded?
mwaseem851 said:
Used online available guides bit still not able to install magisk on Hovoc 4.1
Anyone succeeded?
Click to expand...
Click to collapse
Magisk doesn't work on Android 11
letouvetpierre said:
Magisk doesn't work on Android 11
Click to expand...
Click to collapse
Finally managed to flash Magisk on Havoc 4.1 with the help of youtuberking (telegram and YouTube).
How: just flash Magisk path fix before magisk and it's good to go.

Categories

Resources