Boot loop after trying to downgrade EU stable 11.0.2 to EU stable 10.13.17 - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

TL;DR - Tried to downgrade Android 10 Xiaomi EU to Android 9 Xiaomi EU, tried wiping the device (besides storage). I can get into TWRP and Fastboot, just won't boot OS.
Detailed:
I was running the latest Android 10 Xiaomi EU Stable Rom MIUI 11 (11.0.2) and wanted to downgrade because I had a few issues.
I reinstalled the last stable Android 10 Xiaomi EU Stable Rom for MIUI 10 (10.3.17) and it ran fine. I then realized that I wanted to be back on Android 9....
I went and tried to install Android 9 Xiaomi EU Stable Rom for MIUI 10 (10.3.16) and then ran into boot looping.
So then I got into TWRP and erased all data and then tried to copy over the old update file and realized I can't copy over anything even with MTP Enabled.
All the folders in the sdcard are random letters and numbers..
So now I can't send any files over and im stuck wondering how to fix this problem and then go over to Pixel Experience.
Send help! Please!

You messed up with encryptions... Just flash Chinese fastboot rom before pixel experience... and, as always, don't forget: DO NOT lock your bootloader ..

thiagodark said:
You messed up with encryptions... Just flash Chinese fastboot rom before pixel experience... and, as always, don't forget: DO NOT lock your bootloader ..
Click to expand...
Click to collapse
And I would do that by downloading which version of fastboot? Any stable one that I want to run?
Also would it be through fastboot using Mi Flash Tool or something else?
Then the pixel experience would be installed just through TWRP?
Sorry, I just don't wanna mess up.

originalwill23 said:
And I would do that by downloading which version of fastboot? Any stable one that I want to run?
Also would it be through fastboot using Mi Flash Tool or something else?
Then the pixel experience would be installed just through TWRP?
Sorry, I just don't wanna mess up.
Click to expand...
Click to collapse
As you want to flash pixel experience, you need to flash chinese fastboot rom, because pixel experience is based on Chinese firmware. So, by flashing Chinese you will be half way. Pick last stable pie version.. I believe is 10.3.16, don't remember...
Yes. You should use miflash tool, just don't forget: you need to select "clean all" and not "clean all and lock".
Boot into miui system once.
After that just flash twrp through normal fastboot command, as you already did in the past. Then flash PE in twrp...
Remember to boot in twrp just after flash it, if you boot into device it will be replaced by stock one...

thiagodark said:
As you want to flash pixel experience, you need to flash chinese fastboot rom, because pixel experience is based on Chinese firmware. So, by flashing Chinese you will be half way. Pick last stable pie version.. I believe is 10.3.16, don't remember...
Yes. You should use miflash tool, just don't forget: you need to select "clean all" and not "clean all and lock".
Boot into miui system once.
After that just flash twrp through normal fastboot command, as you already did in the past. Then flash PE in twrp...
Remember to boot in twrp just after flash it, if you boot into device it will be replaced by stock one...
Click to expand...
Click to collapse
@originalwill23
After booting into TWRP and before flashing PE, wipe cache and dalvik, then format data. Either reboot into TWRP, or unmount and mount data, then carry on with the PE flashing.

Robbo.5000 said:
@originalwill23
After booting into TWRP and before flashing PE, wipe cache and dalvik, then format data. Either reboot into TWRP, or unmount and mount data, then carry on with the PE flashing.
Click to expand...
Click to collapse
@Robbo.5000
That sounds confusing..
So after flashing the chinese fastboot and starting the phone up once to confirm its working, i boot into twrp and wipe cache+dalvik, then format all data, then restart into twrp and flash pe?
Doing that is just making sure its a clean flash and not a dirty one?

originalwill23 said:
@Robbo.5000
That sounds confusing..
So after flashing the chinese fastboot and starting the phone up once to confirm its working, i boot into twrp and wipe cache+dalvik, then format all data, then restart into twrp and flash pe?
Click to expand...
Click to collapse
You boot into MIUI once to let it finalise the installation.
Then install TWRP and immediately boot into TWRP.
When changing ROMs you should clean flash, which normally means wiping cache, dalvik and data before installing the new ROM.
In this case it's best to format data instead, otherwise you may get problems with encryption, similar to what your seeing now.
After formatting data, TWRP sometimes has a problem seeing the data partition properly, to fix this you either reboot into TWRP or go to the mount menu and unmount data, then mount it again.
After this you copy the PE ROM onto the phone and flash it.

Robbo.5000 said:
You boot into MIUI once to let it finalise the installation.
Then install TWRP and immediately boot into TWRP.
When changing ROMs you should clean flash, which normally means wiping cache, dalvik and data before installing the new ROM.
In this case it's best to format data instead, otherwise you may get problems with encryption, similar to what your seeing now.
After formatting data, TWRP sometimes has a problem seeing the data partition properly, to fix this you either reboot into TWRP or go to the mount menu and unmount data, then mount it again.
After this you copy the PE ROM onto the phone and flash it.
Click to expand...
Click to collapse
I successfully got everything up and running in PE and im loving it. Thanks!!

Related

I keep bricking my 9t pro, what's wrong ?

Hello,
I am trying to install lineage OS on my 9t pro, but it fails every time.
I managed to unrbick my phone thanks to miflash, but now i'm totally stuck
So, i'm on miui Global 11 QFKEUXM, and i can install twrp-3.3.1-22-raphael-mauronofrio.
Then, if I try to flash a rom with it (i also tried RevengeOS), i'm going to be stuck in a bootloop, until it goes to twrp again.
When it appens, i can't access files from my computer anymore, all folders seems to have random names like "uzehfj405Cuh5635azP5IUHDPuZ".
So i have to use miflash to go back to miui. I don't know what's wrong i've spent hours trying, can someone help me ?
Thanks and have a nice day
EDIT :
Indeed i didn't format data in TWRP. I tried to, and i'm still in that boot loop unfortunatly.
But this time, file system seems to be ok because i can access internal storage from my computer
EDIT2 :
I think the problem come from GAPPS. If i format then flash lineage without GAPPS, I can boot it
But if then i try to flash them, it won't boot anymore.
I am using the "nano" package here https://sourceforge.net/projects/opengapps/files/arm64/beta/20191114/
Is this incorrect ?
hi,
have already format data in TWRP?
BuckyBucks said:
Hello,
I am trying to install lineage OS on my 9t pro, but it fails every time.
I managed to unrbick my phone thanks to miflash, but now i'm totally stuck
So, i'm on miui Global 11 QFKEUXM, and i can install twrp-3.3.1-22-raphael-mauronofrio.
Then, if I try to flash a rom with it (i also tried RevengeOS), i'm going to be stuck in a bootloop, until it goes to twrp again.
When it appens, i can't access files from my computer anymore, all folders seems to have random names like "uzehfj405Cuh5635azP5IUHDPuZ".
So i have to use miflash to go back to miui. I don't know what's wrong i've spent hours trying, can someone help me ?
Thanks and have a nice day
Click to expand...
Click to collapse
See bro When we buy the android the the storage is
Encrypted , when you unlock the bootloader and install TWRP it doesn't decrypt the internal storage that's why only the stick rom i.e. Miui can access the storage , here is what you need to do ..
Install TWRP then go to wipe then click on format data and type yes this will decrypt the internal storage and so that any custom rom you install can access the data ..
Make sure that you format data then reboot trwp and then connect the phone to of transfer the files and install the rom and gappa it will boot just fine
Although for some reason when i install the LOS my storage gets decrypt again I say you try the EvoX rom which doesn't require gappa just flash the rom and the firmware
Also there is some force decrypt zip file that lets you decrypt the internal storage because sometime install the firmware may encrypt your storage again so flash that DFE file you will find that in telegram grp ..
Basically you can't boot into rom and see files on computer cause your storage is encrypted and only Miui can decrypt it unless decrypted ...
Hope it help
Every time when you want to flash aosp or other custom rom you need to format data ( wiping isnt enough because of encryption) when coming from stock miui or miui eu rom.
Best way is to read instruction of rom you want to install.
My steps are when coming from stock miui:
Install twrp
Boot to twrp
Format data with yes
Reboot to twrp
Copy rom you want to install to internal storage, usually you need also rom+vendor file of latest stable miui.
Flash vendor+rom of stable miui
Wipe dalvick+ cache
Flash custom rom (los, evolutionx...)
Wipe dalvick+ cache
Flash gapps if needed
Wipe dalvick + cache
Reboot to system, set your system to your liking
Then reboot to twrp to flash magisk ( if you like to be rooted, otherwise continue to use rom as is)
Best is to read install instructions of rom you want to install
ranjan_shivam said:
See bro When we buy the android the the storage is
Encrypted , when you unlock the bootloader and install TWRP it doesn't decrypt the internal storage that's why only the stick rom i.e. Miui can access the storage , here is what you need to do ..
Install TWRP then go to wipe then click on format data and type yes this will decrypt the internal storage and so that any custom rom you install can access the data ..
Make sure that you format data then reboot trwp and then connect the phone to of transfer the files and install the rom and gappa it will boot just fine
Although for some reason when i install the LOS my storage gets decrypt again I say you try the EvoX rom which doesn't require gappa just flash the rom and the firmware
Also there is some force decrypt zip file that lets you decrypt the internal storage because sometime install the firmware may encrypt your storage again so flash that DFE file you will find that in telegram grp ..
Basically you can't boot into rom and see files on computer cause your storage is encrypted and only Miui can decrypt it unless decrypted ...
Hope it help
Click to expand...
Click to collapse
Hello, thanks for taking the time to help me. I tried again formating the data, it seems a bit better (i can acces file system from my computer), but i'm still in that boot loop :/
BuckyBucks said:
Hello, thanks for taking the time to help me. I tried again formating the data, it seems a bit better (i can acces file system from my computer), but i'm still in that boot loop :/
Click to expand...
Click to collapse
Maybe it's the vendor. What device do you have (china, global, etc.)?
ef1x said:
Every time when you want to flash aosp or other custom rom you need to format data ( wiping isnt enough because of encryption) when coming from stock miui or miui eu rom.
Best way is to read instruction of rom you want to install.
My steps are when coming from stock miui:
Install twrp
Boot to twrp
Format data with yes
Reboot to twrp
Copy rom you want to install to internal storage, usually you need also rom+vendor file of latest stable miui.
Flash vendor+rom of stable miui
Wipe dalvick+ cache
Flash custom rom (los, evolutionx...)
Wipe dalvick+ cache
Flash gapps if needed
Wipe dalvick + cache
Reboot to system, set your system to your liking
Then reboot to twrp to flash magisk ( if you like to be rooted, otherwise continue to use rom as is)
Best is to read install instructions of rom you want to install
Click to expand...
Click to collapse
djoni wallauer said:
hi,
have already format data in TWRP?
Click to expand...
Click to collapse
Thanks to both of you for helping me. As i sayed, I tried to to so and now i can see the filesystem from my computer, but i'm still stuck in the bootloop
Isley_ said:
Maybe it's the vendor. What device do you have (china, global, etc.)?
Click to expand...
Click to collapse
I think it's a global one, but now i have doubts... Is there a way to be sure ?
In the MIUI i managed to flash with miflash, it's sayed MIUI GLOBAL
vladsendrix said:
if it s a mi9t pro its probbably the global version, to make sure try downloading the firmware and vendor from here https://downloads.akhilnarang.me/MIUI/raphael/ . try downloading the global and indian version and try both since you dont know whihch model you have. also dont forget to format before trying anything. hope i helped
Click to expand...
Click to collapse
I'm a bit affraid to flash indian version, it's says to not cross flash ^^
I’d flash MIUI.eu before lineage, let it boot and then do the whole process to install lineage. Yo don’t have nothing to lose.
vladsendrix said:
well i d rrecommen you put your device in fastboot, go to aXiaomiADBFastbootTools and it ll show you your model number or use TOOLSALLINONE. Search ythese on xda and youll find the links and that will definetly show you your model number
Click to expand...
Click to collapse
What fastboot commands should I use to get the model number ? I tried fastboot oem get-psid but it didnt work
When I boot MIUI, in the settings its "MIUI GLOBAL QFKEUXM". So it's correct isn't it ?
vladsendrix said:
well i d rrecommen you put your device in fastboot, go to aXiaomiADBFastbootTools and it ll show you your model number or use TOOLSALLINONE. Search ythese on xda and youll find the links and that will definetly show you your model number
Click to expand...
Click to collapse
I think the problem come from GAPPS. If i format then flash lineage without GAPPS, I can boot it
But if then i try to flash them, it won't boot anymore.
I am using the "nano" package here https://sourceforge.net/projects/ope...beta/20191114/
Is this incorrect ?

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

Flashing problem on Chinese version K20 Pro (raphael)

Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
therightperson_630 said:
Hello there,
I'm using the Xiaomi.eu latest Beta rom ATM. I'm trying to flash other roms (like lineage OS 17.1 for example) but it seems to reboot to fastboot everytime. I've tried doing a clean flash, formatting data, dirty flashing. Nothing seems to help it boot into the new rom.
Clearly I'm doing something wrong. If I try flashing the recommended Chinese vendor firmware (stable version), I get an error 7..but my TWRP is up to date as recommended.
If anyone has any idea where I'm going wrong, that would help a lot.
Thanks
Click to expand...
Click to collapse
Don't know what your doing wrong, but this is my failsafe method should nothing else work.
Flash the latest Chinese 11.0.5 fastboot ROM. Make sure you don't lock the bootloader if using the Mi Flash Tool.
Boot into MIUI once to allow it to finalise the install, you don't need to do the initial phone setup once it boots into MIUI.
Boot into fastboot and install TWRP. I recommend the latest from mauronofrio which should be 3.1.1-32
Boot immediately into TWRP. I use the volume up button while powering up the phone.
Perform a factory reset in TWRP (using the swipe button), then format data (need to type 'yes' to confirm).
Reboot into TWRP using the TWRP boot menu, this ensures the newly formatted data partition is correctly mounted.
Copy over the ROM you want and GApps if needed, then flash.
Boot into your new ROM, everything should be OK. Then boot back into TWRP to install Magisk if you want root.
Yep that seems to have done the trick. At first I was getting frustrated because I thought I was downloading the right Chinese ROM, turns out I was downloading the recovery version instead of the fastboot one.
I think it wasn't working because I was on the beta channel. Switching over to the stable channel meant I had to go through a fastboot flash apparently. I've seen this before on my OP3.
Got lineage OS loaded, thanks for your help!

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]

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