Clearing up TWRP ambiguity versions + rooting MIUI pie - Xiaomi Redmi 6 Guides, News, & Discussion

There is confusion over which recoveries to install for Redmi 6 (cereus).
Failure to install the correct TWRP will result in a hard brick with no chance of restoring the device without an authorised account or going to a Mi Service Centre.
If you are currently on the MIUI Oreo ROM:
You may ONLY use TWRP 3.3.0 OR 3.2.3-0 OR 3.2.3-1
The recovery by either TWRP or LR.Team is both ok.
If you are on the PIE rom:
You MUST use TWRP 3.3.1 or OrangeFox Recovery. R10.0-2 nocrypt Pie is confirmed to be working by me.
To root MIUI pie, follow the instructions in this post from 4PDA. This is because you will be unable to decrypt data.
You need to create an account to download the patched boot.img. You can either create one yourself or ask me or someone else to PM you with the boot.img. I will not attach it to this thread because it is not my work. The files have now been attached. See post below.
All credits go towards the respective recovery authors and 4pda

OK here are the boot files from 4pda
You MUST follow the instructions from this guide: http://4pda.ru/forum/index.php?showtopic=907017&st=5020#entry87853533
All files obtained from 4pda.ru - from a post by MCMXCII
Full credits go towards the authors of the respective .imgs

I did something wrong just don't know what
I tried with OrangeFox and when rebooted in recovery the phone would not turn on and just vibrates.
I was lucky because I just needed to open and remove the battery to get the phone back up.

So just to get it right (please correct me if i'm wrong):
Starting from unlocked MIUI stock with android 8.1 base:
0) Download patched boot image from OP
1)Download TWRP 3.3.0 OR 3.2.3-0 OR 3.2.3-1
2)Download Magisk 19.3 Stable (would the latest stable also work https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445?)
3)Download official Pie Rom: http://bigota.d.miui.com/V10.4.4.0.PCGMIXM/miui_HM6Global_V10.4.4.0.PCGMIXM_99304098f7_9.0.zip
4)Enter Fastboot -> Flash TWRP
5)Enter TWRP -> Flash the Pie Rom -> Flash patched boot.img -> flash Magisk
6)Boot into system -> Leave the device alone for 2-3 minutes and install Magisk Manager
7)Download -> TWRP 3.3.1 or OrangeFox Recovery. R10.0-2
8)Enter Fastboot -> Flash TWRP/OrangeFox
would this be the correct procedure?
cheers

snoerme said:
So just to get it right (please correct me if i'm wrong):
Starting from unlocked MIUI stock with android 8.1 base:
1)Download TWRP 3.3.0 OR 3.2.3-0 OR 3.2.3-1
2)Download Magisk 19.3 Stable (would the latest stable also work https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445?)
3)Download official Pie Rom: http://bigota.d.miui.com/V10.4.4.0.PCGMIXM/miui_HM6Global_V10.4.4.0.PCGMIXM_99304098f7_9.0.zip
4)Enter Fastboot -> Flash TWRP
5)Enter TWRP -> Flash the Pie Rom -> flash Magisk
6)Boot into system -> Leave the device alone for 2-3 minutes and install Magisk Manager
7)Download -> TWRP 3.3.1 or OrangeFox Recovery. R10.0-2
8)Enter Fastboot -> Flash TWRP/OrangeFox
cheers
Click to expand...
Click to collapse
?????????????????????
Why don't you skip steps 1-3 and just use XiaoMi Flash to install 10.4.4.0 via Fastboot by 'saving user data', then follow the instructions here? XiaoMiFlash will overwrite your recovery with the default so there is no risk of a brick. Then Flash TWRP Pie, flash boot img, flash magisk.
As I have said, you will brick your device. If you have TWRP Oreo, and then you install MIUI Pie, you will brick your device. You are doing EXACTLY what I told you not to do!

It didn't come out as clearly as you think. maybe it's my own deficiency.
btw whenever i flashed any update via TWRP the recovery got replaced by stock recovery as well.
(I don't tell this to call into question that your suggested way of doing was the most safe way.)
Is XiaoMi Flash available for linux as well?
edit: do you know if the latest magisk stable 20.0 would also work?

snoerme said:
It didn't come out as clearly as you think. maybe it's my own deficiency.
btw whenever i flashed any update via TWRP the recovery got replaced by stock recovery as well.
(I don't tell this to call into question that your suggested way of doing was the most safe way.)
Is XiaoMi Flash available for linux as well?
Click to expand...
Click to collapse
I'm not sure - I have never flashed any MIUI ROM in TWRP. It seems normal though - the updaterscript probably tells TWRP to overwrite itself.
https://forum.xda-developers.com/android/software/tool-miflash-linux-t3708847 It's a bit complicated

This work for me :
1 - Install Pie Rom https://bigota.d.miui.com/V10.4.4.0.PCGMIXM/miui_HM6Global_V10.4.4.0.PCGMIXM_99304098f7_9.0.zip with TWRP 3.3.1 https://mifirm.net/downloadtwrp/62 or with another method.
2 - Shut down the phone , go to fastboot (Vol - and power), plug to computer.
3 - From the computer fastboot flash boot boot_10.4.4.0_R6_mgsk_193.img (see the second post of this thread).
4 - fastboot flash recovery recovery-TWRP-3.3.1-0602-REDMI6-CN-wzsx150.img
5 - Recovery (Vol+ and power)
6 - Install Magisk 19.3
Reboot and enjoy

Hi, currently I'm on stable China mui v10.4.3.0. Do you have boot.img on that v10.4.3.0. Currently link only provide boot.img for v10.4.2.0 for the china version. If no how do I get those, can I just backup them from twrp, Then create patched boot img with those backup boot? Thanks

Che0063 said:
OK here are the boot files from 4pda
You MUST follow the instructions from this guide: http://4pda.ru/forum/index.php?showtopic=907017&st=5020#entry87853533
All files obtained from 4pda.ru - from a post by MCMXCII
Full credits go towards the authors of the respective .imgs
Click to expand...
Click to collapse
Thanx for boot_10.4.4.0_R6_mgsk_193.img :good:
ribou said:
This work for me :
1 - Install Pie Rom https://bigota.d.miui.com/V10.4.4.0.PCGMIXM/miui_HM6Global_V10.4.4.0.PCGMIXM_99304098f7_9.0.zip with TWRP 3.3.1 https://mifirm.net/downloadtwrp/62 or with another method.
2 - Shut down the phone , go to fastboot (Vol - and power), plug to computer.
3 - From the computer fastboot flash boot boot_10.4.4.0_R6_mgsk_193.img (see the second post of this thread).
4 - fastboot flash recovery recovery-TWRP-3.3.1-0602-REDMI6-CN-wzsx150.img
5 - Recovery (Vol+ and power)
6 - Install Magisk 19.3
Reboot an denjoy
Click to expand...
Click to collapse
ThanX ! ! !
This work for me :good:
EDIT:
The flashlight and the camera does not work after flash the boot boot_10.4.4.0_R6_mgsk_193.img [emoji848]
Does anyone else have a similar problem?
View attachment 4862683

I have the camera and flashlight problem too. Any fix?

Unfortunately, I didn't find any solution.
Currently, my phone does not start, has a black screen and vibrates all the time. I can't run it in any way
EDIT:
Hi.
I was able to bring the phone to life. Get instructions on how to get to the battery https://www.youtube.com/watch?v=L9FH88b16bc https://www.youtube.com/watch?v=fAflA4UKLLY. In orangeFox recovery I checked the flashlight, it works.

That makes us two. My phone is unusable at the moment. I thought the root was responsible for the camera bugs, I uninstalled magisk, the bug was still there. I tried to reinstall MIUI 10.4.4 ang got an error. I've wiped everything including vendor and system.

I clean dalvik and cache and for now the phone is working even, after flash the patch boot.img

ribou said:
This work for me :
1 - Install Pie Rom https://bigota.d.miui.com/V10.4.4.0.PCGMIXM/miui_HM6Global_V10.4.4.0.PCGMIXM_99304098f7_9.0.zip with TWRP 3.3.1 https://mifirm.net/downloadtwrp/62 or with another method.
2 - Shut down the phone , go to fastboot (Vol - and power), plug to computer.
3 - From the computer fastboot flash boot boot_10.4.4.0_R6_mgsk_193.img (see the second post of this thread).
4 - fastboot flash recovery recovery-TWRP-3.3.1-0602-REDMI6-CN-wzsx150.img
5 - Recovery (Vol+ and power)
6 - Install Magisk 19.3
Reboot an denjoy
Click to expand...
Click to collapse
Hello this is the steps i did but when rebooting to recovery i end up on blackcreen or mai i say powered off screen with the device unable to boot to recovery,any ideas what i did wrongly?

It seems there is something wrong with that boot patch. I followed a procedure on youtube and my phone is succesfully rooted without any bug

@ambyy
what guide did you use on YouTube?
Wysłane z mojego Redmi 6 przy użyciu Tapatalka

https://www.youtube.com/watch?v=I_4Zmco9R78&t=25s

Hard brick caused by flashing wrong TWRP is indeed able to get solved with unplugging the battery.

Miui v11 boot.img please

Related

Downgrade OxygenOS from 3.5.2 to 3.2.6 with Root / Xposed / Debloat

So I downgraded my Oneplus 3 from 3.5.2 to 3.2.6 and this was kind of a painful process, so I decided to share my experience with you.
If you follow this guide you will successfully downgrade from the latest Community Build to the newly released stable.
Note: Just because this worked for me, doesn't mean that it will work for you! Use this guide on your own risk and always use backups!
You'll need:
- Oneplus with OOS 3.5.2 and modified TWRP
- OxygenOS 3.2.6 Full ROM
- Latest official TWRP
- AndroidSDKSlim (needs Oneplus 3 USB drivers installed)
- SuperSU 2.78 SR1
- Xposed Framework (optional)
- Debloat Script (optional)
Downgrade:
Before you start, please create a COMPLETE backup of all your data.
You will factory reset your phone during the process.
1. Copy OOS 3.2.6 Full ROM, SuperSU, Xposed, Debloat Script to your Oneplus
2. Flash modified TWRP if you haven't already
3. Boot into modified TWRP
4. Select Wipe -> Advanced Wipe -> Select all but internal storage -> Swipe to Wipe
5. Install OOS 3.2.6 Full ROM
6. Reboot into system and use the installation wizard to setup your phone (do not setup fingerprints, or any device PIN)
7. Reboot into bootloader
8. Connect your phone to a PC/Notebook
9. Extract AndroidSDKSlim to your Desktop and copy twrp-3.0.2-1-oneplus3.img into \AndroidSDKSlim\android-sdk-windows\platform-tools
10. Run CMD with admin rights and navigate to \AndroidSDKSlim\android-sdk-windows\platform-tools
11. Run "fastboot flash recovery twrp-3.0.2-1-oneplus3.img" to revert to official TWRP recovery
12. Disconnect your phone and boot into recovery
13. Dirty flash OOS 3.2.6 again (this might sound stupid but it's mandatory)
14. Still in recovery, flash SuperSU, Xposed and Debloat Script
15. Wipe Dalvik & Cache
16. Reboot into system and setup your phone
Thanks for your guide !
Can you just please detail how to revert back to a custom ROM like RR or Nuclear when we come from Oxygen OS 3.5.2 community build ?
darkbash said:
Thanks for your guide !
Can you just please detail how to revert back to a custom ROM like RR or Nuclear when we come from Oxygen OS 3.5.2 community build ?
Click to expand...
Click to collapse
You're welcome.
Unfortunately, I can't provide guides for procedures I never went through.
But I asume that you could just flash any Custom ROM after you completely wiped your phone in step 4. So instead of flashing OOS 3.2.6 afterwards, just flash a custom ROM. Be sure that you have all zips you need on your internal storage and a backup to revert back to, if anything goes wrong. Otherwise you will have to use ADB sideload to install a ROM.
Ok, so I have a Modified TWRP installed already. Question is If I want to flash other ROMS after wiping system,dalvik/cache,data etc. Do I have to Flash official TWRP first followed by firmware,ROM, etc?
or firmware first then ROM and lastly official TWRP?
it's quite confusing.
I made a mistake and I installed the modified recovery installed the 3.5.2 rom and before booting I decided to restore my nand backup so I flashed the official twrp recovery and now I can't go to recovery anymore and the phone doesn't boot.
I imagine I have to sideload the modified twrp again but how do I do that? How do I reboot to bootloader ?
This is the only sign of life
gigeaky said:
I made a mistake and I installed the modified recovery installed the 3.5.2 rom and before booting I decided to restore my nand backup so I flashed the official twrp recovery and now I can't go to recovery anymore and the phone doesn't boot.
I imagine I have to sideload the modified twrp again but how do I do that? How do I reboot to bootloader ?
This is the only sign of life
Click to expand...
Click to collapse
Flash modified TWRP, and the recovery will return. then, follow the guide. it happened to me too.
darkbash said:
Thanks for your guide !
Can you just please detail how to revert back to a custom ROM like RR or Nuclear when we come from Oxygen OS 3.5.2 community build ?
Click to expand...
Click to collapse
First flash modified TWRP than install official 3.2.4 than flash CM ROM or custom ROM
uniQ191 said:
So I downgraded my Oneplus 3 from 3.5.2 to 3.2.6 and this was kind of a painful process, so I decided to share my experience with you.
If you follow this guide you will successfully downgrade from the latest Community Build to the newly released stable.
Note: Just because this worked for me, doesn't mean that it will work for you! Use this guide on your own risk and always use backups!
You'll need:
- Oneplus with OOS 3.5.2 and modified TWRP
- OxygenOS 3.2.6 Full ROM
- Latest official TWRP
- AndroidSDKSlim (needs Oneplus 3 USB drivers installed)
- SuperSU 2.78 SR1
- Xposed Framework (optional)
- Debloat Script (optional)
Downgrade:
Before you start, please create a COMPLETE backup of all your data.
You will factory reset your phone during the process.
1. Copy OOS 3.2.6 Full ROM, SuperSU, Xposed, Debloat Script to your Oneplus
2. Flash modified TWRP if you haven't already
3. Boot into modified TWRP
4. Select Wipe -> Advanced Wipe -> Select all but internal storage -> Swipe to Wipe
5. Install OOS 3.2.6 Full ROM
6. Reboot into system and use the installation wizard to setup your phone (do not setup fingerprints, or any device PIN)
7. Reboot into bootloader
8. Connect your phone to a PC/Notebook
9. Extract AndroidSDKSlim to your Desktop and copy twrp-3.0.2-1-oneplus3.img into \AndroidSDKSlim\android-sdk-windows\platform-tools
10. Run CMD with admin rights and navigate to \AndroidSDKSlim\android-sdk-windows\platform-tools
11. Run "fastboot flash recovery twrp-3.0.2-1-oneplus3.img" to revert to official TWRP recovery
12. Disconnect your phone and boot into recovery
13. Dirty flash OOS 3.2.6 again (this might sound stupid but it's mandatory)
14. Still in recovery, flash SuperSU, Xposed and Debloat Script
15. Wipe Dalvik & Cache
16. Reboot into system and setup your phone
Click to expand...
Click to collapse
worked like magic. Thankyou for this education. it didnt work when i followed other folks. Much appreciated.
So it seems I have booted with 3.5.2 and modified recovery. Now my question is: can I reboot in recovery at step 7 and install the original twrp recovery? Or can I use flashify? As I don't have access to a pc
I did ok but cant use adaway do you have a fix for it?
Enviado do meu ONEPLUS A3003 através de Tapatalk
I'm trying to return to 3.2.6 after trying 3.5.2.
However, after flashing and booting 3.2.6, I boot into fastboot mode and the official TWRP refuses to flash. It reports that it's failed and then I'm left with no recovery until I reflash the modified TWRP.
I could try restoring my Nandroid backup of 3.2.6 with the modified TWRP, but I'd prefer to return to the official TWRP before doing this.
Any suggestions?
Edit: Fixed it. I downloaded the official TWRP again and it flashed. The first download must have been corrupted.
I followed a different method and successfully downgraded today to a former nandroid. I was rooted without xposed.
3.2.6 to 3.5.2 dirty flash
- installed modded twrp
- performed backup on 3.2.6
- installed modded 3.5.2 (the only that flashes in twrp)
- installed root SR1
- wiped caches only
- reboot
3.5.2 to 3.2.6 restore
- downloaded 3.2.6
- boot to modded twrp, wipe both caches, data, system
- flashed 3.2.6 stock and root SR1
- restored 3.2.6
- wiped caches
- reboot
- enjoying my LTE again
Without first installing stock, after a restore my phone was boot locking right after the oneplus white logo (capacitive buttons would light up, but it would not boot to red logo). Had to press vol down and power to force it to boot menu to select recovery and get back to twrp
Hope this helps someone, it's a bit easier than swapping twrps and no need to boot up/flash 3.2.x twice.
So if I am on the CB and want to go back to 3.2.6
I can flash 3.2.6 with the modded TWRP
Then flash Official TWRP and boot?
If I have official recovery, no root, and locked bootloader, can I downgrade from 3.5.3 to 3.2.6 without any problems, just by sideloading the zip in ADB? Thankss
popab said:
If I have official recovery, no root, and locked bootloader, can I downgrade from 3.5.3 to 3.2.6 without any problems, just by sideloading the zip in ADB? Thankss
Click to expand...
Click to collapse
i would also like to know this please
bigup7 said:
i would also like to know this please
Click to expand...
Click to collapse
I did it and it does work perfectly. Just make sure to wipe data from recovery after flashing.
I was on Comunity Build v.3.5.4. I want it back FreeDom v.1.6.
I did:
1. Flash Twrp-3.0.2-19-oneplus3.img.zip. Somebody sugested original twrp 3.0.2.1 from twrp site. For me did NOT work. Phone not booting in recovery with 3021.
2. Advanced wipe. Wipe dalvik cache/cache/system/data
3. Flash Freedom v.1.6. Clean Flash it's safer & better.
Done. System works. Recovery works.
null0seven said:
I was on Comunity Build v.3.5.4. I want it back FreeDom v.1.6.
I did:
1. Flash Twrp-3.0.2-19-oneplus3.img.zip. Somebody sugested original twrp 3.0.2.1 from twrp site. For me did NOT work. Phone not booting in recovery with 3021.
2. Advanced wipe. Wipe dalvik cache/cache/system/data
3. Flash Freedom v.1.6. Clean Flash it's safer & better.
Done. System works. Recovery works.
Click to expand...
Click to collapse
I am on CB Freddom os
I want to go back either to stock or to op3lite.
I cant reboot to recovery.
But adb works yet.
What to do plz suggest.
Sent from my ONEPLUS A3003 using Tapatalk
1. If system don't boot. Reboot to fastboot.
- Flash recovery.img. If PC don't see youre phone option 2.
2. If system boots, open phone like normal.
- Extract recovery img. Put it on the TWRP file on phone sd card.
- Download Flashify from play. Open it, flash img of recovery. Open recovery to chech if it works.
Try with both recovery (3.0.2.0 or modified 3.0.2.-19). One of those will work.
Im getting system partition has unexpected contents after OTA update after installing step 5 ????

[ROOT] MediaPad M3 10 BAH-L09 Success!

First- I am NOT Responsible if you brick your Device! You do everything at your own Risk!
As I cannot find successfull thread here guiding to root this tablet I am posting the success with rooting with Magisk, all is seen on Russian forum 4pda,but the firmware I am on is not here ,it was little hard to find it(paid) but at the end it works, I have full root:
1 .You must have UNLOCKED BOOTLOADER!!! You can do it here are 2 threads guiding to it,mine was with DC_unlocker-4USD;
2. You must download Magisk from its original thread :Link
3.You must Look at which firmware you are,download the patched ones :С170B003
С170B253
C100B270
Or you can download you full Rom, extract it using Huawei Firmware Extractor extract the BOOT.img from UPDATE.APP file transfer it to your tablet and using Magisk--> install choose boot.img and patch it, then copy the patched_boot.img from folder "Downloads" in the internal memory back to PC,rename to boot.img.
4.You must have installed ADB and fastboot.
5.Using fastboot command on PC install the patched boot.img to tablet:
-First on your tablet enable Developer Options, thick Enable OEM Unlock,thick USB Debugging on,when connected to PC must ask for Fingerprint Security Rsa key,thick Always Trust to this PC"
-Second Tunoff Tablet, then hold volume Down button and connect to PC with USB Cable,Fastboot menu must appear: With green at bottom must be written that it is not FRP locked! If so -dont do proceed disable remove Huawei Account if you have one!
-Third-copy patched boot.img to folder where is located ADB and fastboot, then hold shift and right click mouse button and click Open Command Prompt here.
Now on fastboot menu enter following:
fastboot.exe flash boot boot.img
At the end everything must be OK!
Reboot with power button and check in Magisk !
Regards
I just wanted to confirm that this method works for my tablet. My Huawei Mediapad M3 10.1" BAH-L09 had bootloader unlocked. Emui5.1.2 and OS 7.0. Following these instructions, I extracted the BOOT.img from the stock ROM, then used Magisk Manager app (6.0.1) to create the patched-boot.img. Flashing this patched-boot.img using fastboot mode with command:
fastboot flash boot patched_boot.img
My tablet now is ROOTED without any problems (camera works normally). In short, just follow exactly these instructions and your tablet will be ROOTED
This works for me on BAH-L09 with Build Number BAH-L09C100B270. My Tab ist now rooted with Magisk 17.1 installed. Next i do flash special version of TWRP from the TWRP Builder site. I took the version for the BAH-W09 (WIFI version of the tab) on my own risk. I KNOW thats not the correct version, so please dont criticize.
Installation via fastboot worked. I can boot into Huawei recovery (Power+Vol-up) and TWRP (Power + Vol-Up and Vol-down same time). System boots without problem too. Also i can flash back the original huawei rcovery.img in fastboot mode.
But there is an issue in this TWRP recovery version 3.2.1-0. It does not decrypt data. I tried to format data and flash "no-verity-opt-encrypt". But there is still an Huawei secure mechanism, that wants me to format data in Huawei recovery again. Without format data my tab do not boot into system.
Next step i tried to get TWRP for my device on TWRP-builder app. but no succes because the build queue ist full. So i have to wait...
Sorry but how did you unlock the bootloader?
DragonautMk said:
Sorry but how did you unlock the bootloader?
Click to expand...
Click to collapse
I used dc-unlocker (you can google for). Its easy but it costs ca. 4 €.
Does this method still works on latest ota ?
The4anoni said:
Does this method still works on latest ota ?
Click to expand...
Click to collapse
My M3 10 lite was on latest frmware C100B270 as i used dc-unlocker. Unlock worked well for me.
Does rooting enable you to install Google Services on the tablet? Is so, how?
Is there an international ROM that can be used (with Google tools)
Thanks! Worked for my Mediapad M3 lite 10 (BAH-L09), but now... How can I update Magisk? The Magisk manager doesn't support the version installed.
Can't install twrp either
---------- Post added at 08:40 PM ---------- Previous post was at 07:51 PM ----------
ossizwei said:
This works for me on BAH-L09 with Build Number BAH-L09C100B270. My Tab ist now rooted with Magisk 17.1 installed. Next i do flash special version of TWRP from the TWRP Builder site. I took the version for the BAH-W09 (WIFI version of the tab) on my own risk. I KNOW thats not the correct version, so please dont criticize.
Installation via fastboot worked. I can boot into Huawei recovery (Power+Vol-up) and TWRP (Power + Vol-Up and Vol-down same time). System boots without problem too. Also i can flash back the original huawei rcovery.img in fastboot mode.
But there is an issue in this TWRP recovery version 3.2.1-0. It does not decrypt data. I tried to format data and flash "no-verity-opt-encrypt". But there is still an Huawei secure mechanism, that wants me to format data in Huawei recovery again. Without format data my tab do not boot into system.
Next step i tried to get TWRP for my device on TWRP-builder app. but no succes because the build queue ist full. So i have to wait...
Click to expand...
Click to collapse
The same for me. Have you got the appropiatte twrp recovery?
wanlus said:
Thanks! Worked for my Mediapad M3 lite 10 (BAH-L09), but now... How can I update Magisk? The Magisk manager doesn't support the version installed.
Can't install twrp either
The same for me. Have you got the appropiatte twrp recovery?
Click to expand...
Click to collapse
This is an old post. Development has going forward. Look here:
For a LineageOS rom
https://forum.xda-developers.com/mediapad-m3/development/rom-t3945684
For TWRP
https://forum.xda-developers.com/mediapad-m3/development/twrp-t3914531
For the first step use the 3.2.0 version of TWRP if you are in Huawei's stock Rom.
For me its the best for this moment. Only issue is, that camera dont work in this early lineage rom. But developer is working on it.
ossizwei said:
This is an old post. Development has going forward. Look here:
For a LineageOS rom
https://forum.xda-developers.com/mediapad-m3/development/rom-t3945684
For TWRP
https://forum.xda-developers.com/mediapad-m3/development/twrp-t3914531
For the first step use the 3.2.0 version of TWRP if you are in Huawei's stock Rom.
For me its the best for this moment. Only issue is, that camera dont work in this early lineage rom. But developer is working on it.
Click to expand...
Click to collapse
Ok, thank you so much. I've got installed Twrp properly, and it boots ok... but no more. Now it stays on the recovery home screen. I'll try again

MIUI 10 flashing twrp, root and rom guide required

Hello,
I'm lookig for a guide how to twrp, root and install custom rom, on my Mi5 miui 10 global stable.
I'm not newbe I did a lot of flashing on my previus phones Nexus and others. But this time I feel lost. I sit on miui 10 global stable. When I try to to flash twrp I get reroll to mi recovery every single time. All guides I found in the Internet are dedicated to older android versions. Xiaomitool don't help too.
Can someone point me to the right direction? It is time to change rom on my Mi5 finally to give him boost b4 I buy something new.
Best regards
Amonlb
amonlb said:
Hello,
I'm lookig for a guide how to twrp, root and install custom rom, on my Mi5 miui 10 global stable.
I'm not newbe I did a lot of flashing on my previus phones Nexus and others. But this time I feel lost. I sit on miui 10 global stable. When I try to to flash twrp I get reroll to mi recovery every single time. All guides I found in the Internet are dedicated to older android versions. Xiaomitool don't help too.
Can someone point me to the right direction? It is time to change rom on my Mi5 finally to give him boost b4 I buy something new.
Best regards
Amonlb
Click to expand...
Click to collapse
Your bootloader is unlocked, right?
Then you need reboot to fastboot mode and flash latest official twrp via fastboot.
Like
Code:
fastboot flash recovery <path to twrp.img>
Have you tried it that way?
Phil_Smith said:
Your bootloader is unlocked, right?
Then you need reboot to fastboot mode and flash latest official twrp via fastboot.
Like
Have you tried it that way?
Click to expand...
Click to collapse
Bootloader is unlocked.
I did it that way but after twrp is installed I reboot and there is no twrp available. Only mi recovery.
To make it easier...
I would like to:
Flash twrp
Flash magisk and root
Flash firmware (why i need this?) Havoc os asks to flash it but I don't know why.
Flash havock os and gapps
Flash some mods for camera and sound
I don't understeand why twrp can't be flashed and I have no idea what is modified firmware for? Do I need this?
Thanks for your time
Try the the xiaomi eu rom guide .
I think you may need its custom bootloader , not the actual rom.
Than flash the firmware required for your custom rom and reboot directly to recovery again from twrp than rom and gapps , I hope that helps
Hi, i had the same problem, try this:
1. Flash twrp as usual(fastboot flash recovery twrp.img and then fastboot reboot)
2. When rebooting, you have to enter at recovery (vol up + power) . Don't allow phone to boot! In TWRP official page, on installation instructions , they say after installation you must enter in recovery to allow TWRP patch recovery rom, because some Roms after boot reinstall original recovery.
3. Now you should have TWRP installed.
If you do
fastboot flash recovery twrp.img
and then do
fastboot boot twrp.img
It's simpler and it will boot to recovery and patch the ROM to be permanently installed.
amonlb said:
Bootloader is unlocked.
I did it that way but after twrp is installed I reboot and there is no twrp available. Only mi recovery.
To make it easier...
I would like to:
Flash twrp
Flash magisk and root
Flash firmware (why i need this?) Havoc os asks to flash it but I don't know why.
Flash havock os and gapps
Flash some mods for camera and sound
I don't understeand why twrp can't be flashed and I have no idea what is modified firmware for? Do I need this?
Thanks for your time
Click to expand...
Click to collapse
First,fastboot flash recovery twrp.img
and then no reboot your phone, just to hold the key combo (vol up + power), and then you can enter the twrp mode once because the recovery will be changed when your phone has rebooted.
But you can use the only once twrp mode to install the zip .
If you just want to use MIUI 10, you will flashboot twrp everytime when you need twrp to do something.
PS: Forgive me pool English.
rmrbpt said:
If you do
fastboot flash recovery twrp.img
and then do
fastboot boot twrp.img
It's simpler and it will boot to recovery and patch the ROM to be permanently installed.
Click to expand...
Click to collapse
Thanks, this worked!

How to install TWRP and Magisk on Redmi 8?

How to install TWRP and Magisk on Redmi 8?
I always end up in a bootloop and have to flash official rom over and over again.
I'm looking for installing twrp for the redmi 8 Olive, but still haven't found it. Where did you get yours?
ketogeno said:
How to install TWRP and Magisk on Redmi 8?
I always end up in a bootloop and have to flash official rom over and over again.
Click to expand...
Click to collapse
Same here bro
Maybe you guys need to flash the no verity zip file after magisk?
Not sure if that will do the trick tho.
How are you installing magisk without any official or unofficial twrp???
I'm another one lookingo for TWRP for Redmi 8 and still didn't find it.
I think you guys are looking for this https://c.mi.com/thread-1843805-1-0.html
TWRP.zip
Instructions from Altsec
Install TWRP from Redmi 8a
It's ONLY for redmi 8 with dispay Tianma !!!
Other display needed otg + mouse.
Attention! Unlocked Bootloader Required !!!
1. Download Attached file twrp.zip
2. Unpack to the root of the disk (I had C: \ TWRP \)
3. Restart the phone to fastboot mode (Volume - and Power at the same time)
4. In the folder we find flash.bat, run it, it will flash two files vbmeta and recovery
5. The device will reboot, after rebooting you can boot into the recovery manually Volume + and Turn On Simultaneously
куча лагов тврп заточено под 32 а редми 8 64 глючит оно
a bunch of lags of tvrp is imprisoned under the 32 kernel and the redmi 8 64 is buggy.
Does not install firmware in backup sistem does not fail with error apparently incompatibility is on
redmi 8 terp
I am not sure, but on cz.xiaomi page one admin take this link to redmi 8 twrp. I dont try it because i dont have unlock bootloader now.
Sorry i try to take link in here but this stupid server rules... "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!"
Go to miuios.cz to section redmi 8/8A, post MIUI CZ SK ROM + TWRP, you must be loged and in VMach3 post is this link.
I have only tried to boot mentioned recovery, but it was not working for me.
Code:
~/Downloads$ fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN.img
downloading 'boot.img'...
OKAY [ 2.107s]
booting...
OKAY [ 2.121s]it
finished. total time: 4.228s
~/Downloads$
After automatic reboot started system. When manualy restarted phone booted to vendor recovery mode. No adb was available and any try to boot to system was failure - phone always booted to recovery mode. To boot to system I needed to select "wipe data" and then reboot to phone (but all previous data/configuration was deleted).
One more try with this Unofficial TWRP 3.3.1-1127 for REDMI 8 by wzsx150, this time it was success, everything was working smoothly.
Install from fastboot mode:
Code:
fastboot flash recovery recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
my device:
Code:
fastboot getvar product
product: olive
Tested also with rom MIUI 11 xiaomi.eu without issues.
jkkk88 said:
One more try with this Unofficial TWRP 3.3.1-1127 for REDMI 8 by wzsx150, this time it was success, everything was working smoothly.
Install from fastboot mode:
Code:
fastboot flash recovery recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
my device:
Code:
fastboot getvar product
product: olive
Tested also with rom MIUI 11 xiaomi.eu without issues.
Click to expand...
Click to collapse
Hi. Am I right, this TWRP is for China version of Redmi 8? I have Global version. Will it work for me?
mcichy10 said:
Hi. Am I right, this TWRP is for China version of Redmi 8? I have Global version. Will it work for me?
Click to expand...
Click to collapse
TWRP is language and version (global, china etc.) neutral. You have on first screen by first run button on right side at the bottom where you can select english language.
If you want root your phone with magisk, go directly to canary version. By stable version I got root only by adb, other apps were denied root access and freeze for a short time (for ex. Total commander beta).
On the other hand I was not able to use phone with not encrypted data with none of magisk version (stable or canary) even if I had "Preserve forced Encryption" unticked.
Code:
~$ adb shell getprop ro.crypto.state
encrypted
Tested on MIUI 11.0.4 by xiaomi.eu.
Unable to install official TWRP in Redmi 8, Miui 11.0.7. It installed. and then vanished when rebooted. and then boot looped. Had to flash original recovery and boot img to reboot.
Had made sure that I didn't boot to system after flashing TWRP. and boot to recovery instead. It flashed okay. Could use the root after installing Magisk. But on reboot, all was gone. Boot looped.
nugroho2 said:
Unable to install official TWRP in Redmi 8, Miui 11.0.7. It installed. and then vanished when rebooted. and then boot looped. Had to flash original recovery and boot img to reboot.
Had made sure that I didn't boot to system after flashing TWRP. and boot to recovery instead. It flashed okay. Could use the root after installing Magisk. But on reboot, all was gone. Boot looped.
Click to expand...
Click to collapse
Hello,
Did you reboot via button combo or fastboot reboot?
I read somewhere that Magisk is to be flashed before reboot.
Anyway, you will succeed.
I follow you because I am at 100 h to unlock.
soket1 said:
TWRP.zip
Instructions from Altsec
Install TWRP from Redmi 8a
It's ONLY for redmi 8 with dispay Tianma !!!
Other display needed otg + mouse.
Attention! Unlocked Bootloader Required !!!
1. Download Attached file twrp.zip
2. Unpack to the root of the disk (I had C: \ TWRP \)
3. Restart the phone to fastboot mode (Volume - and Power at the same time)
4. In the folder we find flash.bat, run it, it will flash two files vbmeta and recovery
5. The device will reboot, after rebooting you can boot into the recovery manually Volume + and Turn On Simultaneously
Click to expand...
Click to collapse
Thank you

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