How do I save my root after flashing miui10 beta Rom? - Xiaomi Redmi 4a Questions & Answers

I am using Redmi 4a . Rooted with magisk and recovery is Twrp. It. I don't want to lose root access after update. tried FlashFire but it crashes when I open it .
Help appreciated !

I'm using miui10 (beta) developper Rom (miui_HM4AGlobal_8.10.25_d36c3e7df5_7.1.zip) and it is true that a big update (mean when it's the entire ROM) replaces twrp and crashes root.
You just have to install again twrp with fastboot method in order to flash SuperSu (the one i use) in order to retrieve root.
https://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

Hi, when used to use MIUI i installed pitchblack recovery and after the miui update it didnĀ“t dissapeared so there is no need to always flash the recovery but the magisk fil you have to install again because the update flashs the stock boot img.

Related

[GUIDE] ZE500KL | Bootloader Unlock - Lock | Root - Magisk | Custom - RAW Rom |Xposed

How to Unlock Bootloader - (Marshmallow)
This TWRP will automatically unlock bootloader
To relock bootloader, flash relock_bootloader.zip via twrp recovery
Download this recovery: https://github.com/sabpprook/androi...ses/download/3.0.2-0/twrp-3.0.2-0-ze500kl.img
Boot it in fastboot mode with this command:
Code:
fastboot boot twrp-3.0.2-0-ze500kl.img
How to Relock Bootloader
If you flash a raw rom bootloader will be locked.
To do this, download Asus Flash Tool(AFT) and Asus RAW rom file and flash raw rom.
AFT: ASUS.Flash.Tool.v1.0.0.45-ATD-20160913.zip
RAW Rom: WW_ZE500KL_13.1010.1612.53_M3.6.51_Phone-user.raw.zip
How to Downgrade from MM to Lollipop
Flash this rom with AFT:
WW_ZE500KL_V12.8.5.222_M3.6.42_Phone-user.raw.zip
How to Root
Download this recovery: https://github.com/sabpprook/androi...ses/download/3.0.2-0/twrp-3.0.2-0-ze500kl.img
Boot it in fastboot mode with this command:
Code:
fastboot boot twrp-3.0.2-0-ze500kl.img
Dowload latest magisk version from this thread(now 13.3): https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Copy Magisk-v13.3.zip to phone. Install this file from TWRP.
If you need install Latest Magisk Manager from same thread.
If your magiskhide doesn't work properly (for safetynet and CTS error too) install this module: Universal SafetyNet Fix | Universal Hide
Custom Roms - LineageOS 14.1, AOKP, ResurrectionRemix, Beanstalk, CyanogenMod 13
Follow this thread to download roms: https://forum.xda-developers.com/showpost.php?p=70133925&postcount=2
Download rom and install it via TWRP.
How to Install Xposed Framework
Download and install this installer/downloader: https://forum.xda-developers.com/xposed/material-design-xposed-installer-t3137758
Note that you must install systemless xposed if you use magisk.
SDK21 is Android 5.0 (Lollipop), SDK22 is Android 5.1 (also Lollipop) and SDK23 is Android 6.0 (Marshmallow).
Raw Roms
WW_ZE500KL_13.1010.1612.53_M3.6.51_Phone-user.raw.zip"]Latest Marshmallow Rom
WW_ZE500KL_V12.8.5.222_M3.6.42_Phone-user.raw.zip"]Latest Lollipop Rom
How to Flash TWRP Recovery
To flash downloaded twrp recovery:
Code:
fastboot flash recovery twrp-3.0.2-0-ze500kl.img
Press enter and wait 30 seconds.
Recommended installation:
Install TWRP (Only for custom ROMs)
Install Rom (Custom or Stock)
Install Xposed (Only for 5.0, 5.1 or 6.0)
Install Magisk (If you need root)
Install Magisk Universal Hide Module (If you need to pass Safetynet)
Thanks sooooo much!! You literally saved my phone! I got it bricked after dozens of attempts found on the internet and your method worked like a charm!! Thanks again!
to root should i install twrp and then magisk or can i do it with stock recovery?
Can you do a step by step please? (im really new at this and scared to brick the phone hahaha)
If i have to install twrp can you tell me how to backup the stock recovery from my phone just in case i have to go back to stock recovery?
yoelnico said:
to root should i install twrp and then magisk or can i do it with stock recovery?
Can you do a step by step please? (im really new at this and scared to brick the phone hahaha)
If i have to install twrp can you tell me how to backup the stock recovery from my phone just in case i have to go back to stock recovery?
Click to expand...
Click to collapse
Follow "How to Root" section.
It's for your situation.
Hi,when i try to boot recovery it says that device must be unlocked..i'm trying to revive my ZE550KL,of course,with it's version of TWRP
Marius_Kun said:
Hi,when i try to boot recovery it says that device must be unlocked..i'm trying to revive my ZE550KL,of course,with it's version of TWRP
Click to expand...
Click to collapse
Yeh the same for me can we have a way to resolve this.
Thank you
i want to ask, is this works with ze500CL? i want to unlock bootloader with this way
Hey, Since Asus Unlock Tool doesnt work any way to unlock?

Unable to update to MIUI 9

Hello guys.
I've just tried to update to MIUI 9.0.1.0 NDDMIEI from MIUI 8.5.9.0 NDDMIED on device Xiaomi Mi Max 2 but it failed.
I have an unlocked bootloader and SuperSu installed, but the recovery is Mi Stock Recovery. :cyclops:
I had directly booted TWRP Recovery without flashing using
Code:
fastboot boot twrp.img
to flash SuperSu on device. :good:
Need support with this issue. I don't want to flash whole ROM every time I recieve an update.
steve.24 said:
Hello guys.
I've just tried to update to MIUI 9.0.1.0 NDDMIEI from MIUI 8.5.9.0 NDDMIED on device Xiaomi Mi Max 2 but it failed.
I have an unlocked bootloader and SuperSu installed, but the recovery is Mi Stock Recovery. :cyclops:
I had directly booted TWRP Recovery without flashing using
Code:
fastboot boot twrp.img
to flash SuperSu on device. :good:
Need support with this issue. I don't want to flash whole ROM every time I recieve an update.
Click to expand...
Click to collapse
i successfully flashed to miui v9(V9.0.1.0.NDDMIEI) over miui v8(V8.5.8.0.NDDMIED) without data wipe. all my data were intact
Keep a backup just in case
make sure you downloaded recovery flashable full rom package ~1.38GB (not the 500mb OTA update )
donot wipe data/cache/dalvik
flash via TWRP recovery
just flashing rom wont boot due to dm-verity. (result will be bootloop)
u need to flash super user or magisk (or lazy flasher "ive not tried though" ) which patches boot.img which makes rom bootable
reversegear said:
i successfully flashed to miui v9(V9.0.1.0.NDDMIEI) over miui v8(V8.5.8.0.NDDMIED) without data wipe. all my data were intact
Keep a backup just in case
make sure you downloaded recovery flashable full rom package ~1.38GB (not the 500mb OTA update )
donot wipe data/cache/dalvik
flash via TWRP recovery
just flashing rom wont boot due to dm-verity. (result will be bootloop)
u need to flash super user or magisk (or lazy flasher "ive not tried though" ) which patches boot.img which makes rom bootable
Click to expand...
Click to collapse
I'll give it a try. Currently I have data wiped and installed full ROM through fastboot method. So next time, for sure I'll give it a shot.
But I have a doubt, where TWRP be able to flash an MIUI ROM. I mean the bootloader unlocked, encrypted system partition and all.
Since you have your device rooted, first install flashify, and backup your stock recovery. Then you can flash twrp recovery and install Miui 9, and root the device again. Last, install flashify again and restore your stock recovery.
scholastova said:
Since you have your device rooted, first install flashify, and backup your stock recovery. Then you can flash twrp recovery and install Miui 9, and root the device again. Last, install flashify again and restore your stock recovery.
Click to expand...
Click to collapse
Can you give stock recovery from mi max 2? I forgot to back up his original recovery stock and was hit with twrp.

Global Stable 10.0.3.0 and TWRP Encryption

Hello guys. Yesterday ( October 30th) I had a notification about upgrading from 10.0.2.0 to 10.0.3.0. I was rooted with Magisk, and after the update the root privileges were gone. I tried to boot to TWRP again, but it stays encrypted without asking for password as usual, so I am unable to flash the zip and root again. Is it ok if I use the boot.img in order to install via patched_boot?As for now there isn't 10.0.3.0 firmware available for download in order to extract it. Thank you for your time.
I am also interested about update with Magisk
GeorgeKatsi said:
Hello guys. Yesterday ( October 30th) I had a notification about upgrading from 10.0.2.0 to 10.0.3.0. I was rooted with Magisk, and after the update the root privileges were gone. I tried to boot to TWRP again, but it stays encrypted without asking for password as usual, so I am unable to flash the zip and root again. Is it ok if I use the boot.img in order to install via patched_boot?As for now there isn't 10.0.3.0 firmware available for download in order to extract it. Thank you for your time.
Click to expand...
Click to collapse
You can flash patched_boot to get the TEMP magisk working before the new twrp available for 10.0.3.0
Code:
fastboot boot patched_boot.img
The boot image can be patched via magisk by yourself or you can use mine from 20181104_mi8_10.0.3.0_patched_boot.img
Remember this TEMP solution fails after rebooting. Or you fastboot boot patched_boot.img every rebooting.
Hello ich have the Same Problem, can U Tell step by step how to do that?
Ich want to flash custom Rom
same issue im on miui.eu 10.0.8.0 with encryption enabled.
Booting into recovery TWRP does not ask for passcode to decrypt data
mikefallen said:
same issue im on miui.eu 10.0.8.0 with encryption enabled.
Booting into recovery TWRP does not ask for passcode to decrypt data
Click to expand...
Click to collapse
I flashed the patched_boot made by magisk, but I am still unable to decrypt twrp. I hope they support 10.0.3.0 soon so I can use twrp again.

Miui 12 QFKEUXM

Received an update today , if i use standart ota updater via settings, does it overwrite the twrp and root stuff i have or it wont? Coz i never done this before, always using custom roms and now latest stock miui 11 with root.
You could flash the zip rom through the recovery, but keep in mind this. Let the phone boot with the new update, then go back to recovery (if you get the stock recovery, reflash it with fastboot), then flash magisk
So it is overwriting twrp and magisk even if i install it directly from twrp?
meezy5 said:
Received an update today , if i use standart ota updater via settings, does it overwrite the twrp and root stuff i have or it wont? Coz i never done this before, always using custom roms and now latest stock miui 11 with root.
Click to expand...
Click to collapse
You will loose Magisk/root but not Magisk Manager app and all Magisk data like modules, apps granted root, etc - once you re-root, everything will be there again.
I only suggest that you first un-hide Magisk Manager (if hidden for you), at the end you can hide it again
If you update via OTA, you will loose TWRP. If you don't want to flash TWRP again, then download the same full MIUI 12 zip package you got OTA notification for, and flash it from TWRP (without wiping, formatting or so), and immediately thereafter reboot first back to TWRP, and only then to MIUI 12
If you would like to update truly by OTA, you would have to flash the stock recovery back before starting the OTA.
Hence the way as described above, you save first on flashing stock recovery, and later on flashing TWRP back
Ok thanks so after twrp flash i have to reboot back to twrp , do i have to install force encrypt then to prevent overwriting twrp by miui or not?
meezy5 said:
Ok thanks so after twrp flash i have to reboot back to twrp , do i have to install force encrypt then to prevent overwriting twrp by miui or not?
Click to expand...
Click to collapse
See posts #933, #935-#937 in the TWRP thread:
https://forum.xda-developers.com/showpost.php?p=82945031&postcount=936

Losing Recovery after install Custom ROM

Hi,
I have the following problem.
I was able to install the custom ROM properly on my Mi9t pro. Unfortunately my Orangefox Recovery was deleted After the installation.
If I want to install Magisk now, I have to reflash the recovery first.
Do you have any idea why the recovery is deleted? Is there a way to prevent that?
Thanks in advance.
der_andi01 said:
Hi,
I have the following problem.
I was able to install the custom ROM properly on my Mi9t pro. Unfortunately my Orangefox Recovery was deleted After the installation.
If I want to install Magisk now, I have to reflash the recovery first.
Do you have any idea why the recovery is deleted? Is there a way to prevent that?
Thanks in advance.
Click to expand...
Click to collapse
Your (custom) Recovery was really deleted?
Or replaced by stock Recovery
Who says that installation of Magisk requires custom Recovery?
Magisk documentation (Installation Instructions) - please find it on Magisk Github - certainly not.
Patch the boot.img and flash (it can be flashed by Fastboot, hence custom Recovery is not a must to have)
Hi,
it really gets deleted. My cell phone is then only in fastboot mode.
I am not interested in flashing Magisk either, but rather that recovery after an installation is no longer available. This makes installing updates more cumbersome.
I only have the problem when I flash a custom ROM. when I flash a MIUI ROM from xiaomi.eu Beta, the recovery is retained.

Categories

Resources