Official Miui and TWRP - Xiaomi Mi Max 2 Questions & Answers

I plan to flash a custom recovery over my official global dev miui instead of the stock recovery.
I read that I have to disable dm-verity in TWRP Or flash lazy-flasher to avoid bootloop (some even say do both)
My question is when I update via OTA will I lose TWRP and be back to stock recovery?
Or does the OTA leave my modifications (recovery, root, lazy flasher) intact?
Sent from my MI MAX 2 using Tapatalk

Voidablazer said:
I plan to flash a custom recovery over my official global dev miui instead of the stock recovery.
I read that I have to disable dm-verity in TWRP Or flash lazy-flasher to avoid bootloop (some even say do both)
My question is when I update via OTA will I lose TWRP and be back to stock recovery?
Or does the OTA leave my modifications (recovery, root, lazy flasher) intact?
Sent from my MI MAX 2 using Tapatalk
Click to expand...
Click to collapse
u can still update MIUI via OTA but after every update ull have to flash twrp again and re-root.

Related

OTA update with TWRP

Hi,
I have done root using TWRP and set TWRP as permanent recovery.
Now, yesterday new EUI 5.8.x OTA is downloaded but not able to flash it.
kindly guide how to update using TWRP.
acharya.tejas said:
Hi,
I have done root using TWRP and set TWRP as permanent recovery.
Now, yesterday new EUI 5.8.x OTA is downloaded but not able to flash it.
kindly guide how to update using TWRP.
Click to expand...
Click to collapse
For OTA updates you need stock recovery
Or download the full rom and flash thorthrough twrp
Yes i agree. You need one of the above mentions. Either you should have a stock rom or flash the whole firmware update version.
Sent from my Le X526 using Tapatalk

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.

OTA updates after unlocking bootloader

Hey guys I'd like to know if i can have OTA updates after unlocking bootloader (NO TWRP & ROOT).
live4speed said:
Hey guys I'd like to know if i can have OTA updates after unlocking bootloader (NO TWRP & ROOT).
Click to expand...
Click to collapse
based on other phones i would say yes, but dont quote me on that ^^
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Can anyone confirm this? There's a new OTA update available for mi max 2 but I'm not updating coz I'm waiting for 72 hours to complete so I can unlock bootloader. I'm kinda worried that if I update my device to miui 9.2 I might have problem unlocking my bootloader. So I'm thinking to unlock my bootloader first & then update my device thru OTA update.
I've got them but don't launch the upgrade because, if I do that, it remove my twrp by re-flashing xioami stock recovery.
I've got a global beta rom, bootloader unlocked, twrp installed and rom rooted.
lightman33 said:
I've got them but don't launch the upgrade because, if I do that, it remove my twrp by re-flashing xioami stock recovery.
I've got a global beta rom, bootloader unlocked, twrp installed and rom rooted.
Click to expand...
Click to collapse
oh wow, so even with all that ota updates are possible, good to know
flashing twrp isnt a big deal though, just boot into fastboot, connect to pc and input a command, thats it not like u need hours of work to get it done
would be interesting to know if the rom gets unrooted on update.
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
I received a phone with an unlocked bootloader. It just received V9.0.3.0.NDDMIEI
I don't know if it's just the China model reflashed with the English ROM or what, but it's definitely got an unlocked bootloader and I'm not sure why.
ZHNN said:
I received a phone with an unlocked bootloader. It just received V9.0.3.0.NDDMIEI
I don't know if it's just the China model reflashed with the English ROM or what, but it's definitely got an unlocked bootloader and I'm not sure why.
Click to expand...
Click to collapse
lucky you, no need to unlock BL anymore
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
jbmc83 said:
lucky you, no need to unlock BL anymore
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Click to expand...
Click to collapse
Am I correct in thinking that the update would have reflashed the recovery area and eliminated anything that didn't belong? I put TWRP on it and I'm going to load a stock ROM through TWRP.
I'm wondering whether I've gotten ahead of myself and I should have gone Stock ROM-->TWRP-->Stock ROM with root.
I'm also not sure if the rooted stock ROM will allow me to enable LTE bands just by changing NVRAM settings in QPST. Does anyone know if the bands are blocked in MIUI as well?
I run unlocked boot loader, global stable and Magisk.
Every OTA, I gotta reflash TWRP, and reinstall Magisk, but yeah, I can OTA.
Chisame said:
I run unlocked boot loader, global stable and Magisk.
Every OTA, I gotta reflash TWRP, and reinstall Magisk, but yeah, I can OTA.
Click to expand...
Click to collapse
How do you install OTA? from the updater app in the device OR full Rom in twrp?
I just use the updater app, it reboots, and then proceeds to flash and remove TWRP and Magisk.
The only time that I've used TWRP is to flash Magisk.
Just I want. I only need TWRP to flash Magisk to enable use of Titanium Backup Pro and any adsblocker.
So Flashing TWRP via fastboot, then using TWRP flash Magisk. Use mobile as usually and when i update via OTA, reflash TWRP and Magisk, true?
EDIT: After flashing Magisk, flash stock recovery via fastboot so mobile is ready to OTA update. Right?
Chisame said:
I just use the updater app, it reboots, and then proceeds to flash and remove TWRP and Magisk.
The only time that I've used TWRP is to flash Magisk.
Click to expand...
Click to collapse
Yeah, just choose to download the full rom press reboot and it'll upgrade, then flash TWRP and Magisk again.
Chisame said:
Yeah, just choose to download the full rom press reboot and it'll upgrade, then flash TWRP and Magisk again.
Click to expand...
Click to collapse
so you are saying ota update through updater app is not working?
do i need mi app on pc to update,that too after downloading the full rom for every update?
status: bl UNLOCKED ,root-NO
I dont think so, if you allow replacement of twrp by stock recovery after magisk flashing i think it should be possible install ota using update app. When its done, then reflash twrp and magisk from it.
sirarisma said:
I dont think so, if you allow replacement of twrp by stock recovery after magisk flashing i think it should be possible install ota using update app. When its done, then reflash twrp and magisk from it.
Click to expand...
Click to collapse
It works. unless something is modified in system partition
Right.
reversegear said:
It works. unless something is modified in system partition
Click to expand...
Click to collapse
I have redmi note 11 pro (china) which it's bootloader unlocked and installed global miui rom cause with stock recovery and not rooted so will I receive OTA updates?
And is there anything I should do specifically for this case while updating the phone

Requesting help for updating to V9.2.1.0.NDDMIEK on Magisk-ed Oxygen

Hi, I'm currently running MIUI Global 9.0 Stable 9.0.3.0 (NDDMIEI) in my Mi Max 2.
I have followed the guide to install the TWRP 3.1.1 and have rooted via Magisk method and running it.
I have received the OTA update V9.2.1.0.NDDMIEK and is downloaded automatically.
I'm guessing I can't install this OTA downloaded update via TWRP? Do I have to wait for the flashable zip of this update?
Or should I unroot, flash stock recovery and then do the OTA update, and then repeat the TWRP and Magisk again?
Thank you for any help.
I have same problem. Anybody can help ? Thanks !
Sent from my MI MAX 2 using Tapatalk
amgreenhawk said:
Hi, I'm currently running MIUI Global 9.0 Stable 9.0.3.0 (NDDMIEI) in my Mi Max 2.
I have followed the guide to install the TWRP 3.1.1 and have rooted via Magisk method and running it.
I have received the OTA update V9.2.1.0.NDDMIEK and is downloaded automatically.
I'm guessing I can't install this OTA downloaded update via TWRP? Do I have to wait for the flashable zip of this update?
Or should I unroot, flash stock recovery and then do the OTA update, and then repeat the TWRP and Magisk again?
Thank you for any help.
Click to expand...
Click to collapse
You can let it update, with no problem at all. After you hit the restart to apply update button, it will direct you to TWRP and you can flash the OTA update using twrp. It will not cause bootloop, or whatsoever. You will just need to hit the restart button after TWRP have flashed the OTA and it will reboot to apply update. However, you will need to flash TWRP again if you didn't change something in the terminal cuz Miui recovery will replace twrp. It's like a code to make TWRP to replace MIUI recovery permanently. ( It has a guide somewhere in this forum to teach you how to use TWRP to replace MIUI recovery permanently) Ok, so if you didn't change the code, you have to flash TWRP everytime you update via OTA. I flash TWRP again and again nearly every week after OTA cuz I'm on developer rom and developer rom nearly updates every week. So the main point is, no worries ya. You can go ahead and flash the OTA as it won't cause bootloop.
Chip Liang said:
You can let it update, with no problem at all. After you hit the restart to apply update button, it will direct you to TWRP and you can flash the OTA update using twrp. It will not cause bootloop, or whatsoever. You will just need to hit the restart button after TWRP have flashed the OTA and it will reboot to apply update. However, you will need to flash TWRP again if you didn't change something in the terminal cuz Miui recovery will replace twrp. It's like a code to make TWRP to replace MIUI recovery permanently. ( It has a guide somewhere in this forum to teach you how to use TWRP to replace MIUI recovery permanently) Ok, so if you didn't change the code, you have to flash TWRP everytime you update via OTA. I flash TWRP again and again nearly every week after OTA cuz I'm on developer rom and developer rom nearly updates every week. So the main point is, no worries ya. You can go ahead and flash the OTA as it won't cause bootloop.
Click to expand...
Click to collapse
Sory but I can't update update.Zip file via TWRP. Is errors. I think the update.zip file only could update via miui stock recovery or we must modified update.zip file for updade via TWRP.
Sent from my MI MAX 2 using Tapatalk
LP.DUKU said:
Sory but I can't update update.Zip file via TWRP. Is errors. I think the update.zip file only could update via miui stock recovery or we must modified update.zip file for updade via TWRP.
Click to expand...
Click to collapse
Hmm....wait. So you go to TWRP and flash the rom? I mean, you manually reboot into recovery, and then manually flash the OTA? It can't be done like that, for sure will get error. What i meant and what i always did is let the download manager downloaded the OTA package( The download manager is in the "about phone" section), then after done downloading, press reboot and it will automatically direct you to TWRP and it flashes the OTA packages automatically and will be succesful. But if your problem still persists, i have no idea what's going on. Maybe the global rom OTA packages is different from Developer's one.
As for me, the first time my phone downloaded the incremental update which was a few hundred MB in size, when I pressed update, it went to TWRP. But from there nothing happened. It just showed the home screen of the TWRP. After waiting for a few minutes, I simply rebooted using TWRP's menu.
When returned to system, the phone said the update was not successful and mentioned something about downloading full rom. When I woke up, it had completed download the full rom which is 1.43GB.
I haven't updated yet, using MIUI menu, until I want to make sure how to correctly update without problems.
I don't mind reflashing TWRP and and MAGISK again, though. Just wanted to update without getting into some sort of trouble which may prolong the process of getting back to normal working status.
Just made a TWRP backup.
Thanks for any suggestions.
Chip Liang said:
Hmm....wait. So you go to TWRP and flash the rom? I mean, you manually reboot into recovery, and then manually flash the OTA? It can't be done like that, for sure will get error. What i meant and what i always did is let the download manager downloaded the OTA package( The download manager is in the "about phone" section), then after done downloading, press reboot and it will automatically direct you to TWRP and it flashes the OTA packages automatically and will be succesful. But if your problem still persists, i have no idea what's going on. Maybe the global rom OTA packages is different from Developer's one.
Click to expand...
Click to collapse
Oh. Sorry ! I understanded what you mean. I was trying this yesterday.Miui just download a page.zip 254MB after press restart,my device auto boot to twrp and...... nothing happened [emoji23]. And just now, I do it again. Miui download a Page.zip 1.4 GB and after I press reboot. My device booted to TWRP and automatic install update. And after restart system, now my device has updated to miui ver 9.2.1.0 ? .thanks !
Sorry. My English is very bad
Sent from my MI MAX 2 using Tapatalk
LP.DUKU said:
Oh. Sorry ! I understanded what you mean. I was trying this yesterday.Miui just download a page.zip 254MB after press restart,my device auto boot to twrp and...... nothing happened [emoji23]. And just now, I do it again. Miui download a Page.zip 1.4 GB and after I press reboot. My device booted to TWRP and automatic install update. And after restart system, now my device has updated to miui ver 9.2.1.0 ? .thanks !
Sorry. My English is very bad
Click to expand...
Click to collapse
Wow, I'm so glad and happy that i solve your problem!? As for your English, bro, it's ok? I'm a Malaysian and English as well is not my native language. Just we can understand each others it's ok already.:victory:
---------- Post added at 08:48 AM ---------- Previous post was at 08:46 AM ----------
amgreenhawk said:
As for me, the first time my phone downloaded the incremental update which was a few hundred MB in size, when I pressed update, it went to TWRP. But from there nothing happened. It just showed the home screen of the TWRP. After waiting for a few minutes, I simply rebooted using TWRP's menu.
When returned to system, the phone said the update was not successful and mentioned something about downloading full rom. When I woke up, it had completed download the full rom which is 1.43GB.
I haven't updated yet, using MIUI menu, until I want to make sure how to correctly update without problems.
I don't mind reflashing TWRP and and MAGISK again, though. Just wanted to update without getting into some sort of trouble which may prolong the process of getting back to normal working status.
Just made a TWRP backup.
Thanks for any suggestions.
Click to expand...
Click to collapse
Just try the method again and see if that solves your problem!:laugh:
Yes, reflashing again with the full rom worked.
Now, to reflash TWRP and MAGISK again.
Thank you!
amgreenhawk said:
Yes, reflashing again with the full rom worked.
Now, to reflash TWRP and MAGISK again.
Thank you!
Click to expand...
Click to collapse
You're welcome!:victory:
just in case you guys havent seen it yet: there is a thread in the rom & kernel section that offers stock miui roms as regular twrp flashable zips
link:
https://forum.xda-developers.com/showthread.php?p=75360690
oh and btw, this thread belongs into the questions/answers/help section, not the rom & kernel section
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
amgreenhawk said:
Hi, I'm currently running MIUI Global 9.0 Stable 9.0.3.0 (NDDMIEI) in my Mi Max 2.
I have followed the guide to install the TWRP 3.1.1 and have rooted via Magisk method and running it.
I have received the OTA update V9.2.1.0.NDDMIEK and is downloaded automatically.
I'm guessing I can't install this OTA downloaded update via TWRP? Do I have to wait for the flashable zip of this update?
Or should I unroot, flash stock recovery and then do the OTA update, and then repeat the TWRP and Magisk again?
Thank you for any help.
Click to expand...
Click to collapse
Hope this helps to https://forum.xda-developers.com/showpost.php?p=75446250&postcount=5 i'm updating the OTA updates with same methods.
jbmc83 said:
just in case you guys havent seen it yet: there is a thread in the rom & kernel section that offers stock miui roms as regular twrp flashable zips
link:
https://forum.xda-developers.com/showthread.php?p=75360690
oh and btw, this thread belongs into the questions/answers/help section, not the rom & kernel section
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Click to expand...
Click to collapse
the link you have provided is not a stock miui rom updates. its only the twrp flashable firmware update packages which is very helpful for people using custom roms. custom rom users can update firmware packages without flashing stock MIUI for each MIUI update
reversegear said:
Hope this helps to https://forum.xda-developers.com/showpost.php?p=75446250&postcount=5 i'm updating the OTA updates with same methods.
the link you have provided is not a stock miui rom updates. its only the twrp flashable firmware update packages which is very helpful for people using custom roms. custom rom users can update firmware packages without flashing stock MIUI for each MIUI update
Click to expand...
Click to collapse
no need for custom roms, u only need twrp. so if u prefer twrp flashing but still keeping stock miui firmware, this is a nice option. other than the twrp install routine there is nothing changed in those roms.
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
jbmc83 said:
no need for custom roms, u only need twrp. so if u prefer twrp flashing but still keeping stock miui firmware, this is a nice option. other than the twrp install routine there is nothing changed in those roms.
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Click to expand...
Click to collapse
FYI this links does not contains any roms. its only the firmware folder extraction. if you are in stock rom then these firmware folder is updated via OTA or recovery flashable updates
reversegear said:
FYI this links does not contains any roms. its only the firmware folder extraction. if you are in stock rom then these firmware folder is updated via OTA or recovery flashable updates
Click to expand...
Click to collapse
i just noticed: i posted the wrong link!
here is the thread that i was actually talking about: https://forum.xda-developers.com/showthread.php?p=75360690
sorry about the mix up
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk

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

Categories

Resources