How to update without losing TWRP and root? - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Hello, I have a Mi 9T Pro with 10.3.3, TWRP and Magisk. I received the update to 10.4.0. As stated in the title, how could I update the system without losing the TWRP and root through Magisk? Thank you in advance

MagikGab said:
Hello, I have a Mi 9T Pro with 10.3.3, TWRP and Magisk. I received the update to 10.4.0. As stated in the title, how could I update the system without losing the TWRP and root through Magisk? Thank you in advance
Click to expand...
Click to collapse
You can't. The best way to update is to download the 10.4.0 recovery ROM, then flash that in TWRP. This will still overwrite Magisk, so you will need to install that again straight after installing the update. If you don't install Magisk immediately, then booting into system would also restore stock recovery, so it needs to be done before you reboot to system.

Robbo.5000 said:
You can't. The best way to update is to download the 10.4.0 recovery ROM, then flash that in TWRP. This will still overwrite Magisk, so you will need to install that again straight after installing the update. If you don't install Magisk immediately, then booting into system would also restore stock recovery, so it needs to be done before you reboot to system.
Click to expand...
Click to collapse
Many thanks! In this way I could at least save the TWRP! Should I have to take some other precautions? Like deactivate all Magisk modules, perform a backup of apps ecc?

i have the same question too..

MagikGab said:
Many thanks! In this way I could at least save the TWRP! Should I have to take some other precautions? Like deactivate all Magisk modules, perform a backup of apps ecc?
Click to expand...
Click to collapse
No, you can simply flash the ROM and right after that, flash Magisk. This way you won't loose twrp or Magisk.

MagikGab said:
Many thanks! In this way I could at least save the TWRP! Should I have to take some other precautions? Like deactivate all Magisk modules, perform a backup of apps ecc?
Click to expand...
Click to collapse
P12AV33N said:
No, you can simply flash the ROM and right after that, flash Magisk. This way you won't loose twrp or Magisk.
Click to expand...
Click to collapse
I would just add to this that, although this is all that is required, I would still backup things, just in case.
It's always good practice when flashing things to backup what you can, even when it's not needed should things go smoothly. It only takes an absent minded moment of stupidity in TWRP to do some serious damage. As many people, myself included, can vouch for.

Thank you everyone!

I've read a lot about this, some say it's better with fastboot rom and Miflash, but twrp method with recovery seems to be easier method.
Can anybody confirm is it necessary to remove compatibility.zip file from flashable zip file before flashing?
Clean flash or dirty should work for 10.3.4.0 update?
I'm using 9T Pro (EU), rooted, stock 10.3.3.0, TWRP 3.3.1-15

macanovic88 said:
I've read a lot about this, some say it's better with fastboot rom and Miflash, but twrp method with recovery seems to be easier method.
Can anybody confirm is it necessary to remove compatibility.zip file from flashable zip file before flashing?
Clean flash or dirty should work for 10.3.4.0 update?
I'm using 9T Pro (EU), rooted, stock 10.3.3.0, TWRP 3.3.1-15
Click to expand...
Click to collapse
Flashing a minor update is fine to do as a dirty flash in TWRP.
Doing a major update is 50/50 (going from 10.3.x to 10.4.x as it's s change from Android 9 to 10, or going from 10.x.x to 11.x.x). You may be fine, you may have issues. It might be a better option to try using the 'save data' option in the Mi Flash Tool, which is the same as a dirty flash, but will still update vendor and firmware files, should they have changed between the versions.
You might be guided by what the OTA would do. Occasionally when an OTA provides a major version change, it will perform a clean flash and give you big warnings that this will happen first. If an OTA tells you this will happen, then I would definitely use the Mi Flash Tool and use the 'clean all' option.
As for the compatibility zip, it depends on the TWRP you are using. Just try as is first and if your get an error about the wrong device, then remove it and try again.

Thanks a lot, your answers are very helpful in this thread! ?

I got the OTA update to 10.3.4.0 on my Mi 9T Pro, too, but it wouldn't install via TWRP (mauronofrios version 3.3.1-15). I also tried to flash the full 10.3.4.0 ROM (https://bigota.d.miui.com/V10.3.4.0...EAGlobal_V10.3.4.0.PFKEUXM_964826982c_9.0.zip) with TWRP, but that didn't work either, not even after removing compatibility.zip.
I then changed my TWRP to OrangeFox Recovery 10.0_7 stable (via fastboot) and dirty flashed the full ROM via OrangeFox. That worked flawlessly, it even seems that it will be able to install future OTA updates, but that remains to be seen when the next OTA update arrives.

cgdams said:
I got the OTA update to 10.3.4.0 on my Mi 9T Pro, too, but it wouldn't install via TWRP (mauronofrios version 3.3.1-15). I also tried to flash the full 10.3.4.0 ROM (https://bigota.d.miui.com/V10.3.4.0...EAGlobal_V10.3.4.0.PFKEUXM_964826982c_9.0.zip) with TWRP, but that didn't work either, not even after removing compatibility.zip.
I then changed my TWRP to OrangeFox Recovery 10.0_7 stable (via fastboot) and dirty flashed the full ROM via OrangeFox. That worked flawlessly, it even seems that it will be able to install future OTA updates, but that remains to be seen when the next OTA update arrives.
Click to expand...
Click to collapse
You need to confirm if orangefox is actually ready for OTA by checking in its settings.
Sent from my Redmi K20 Pro using Tapatalk

Related

OTA update with root and TWRP?

hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
RotesMeerJogger said:
hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
Click to expand...
Click to collapse
I have a detailed thread already running on how to update here
http://forum.xda-developers.com/oneplus-3t/how-to/rom-oxygenos-3-5-4-mm-ota-update-t3519074
I shall keep it up to date with further releases
Sent from Funk Tuned 3T
okay, i have searched in the wrong category thanks a lot for the link!
this thread can be closed.
how can i receive the updates when i root my phone?
and is there anyway to change the emoji without root?
a7mad-911 said:
how can i receive the updates when i root my phone?
Click to expand...
Click to collapse
You should still receive OTA notifications with root. And it should detect you have root, and will download the full update zip, and it will install with TWRP.
Otherwise, you can manually download the full zip update from Funk WIzard's thread which he linked in Post #2 above (which also has detailed instructions on how to update when rooted and TWRP installed).
Works like a charm with magisk 13.6
I just did it with my OP3t and was super easy.
1) download update.
2) go to hidden folder .Ota
3) move zip file to another folder
4) put Magisk in the folder, too
5) reboot to recovery, flash ROM, then Magisk
6) wipe dalvik/cache and reboot
Edit: updated following testing of redpoint73's correct advice
LeighR said:
4) put twrp and Magisk in the folder, too
5) reboot to recovery, flash ROM, then twrp, then Magisk
Click to expand...
Click to collapse
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
redpoint73 said:
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
Click to expand...
Click to collapse
This means I will keep all apps/settings/files?
Thank you.
JayDz said:
This means I will keep all apps/settings/files?
Click to expand...
Click to collapse
Yes.
Although I will caveat that with my rule of thumb: "hope for the best, prepare for the worst". In that a "dirty" flash of an update is often possible (saving your a lot of work setting up the device again). But you should still be prepared to wipe and do a "clean" install if you run into any problems. So back up your data, by your method of choice, before you try to update.
In particular, for a major update (such as OOS 4.x to 5.x) a clean install (default wipe in TWRP - data, cache and Dalvik) is typically advised.
Shall?? You used the word 'shall' properly in context? Kudos to the school system (I here assume India's) you attended, and to you for paying attention, using the 'King's English' in it's most proper form.

Working TWRP for Mi9T Pro on Android 10 (QFKEUXM) **SOLVED**

Now that we have finally got the update in the EU region I want to know if anyone has successfully flashed TWRP or any other recovery?
In case anyone wondering I have managed to get root with the latest magisk via patched boot image method.
**UPDATE**
I flashed the latest TWRP from this thread and all went smoothly. Also managed to get Viper4android working which was my biggest concern coming from Android 9. Happy days :victory:
_ray_ said:
Now that we have finally got the update in the EU region I want to know if anyone has successfully flashed TWRP or any other recovery?
In case anyone wondering I have managed to get root with the latest magisk via patched boot image method.
Click to expand...
Click to collapse
I'm currently on MIUI 10.3.4.0 Stable with OrangeFox Recovery installed, Going to attempt updating later since, afaik, OrangeFox has Support for OTA Updates.
Fatal_Scythe said:
I'm currently on MIUI 10.3.4.0 Stable with OrangeFox Recovery installed, Going to attempt updating later since, afaik, OrangeFox has Support for OTA Updates.
Click to expand...
Click to collapse
Good luck and please do post back the results :good:
Fatal_Scythe said:
I'm currently on MIUI 10.3.4.0 Stable with OrangeFox Recovery installed, Going to attempt updating later since, afaik, OrangeFox has Support for OTA Updates.
Click to expand...
Click to collapse
Waiting for your feedback, because my orangefox is ready for OTAs but i think because i forgot to check DM VERITY and FORCED ENCRYPTION it asks for password when rebooting for update and ruins it...this is my guess. So please share your feedback and it you checked the 2 options unlike me.
Sent from my Redmi K20 Pro using Tapatalk
I'm also interested in this. I want to keep TWRP and magisk post-upgrade to Android 10
I updated with no issued with the following steps:
1. Installed latest TWRP from here https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363
2. Download latest Magsik
3. Download recovery zip for miui 11 rom
4. Reboot to recovery
5. Install rom zip ( do not reboot after install)
6. Install Magsik
7. Install TWRP img via recovery that you downloaded in step 1
8. Reboot into TWRP
9. Reboot to system
_ray_ said:
Good luck and please do post back the results :good:
Click to expand...
Click to collapse
ishaqtkr said:
Waiting for your feedback, because my orangefox is ready for OTAs but i think because i forgot to check DM VERITY and FORCED ENCRYPTION it asks for password when rebooting for update and ruins it...this is my guess. So please share your feedback and it you checked the 2 options unlike me.
Click to expand...
Click to collapse
Okay so, coming from 10.3.4.0 Stable, OFox Recovery and encrypted, the update ran through fine without any problems. Since I'm encrypted I had to enter my password first but after that it started installing the Update. as far as I remember, I've seen that Orangefox's script that prevents Orangefox from being overwritten after every update (it's called OTA.bak I think) already handles both DM-Verity and Force-Encrypt on it's own, at least I didn't had to take any further steps regarding Encryption and such stuff and after updating it booted into MIUI 11 just fine (which ofc since it's an Major Update took a little longer than usual but at least it eventually did)
desiresiscool said:
I updated with no issued with the following steps:
1. Installed latest TWRP from here https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363
2. Download latest Magsik
3. Download recovery zip for miui 11 rom
4. Reboot to recovery
5. Install rom zip ( do not reboot after install)
6. Install Magsik
7. Install TWRP img via recovery that you downloaded in step 1
8. Reboot into TWRP
9. Reboot to system
Click to expand...
Click to collapse
So what do you do when you're on 10.3.4 pfkeuxm Rom and running with twrp and magisk installed?
Can't I install the miui 11 rom via twrp and then immediately flash magisk again?
Following the advice here, I've got the update installed with twrp and magisk working fine. The only problem I have is that I can't read/write the system partition so titanium backup isn't working. Any ideas how I could fix it?

Any link for patched and flashed boot image with Magisk for K20 pro?

I cannot root my phone through TWRP for some reason and I would really like to use my phone with Google Pay.
K20 pro, MIUI Global 11.0.1 unlocked bootloader.
Install Magisk yourself. It will work.
Which zip did you flash? The right version of maiden
Magisk will work.
@XblackdemonX I can't install Magisk since it's giving me an error message. Tried every possible way with no luck
@Turbine1991 I have tried install "twrp-3.3.1-15-raphael-mauronofrio"
After installing it the phone is always going back to Stock rom recovery.
@XblackdemonX I can't install Magisk since it's giving me an error message. Tried every possible way with no luck
@Turbine1991 I have tried install "twrp-3.3.1-15-raphael-mauronofrio"
After installing it the phone is always going back to Stock rom recovery.
cohenelad said:
I cannot root my phone through TWRP for some reason and I would really like to use my phone with Google Pay.
K20 pro, MIUI Global 11.0.1 unlocked bootloader.
Click to expand...
Click to collapse
install magisk 19.3
Video install
https://drive.google.com/file/d/16vDfZDWBgtY8_ECB8aRWNed_6mqctY5T/view
 @redmiK20ProIndonesia
Are you rebooting the device after installing TWRP? If you installed TWRP then rebooted without first trying to install Magisk it'll probably just stick the stock recovery back in place and overwrite TWRP if nothing is done to circumvent stock recovery overwrite. If this doesn't apply then no worries but thought I'd mention it.
That's also an old version of TWRP; have you tried a newer version? I'd say try fastboot boot recovery.img then immediately attempt to install Magisk. You're on MIUI11 so you'll want to go with Magisk 19.3.
cohenelad said:
After installing it the phone is always going back to Stock rom recovery.
Click to expand...
Click to collapse
You have to install Magisk to prevent the recovery from changing back to stock.

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

Question Root Mi 11 Ultra

Want to confirm before proceeding, I find this instruction.
How to Root Xiaomi Mi 11 Ultra and Unlock Bootloader
Want to root Xiaomi Mi 11 Ultra with Magisk? Here's how to root Mi 11 Ultra along with a guide to unlock bootloader.
www.ytechb.com
I've already unlocked the bootloader, want to make sure it is safe to do so (won't brick etc)
bump, anybody successfully rooted the phone?
linnil said:
Want to confirm before proceeding, I find this instruction.
How to Root Xiaomi Mi 11 Ultra and Unlock Bootloader
Want to root Xiaomi Mi 11 Ultra with Magisk? Here's how to root Mi 11 Ultra along with a guide to unlock bootloader.
www.ytechb.com
I've already unlocked the bootloader, want to make sure it is safe to do so (won't brick etc)
Click to expand...
Click to collapse
You need to patch to boot image a and boot image b
As descriped here. This worked on my MI11
https://www.getdroidtips.com/root-xiaomi-mi-11/
linnil said:
bump, anybody successfully rooted the phone?
Click to expand...
Click to collapse
Yes. I patched my boot.img with magisk, then flashed it using "fastboot flash boot_ab magisk_patched(boot.img file name).omg"
Caveat: I bricked my device like many others after unlocking the bootloader and flashing xiaomi.eu ROM. I had to have a authorized EDL account holder flash a factory ROM (in my case I had a China variant flashed with the Global ROM), after which I flashed xiaomi.eu latest stable ROM and then rooted it.
does google pay still work after root?
xreactx said:
Caveat: I bricked my device like many others after unlocking the bootloader and flashing xiaomi.eu ROM. I had to have a authorized EDL account holder flash a factory ROM (in my case I had a China variant flashed with the Global ROM), after which I flashed xiaomi.eu latest stable ROM and then rooted it.
Click to expand...
Click to collapse
I still don't get, how you all bricked your phones? I was able to unlock (granted, after 7 days) successfully and update CN with EU-ROM... There's thread for it in this forum.
[ROM][MIUI][star/mars] Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra
How to install Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra We will release fastboot ROM versions until TWRP for star/mars is released TWRP RELEASED Steps to install xiaomi.eu ROM for first time from China ROM (All your data and files on...
forum.xda-developers.com
SanHelios said:
I still don't get, how you all bricked your phones? I was able to unlock (granted, after 7 days) successfully and update CN with EU-ROM...
Click to expand...
Click to collapse
Seems it was an issue with setting the active slot in the installation script. Solution is described here and since then it looks as if no more bricks occur
s3axel said:
Seems it was an issue with setting the active slot in the installation script. Solution is described here and since then it looks as if no more bricks occur
Click to expand...
Click to collapse
Oh thanks, mate. I missed that one..
Now back to issue, does it work, rooting the device the way it is descibred on that page?
SanHelios said:
Oh thanks, mate. I missed that one..
Now back to issue, does it work, rooting the device the way it is descibred on that page?
Click to expand...
Click to collapse
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
s3axel said:
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
Click to expand...
Click to collapse
well, i just rooted it according to the site's instructions.. it booted up, BUT the Safety-Net-Check was negative... Did i miss something?
you n
SanHelios said:
well, i just rooted it according to the site's instructions.. it booted up, BUT the Safety-Net-Check was negative... Did i miss something?
Click to expand...
Click to collapse
you need to hide Magisk Manager and also Magisk hide Google Play, Play services and Google Services Framework
s3axel said:
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
Click to expand...
Click to collapse
I flashed it separately on the second attempt for 12.5.3. The first time I tried flashing the patched boot.img I was greeted with an error.
Hi! I have the latest xiaomi eu weekly installed (21.6.23) as well as unofficial twrp.
I would like to root the phone with magisk, but I don't understand a few things.
Magisk manager require patching the boot.img file from the zip firmware.
I can not just simply install magisk zip file in twrp to root mi11 ultra?
If not, I understand that I have to patch the boot.img- but do I have to do it every time I want to install update of the latest xiaomi.eu firmware?
The second question is about data.
Am I loosing the data by rooting the device by this method?
EDIT:
Ok, I managed. So those are the steps that I did:
I unpacked the boot.img from the xiaomi.eu firmware in my phone. Then I patched the file, and copy this file to the adb installation folder of my pc.
Later it's easy- usb debugging needs to be active in developer options, then connect your phone by the cable to your pc, accept usb debugging in your phone, start CMD in the adb folder in your pc and write the command:
fastboot flash boot_ab nameofthefilewhatmagiskgenerated.img
then
fastboot reboot
And done, root works. Data are untouched.
I did it easier, boot into twrp and flash magisk.zip done
Also I'm on official EEA firmware, with original stock recovery, so doesn't matter what rom you use. On xiaomi EU you don't even need adb because you already have twrp injected
Is there anything to worry about when you update the phone while having root access?
Is the following order right?
1) update Rom over twrp and delete dalvik&cache
2)flash magisk.zip again
3)boot into system
Right ?
I have the latest EU Rom 12.5.7...
Just take this bat with decrypted Star twrp 3.5.1
unzip and klick Install-Star.bat
fastboot boot star.img are the commands in there
xNAPx said:
I did it easier, boot into twrp and flash magisk.zip done
Click to expand...
Click to collapse
how did you get twrp on your mi 11??? I cannot find a working method. I have Global ver
ottjoshua said:
how did you get twrp on your mi 11??? I cannot find a working method. I have Global ver
Click to expand...
Click to collapse

Categories

Resources