I have read basically all the posts here on xda related to this matter. But, being a noob in "rom,kernel, recovery" world, I need to get spoon-fed in some area. Can any kindhearted fellow answer the following questions?
1. I will always use latest official MIUI global beta rom. I need to have the MOST stable custom recovery installed all the time (preferably TWRP official if possible). I want to receive OTA and flash them via custom recovery. Can it be done? if so, what are the MOST hassle-free steps? (want to have root for sum lucky pather action)
2. What are these "encryption", "force disable encryption treble" stand for and what it means for a user like me who wants to run latest Magisk all the time with custom recovery?
3. I can manage to flash OTA and then flash magisk again if needed to maintain root status, is that all I need to do before booting into the new updated and rooted system?
If someone can explain and provide insights, that will be a great help.
1. The most hassle free to do OTA updates is to revert back to stock recovery when the update.zip package is ready to be flashed because
2. Every OTA update in MIUI will encrypt /data partition. (This is Xiaomi's standard data protection). I didn't tried to do OTA updates with Official Twrp but you can try. That is why everyone when trying to flash custom rom, flashing DFE.zip (Disable Force Encryption) will of course disables the system to encrypt data during boot.
3. Magisk has OTA survival script so when there is OTA updates, Magisk will automatically install after OTA update is finished.
Related
I'm currently running MIUI 8 global dev ROM with officially unlocked bootloader, and there's a new update for it. Problem is, I rooted my phone already and I'm not sure if updating it will get rid of root. Also, twrp doesn't stick for some reason, so it's not very convenient to just flash SuperSU.zip after updating.
Install zcx recovery (search on MIUI forums )..that'll help you to receive ota updates (so you don't have to download and flash the entire ROM all the time ).if you follow the instructions on installing zcx recovery then that twrp will stick ..after that you can install SuperSU after updating ROM .
Just wanted to post my experience with the recent ota.
Yesterday I received Ota notification for 8.1.2.0 on Global stable mi5
The setup of my mi5 was global stable 8.0.5.0 with systemless supersu n suhide + official twrp
It failed to install couple of times. I tried to open to open the Ota zip, but it was encrypted.
Offical twrp couldn't flash it.
So googled for twrp with miui Ota support.
I found zcx twrp for mi5. It has the feature that supports reboot from updater app to flash Ota.
It failed again but now I can see the failure log in twrp. It was boot size mismatch.
Aah! Xiaomi now checking boot also while flashing Ota.
Left the whole Ota business and downloaded the full ROM and checked it's update script, no checks there! Cool.
Flashed it in twrp, peace of mind.
Whole thing done in 10 mins.
Rooted back again.
Suggestion: don't use incremental Ota unless you have nothing touched in the phone. Better go for full ROM.
But not everybody can afford to download full ROM.
Does anybody know how to decrypt Ota zip? Then atleast I can modify the update script to make it work
Just unlocked the bootloader , latest MIUI global beta. Here are the questions which needs valid answers
1. Need to flash TWRP and root. Which twrp image will not need any encryption disabler flashed every time I flash a rom? please give the link of the most stable and recent version of it.
2. I will flash magisk. How will it behave with OTA on miui global beta?
3. Will I receive OTA update? If I do, how to flash it properly? I dont want to roll back to stock recovery just to flash an ota and then again flash twrp. And I dont want to flash full rom either.
4. If I am able to flash OTA through twrp, do I have to wipe anything? Im asking if I will loose any data or not.
5. As far as I know, I need to unroot everytime before I flash OTA? what does that mean actually? If im rooted, will I not be notified of the OTA update through the updater app? Or do I have to manually downlaod the ota from the web?
6. And one more thing. I dont want the clock on the top left in any screen, lock or home. Which mod will remove the clock and add regular notification icon? (working with miui beta ofcourse)
Sohan_Saymum said:
Just unlocked the bootloader , latest MIUI global beta. Here are the questions which needs valid answers
1. Need to flash TWRP and root. Which twrp image will not need any encryption disabler flashed every time I flash a rom? please give the link of the most stable and recent version of it.
2. I will flash magisk. How will it behave with OTA on miui global beta?
3. Will I receive OTA update? If I do, how to flash it properly? I dont want to roll back to stock recovery just to flash an ota and then again flash twrp. And I dont want to flash full rom either.
4. If I am able to flash OTA through twrp, do I have to wipe anything? Im asking if I will loose any data or not.
5. As far as I know, I need to unroot everytime before I flash OTA? what does that mean actually? If im rooted, will I not be notified of the OTA update through the updater app? Or do I have to manually downlaod the ota from the web?
6. And one more thing. I dont want the clock on the top left in any screen, lock or home. Which mod will remove the clock and add regular notification icon? (working with miui beta ofcourse)
Click to expand...
Click to collapse
I can answer your questions partially.
2 & 3. Flashing TWRP and Magisk will result in OTA zip not being downloaded. Instead, the full ROM will be downloaded automatically.
4. AFAIK, you can't flash the OTA zip through TWRP.
5. If you want the OTA, you will have to be completely stock, no modifications to system files. Only then the OTA zip will download and only then you can flash it. You will ofcourse be notified of the availability of the OTA zip even if you are rooted but it will not download because it does a check of your system before downloading. Only the full zip will download if you are rooted.
It is much easier (atleast for me) to accept the full download and flash it through TWRP and then boot back to TWRP (to preserve it and to avoid overwriting by stock recovery) before booting into system. If you only wipe Dalvik and cache, there is no need to reflash TWRP and Magisk. Ofcourse if TWRP gets overwritten somehow, then flashing it and Magisk again is not a big thing.
tnsmani said:
I can answer your questions partially.
2 & 3. Flashing TWRP and Magisk will result in OTA zip not being downloaded. Instead, the full ROM will be downloaded automatically.
4. AFAIK, you can't flash the OTA zip through TWRP.
5. If you want the OTA, you will have to be completely stock, no modifications to system files. Only then the OTA zip will download and only then you can flash it. You will ofcourse be notified of the availability of the OTA zip even if you are rooted but it will not download because it does a check of your system before downloading. Only the full zip will download if you are rooted.
It is much easier (atleast for me) to accept the full download and flash it through TWRP and then boot back to TWRP (to preserve it and to avoid overwriting by stock recovery) before booting into system. If you only wipe Dalvik and cache, there is no need to reflash TWRP and Magisk. Ofcourse if TWRP gets overwritten somehow, then flashing it and Magisk again is not a big thing.
Click to expand...
Click to collapse
Thanx a bunch. Now I am ready to flash, but not sure which recovery should I use? and what about that force encryption disabler.zip thing? which recovery wont need that thing? its just too complex to flash various things everytime I update miui rom
Sohan_Saymum said:
Thanx a bunch. Now I am ready to flash, but not sure which recovery should I use? and what about that force encryption disabler.zip thing? which recovery wont need that thing? its just too complex to flash various things everytime I update miui rom
Click to expand...
Click to collapse
OrangeFox Recovery has a feature to disable force encryption without flashing the DFE.zip everytime you flash a custom rom.
And it supports MIUI OTA Updates.
Darklouis said:
OrangeFox Recovery has a feature to disable force encryption without flashing the DFE.zip everytime you flash a custom rom.
And it supports MIUI OTA Updates.
Click to expand...
Click to collapse
can i said like this.
unlock bl and install magisk will not lose any feature of MIUI.
how about custom rom? what feature i need to abandon from stock rom?
locolyric said:
can i said like this.
unlock bl and install magisk will not lose any feature of MIUI.
how about custom rom? what feature i need to abandon from stock rom?
Click to expand...
Click to collapse
unlock bl and install magisk will not lose any feature of MIUI.
Click to expand...
Click to collapse
You will not lose any feature
how about custom rom? what feature i need to abandon from stock rom?
Click to expand...
Click to collapse
Some custom roms are AOSP based so all MIUI bloatware or features are not available in AOSP based custom roms.
Darklouis said:
You will not lose any feature
Some custom roms are AOSP based so all MIUI bloatware or features are not available in AOSP based custom roms.
Click to expand...
Click to collapse
from my last experience unlock bootloader will wipe all f my data. is that same on poco f1?
locolyric said:
from my last experience unlock bootloader will wipe all f my data. is that same on poco f1?
Click to expand...
Click to collapse
Ohh yeah.. Unlocking Bootloader will wipe all data (internal partition and data partition) except on the sdcard partition
I have a Moto E 2015 XT1526 with an unlocked bootloader, and TWRP. After trying many roms I finally settled on the stock rom in the interest of having a reliable phone.
The stock rom I flashed isn't the latest so I get the update nag, what happens if I update using this?
I don't mind if it deletes TWRP or kills root I am just worried it will brick the device.
Don't install a stock ota update if you have TWRP... Device will hard brick!
Some users reported that if you want to get ota updates you had to (if i remember):
- Unroot phone and remove all mods
- Install stock recovery
-Get and install ota
Aftee this you can re-install TWRP and other mods.
dxp420 said:
Don't install a stock ota update if you have TWRP... Device will hard brick!
Some users reported that if you want to get ota updates you had to (if i remember):
- Unroot phone and remove all mods
- Install stock recovery
-Get and install ota
Aftee this you can re-install TWRP and other mods.
Click to expand...
Click to collapse
Heard the same and personally wouldn't risk it.
Hello,
Is it possibly to OTA Update a rooted Nord2 5G (DN2103) without TWRP without data loss ?
I rooted it with patched magisk boot image with DN2103_11_A.14 found here on XDA.
Tried OTA update for SN2103_11.A.16 from the phone menu, but got error from updater:
"Could not update: Verification problem" (translated by me, the original english message may be different)
I reverted to stock boot.img but the update fail again with the same error.
Now I am back with the magisk's patched one with root.
Which scenarios I have to update to the A.19 without lost data and without need to install TWRP.
Thanks.
Updated: March 28, 2022
Perhaps I am a bit late to respond, but for future users running into this issue (including myself lol), you first need to install TWRP, otherwise the following instruction won't work. Since you're rooted, you can install TWRP as well (and its really not hard to do)
for DN2103 you have to download the OTA update zip, boot image and vbmeta, see:
[STOCK][DN2103][EU] Incremental update packages & Boot images
Hi All, Below you can find a couple of incremental update packages that you can use for updating from various versions of your device. Incremental update packages These can be installed using TWRP by following this tutorial...
forum.xda-developers.com
After you downloaded the correct files, do the following:
boot into TWRP and flash the boot image corresponding to your update.
(optional) by flashing the boot image, you lose root. to prevent that, you can patch the boot image first with the magisk app. you can always do this step after updating, in case you forget it.
!!! some updates do not have boot image.
flash the <ota_update>.zip
flash the vb.meta image
reboot phone normally
Also, before doing all this, i recommend (temporarily) turning lockscreen security off, in case something goes wrong, you can always recover data then since the phone won't be encrypted.
Thank you, for the answer.
This is the correct way to do update.
Best,