MIUI Pie to custom ROM guide. - Xiaomi Redmi Note 5 Pro Questions & Answers

Hi guys! If you are like me and unlocked your bootloader on MIUI Pie and followed old guides to flash official TWRP and a custom ROM, you are surely going to face data encryption problem, where your TWRP can't access internal storage and can't flash anything.
So, after wasting 6 hours of my time yesterday on my laptop and scourging lots of forum posts, I found a solution. Mind you it's just a way that worked for me. Might work or might not for you.
1. Flash a fresh MIUI Oreo stable ROM via XiaoMi Flash Tool. (Select 'clean and save' to prevent bootloader from locking again.)
2. Enter fastboot mode and flash OrangeFox revocery using adb commands.
3. Boot to recovery and perform system, data, cache, dalvik cache wipe.
4. Connect to computer and transfer custom ROM file to internal storage of phone.
5. Flash custom ROM on recovery and reboot to system.

Never ever don't wipe data if you are downgrading ROM!
Use clean all (no need for cleann all lock).
But don't use clean and save!

What about flashing Xiaomi.eu MIUI 10 Stable version?

Related

Bricked my Mi6

So I just got Mi6 in my hands today, and tried to install Xiaomi EU v8.5.2.0 ROM.
Now, it won't boot. Stuck in Mi logo.
I have flashed TWRP
I have wiped Dalvik Cache, Cache, System, Data, Internal Storage (and probably that messed it up)
Then, installed the ROM via sideload. Rebooted phone, and it's stuck in boot logo
Some friends said something about "boot.img" and SuperSU. What should I do now?
Thank you!
I think your best bet now to use miflash tool and flash fastboot rom.
Though if you can flash twrp, you should be able to flash custom rom using that. Follow the steps 1 by 1. Sometimes certain rom needs u to flash firmware first.
cagriari said:
So I just got Mi6 in my hands today, and tried to install Xiaomi EU v8.5.2.0 ROM.
Now, it won't boot. Stuck in Mi logo.
I have flashed TWRP
I have wiped Dalvik Cache, Cache, System, Data, Internal Storage (and probably that messed it up)
Then, installed the ROM via sideload. Rebooted phone, and it's stuck in boot logo
Some friends said something about "boot.img" and SuperSU. What should I do now?
Thank you!
Click to expand...
Click to collapse
Hi if access to twrp put this ROM on : http://bigota.d.miui.com/7.8.24/miui_MI6Global_7.8.24_52ee82c864_7.1.zip
Then flash via twrp then reboot
jejemc said:
Hi if access to twrp put this ROM on :
Then flash via twrp then reboot
Click to expand...
Click to collapse
Well, I have fixed it by repairing system partition. But now, no EU ROM will boot. MIUI Global Stable v8.2 boots, but Wi-Fi and fingerprint is broken.
cagriari said:
Well, I have fixed it by repairing system partition. But now, no EU ROM will boot. MIUI Global Stable v8.2 boots, but Wi-Fi and fingerprint is broken.
Click to expand...
Click to collapse
So he restarted? Test can be ROM dev to see
But bizarre that on stable ROM this does not work
Yeah, I would suggest flash stable fastboot rom via miflash and start again. If fingerprint/wifi still broken after flash fastboot rom via miflash, there is high chance the hardware is broken.
If it does back to stock and everything works, follow flash procedure for custom rom step by step. There is no real reason it will not work. Good luck
yumm91 said:
Yeah, I would suggest flash stable fastboot rom via miflash and start again. If fingerprint/wifi still broken after flash fastboot rom via miflash, there is high chance the hardware is broken.
If it does back to stock and everything works, follow flash procedure for custom rom step by step. There is no real reason it will not work. Good luck
Click to expand...
Click to collapse
MiFlash gives me "cast id invalid" error, I've been using TWRP and fastboot to flash. I flashed it few times, but it didn't work. So I wiped all the data, flashed again and it works now.
Any ideas why won't EU ROMs boot?
Thanks!
I am using xiaomi.eu ROM myself flashed via twrp 3.1.1.0 Seems working fine. I just boot the twrp via fastboot boot, using twrp mtp to transfer EU rom inside, and flashed.
Done. Everything works. I am currently under miui 8.2 atm. Seems good so far.

HELP! Phone only boots into recovery after fresh install

I have now tried to install the latest RR and Omnirom builds and the problem remains the same.
I've been very particular about wiping data before the installs.
Here is what I have done,
Performed data wipe by typing "yes" when requested. Used advance wipe to wipe everything.
Installed Rom, Stock Gapps and Magisk zip files.
Wiped Cache.
Reboot
The phone will not boot and only returns to recovery.
Can anyone help?
Here is my TWRP log if this helps - https://pastebin.com/ghpXkt3t
Not sure if this is relevant, but every time I try to flash a ROM it always fails on the first attempts and needs a second try to succeed.
TylerDurdenK said:
I have now tried to install the latest RR and Omnirom builds and the problem remains the same.
I've been very particular about wiping data before the installs.
Here is what I have done,
Performed data wipe by typing "yes" when requested. Used advance wipe to wipe everything.
Installed Rom, Stock Gapps and Magisk zip files.
Wiped Cache.
Reboot
The phone will not boot and only returns to recovery.
Can anyone help?
Click to expand...
Click to collapse
If you only get to the mi logo and not the ROM boot screen then format data "yes 3-4 times in a row.
If that doesn't work then wipe the system and data and retry
I was only getting the Mi logo, so I did the format data 4 times in a row and rebooted.
I then saw the Omnirom logo for the first time!
unfortunately 2 seconds later I'm back in TWRP.
I have now tried for the 5th time to perform a fresh install.
Formatting data multiple times, wiping system and data multiple times.
The result is the same.
I see a flicker of the Omnirom logo and I get booted back into recovery.
TylerDurdenK said:
I see a flicker of the Omnirom logo and I get booted back into recovery.
Click to expand...
Click to collapse
Please try this:
1. Wipe: Dalvik / Art Cache; System; Data; Cache;
2. Go back to main TWRP screen and install the rom, install Google Apps, install "addonsu-15.1-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other rom)
3. Wipe Cache
4. Reboot
If this doesn't work and the device restarts in twrp, then pls download the twrp flashable Xiaomi rom from here: http://en.miui.com/download-334.html
1. Wipe: Dalvik / Art Cache; System; Data; Cache
2. Go back to main twrp screen and install the Xiaomi rom. Do not reboot.
3. Go back to main twrp screen and Wipe: Dalvik / Art Cache; System; Data; Cache
4. Go back to main twrp screen and install the rom (Lineage or OMNI or RR), install Google Apps, install "addonsu-15.1-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other rom)
5. Wipe Cache
6. Reboot
I had the same problem and this method worked for me, maybe it will work for you too. :fingers-crossed:
If it doesn't then maybe you have to start from zero and flash the original Xiaomi rom in fastboot mode (rom here: http://en.miui.com/a-234.html) via MIUI ROM Flashing Tool, unlock bootloader (bootloader might relock), flash twrp and then flash new custom rom.
No idea what happened but I have the same issue atm.
I was running a recent Omnirom for a few weeks. System got unstable, so decided to flash the newest version. Got me stuck in a bootloop. I tried everything, short of relocking and unlocking the bootloader.
- Full wipe, including storage
- Reflash Global Dev through TWRP.
- Flash stock Global Dev over flashboot
- Flash Omni, wipe, flash omni again.
All the same. Global Dev runs, all AOSP roms just go into bootloop. No idea what went wrong, I've flashed tens of custom roms over the past months without issues.
Firipu said:
No idea what happened but I have the same issue
All the same. Global Dev runs, all AOSP roms just go into bootloop. No idea what went wrong, I've flashed tens of custom roms over the past months without issues.
Click to expand...
Click to collapse
Then maybe the right solution to get out of bootloops would be to start from zero and flash the original Xiaomi rom in fastboot mode (rom here: http://en.miui.com/a-234.html) via MIUI ROM Flashing Tool, unlock bootloader (as bootloader will relock), flash twrp, do a full wipe and then flash new custom rom.
senerex said:
Then maybe the right solution to get out of bootloops would be to start from zero and flash the original Xiaomi rom in fastboot mode (rom here: http://en.miui.com/a-234.html) via MIUI ROM Flashing Tool, unlock bootloader (as bootloader will relock), flash twrp, do a full wipe and then flash new custom rom.
Click to expand...
Click to collapse
I have reflashed the original Xiaomi ROM (running it atm ) using the official Xiaomi Flash Tool.
I just did not relock my bootloader doing that (there's an option to leave it unlocked). Will relocking and then unlocking the bootloader really make a difference?
Firipu said:
I have reflashed the original Xiaomi ROM (running it atm ) using the official Xiaomi Flash Tool.
I just did not relock my bootloader doing that (there's an option to leave it unlocked). Will relocking and then unlocking the bootloader really make a difference?
Click to expand...
Click to collapse
Not really. You ev. save yourself a waiting time of 72h....
Not sure what happened. I set up MIUI completely. Then, getting frustrated after using it for 10 minutes, decided to try one more time. Same thing.
1) Fastboot flash TWRP.
2) Wipe
3) Flash Rom
4) Flash GAPPS
Worked this time. No idea what went wrong the first 4 times. Only difference is that I went through the trouble to set up the entire phone this last time before trying again.
Anyhoo, so if anyone has the same issue. Set up phone in MIUI, only then wipe/flash
I got mine working by not installing Magisk. I just flashed Omnirom and GApps and it worked.
After setting up my phone I have since rebooted into recovery and installed Magisk and it works.
Can't system boot after install TWRP, Lazy Magisk on MIX M2S
Hello,
I have this problem, the phone does not boot after TWRP, Lazyflasher and Magisk being installed all fine.
I have re-installed the official ROM on my Xiaomi MI MIX 2S, then TWRP is fine too, then Lazy and Magisk fine.
When I reboot, it is stocked on MI logo whatever I do.
I have tried most of the advise posted but still stocked.
I restarted from scratch, installing again the official ROM, then fastboot flash recovery twrp, then lazy and Magisk, but still stocked on MI.
Thanks a lot in advance
Did you wipe system by any chance.. If you did you need to flash miui again with fastboot.. Or boot into fastboot and type this command 'fastboot format userdata' and press enter. You are facing this issue because of encryption
goxthak0 said:
Did you wipe system by any chance.. If you did you need to flash miui again with fastboot.. Or boot into fastboot and type this command 'fastboot format userdata' and press enter. You are facing this issue because of encryption
Click to expand...
Click to collapse
Gratitude for your reply. What do you mean by "wipe system". I installed the rom and then TWRP etc...
I flashed the ROM again and went into bootloader
I typed "fastboot format userdata" and the system replied:
"/usr/local/bin/mke2fs failed with status 1
mke2fs failed: 1
error: Cannot generate image for userdata
Can you advise.
Thanks a LOT
Did you use the correct rom ? Mi mix 2 or mi mix 2s?
fotocreaman said:
Did you use the correct rom ? Mi mix 2 or mi mix 2s?
Click to expand...
Click to collapse
I used MI MIX 2D:
As in en.miui web site
https://en.miui.com/download-343.html
Author: MIUI Official TeamVersion: V10.0.9.0.PDGMIFH (MIUI10) Size: 1.7G
My mobile is:
MI MIX 2S, Android 9PKQ1
MIUI Global 10.0
Thanks a lot for your advise as always stock, despite different attempts
Did you try to flash using mi tools?
fotocreaman said:
Did you try to flash using mi tools?
Click to expand...
Click to collapse
NO, I followed the usual process with ADB tools.
However, I have no boot "stuck at MI logo (bootloop)" problem when I flash the ROM.
It happens only when use TWRP and flash Magisk and Lazy.
Then, when I restart it got stuck at MI Logo.
Do you suggest I try to flash with MI logo (I don't have a PC though).
If so, should I just flash the ROM and then, what about TWRP, should I use MI flash or ADB?
I just want to make sure that the problem is with the ROM instal?
Thanks a LOT

Fastboot bootlooping after trying to flash custom ROM

Hey everyone. Tried to flash a custom ROM for the first (and maybe last time) on the Mi5s from China Stable V10.2 to Lineage OS16. I think i did everything correctly at first
Unlocked the bootloader with Mi Unlock, put the SDK tools into ADB folder, flashed TWRP with command prompt, made a backup, wiped data, disabled force encryption, MAGISK root, flashed Mi5s firmware (although I could only find Oreo), LOS16 (Pie), and OpenGApps
I did all of that and got stuck on the LOS boot animation. Then I wiped data + cache partitions and tried again (didn't work). I quit trying with LOS but instead tried to flash the MIUI Global Stable recovery ROM with TWRP, also only made it to the boot animation. I then did a factory wipe on TWRP and tried to restore my backup but now it would only boot to the fastboot (not even trying to load the ROM)....... I can still access TWRP so maybe I'm not so screwed but what do I do? I just want a functioning device and don't mind if I go back to China Stable although advice on trying to flash a custom ROM would be appreciated. Thanks!

Guide to flash custom roms

Hi there and I want few information about how to flash custom ROMs on my rn5 I have unlock bootloader and install Fox TWRP and I have tried flashing c a c Droid and Google pixel the process has gone correctly but I am unable to boot in those ROMs I have cleared wipe cache, system vendor custom,
I did all I can do but I am unable to boot in custom ROMs after flashing so if anybody have any steps kindly guide me thank you
I always have difficulty to flash ROMs on the RN5 Pro, always after startup it returns to recovery without the ROM I just flashed. My solution was to put the files (OrangeFox and Custon Rom) on the SD card before cleaning and then use the command "fastboot boot TWRPName.img" to clean the entire system and then install the recovery and ROM

Need guidance to flash custom Rom on stock A11

hi there, i just picked up the second hand Taimen.
I've already unlock bootloader & root by magisk.
also have latest twrp installed...
phone at stock A11 & encrypted status.
i need some info as this is a/b device like my MiA2.
1. if i wanna flash custom Rom, do i have to format internal to get decrypted? or there's any options to just flash DFE zip like my poco F1 so i don't need to format internal.
2. where can i get complete guide to flash custom Rom?
3. is it mandatory to reflash twrp after flash any of custom Rom or kernel to stick twrp as permanent recovery?
thanks in advance
fyi, i have no PC. I've done all that mentioned above with other phone method (use Bugjaeger app)
got it...
so it's exactly like MIA2 & i don't need to format internal (factory reset).
now running DotOS, root, TWRP installed & encrypted.
everything works like a charms

Categories

Resources