MIUI Update with root - Xiaomi Mi 8 Questions & Answers

Can I Update MIUI with root without Problems?

Yes.

What must I do flash the OTA in TWRP? Lose I my data? Must I flash TWRP and root again?

1990marcow1990 said:
What must I do flash the OTA in TWRP? Lose I my data? Must I flash TWRP and root again?
Click to expand...
Click to collapse
Dude use the forums.
https://forum.xda-developers.com/mi-8/how-to/guide-updating-rom-magisk-installed-t3919039

Related

OTA after Root and custom Kernel

I would like to flash Franco on 5.1.1 to help with battery. To use it and configure it i need root. I got a nexus for the ota. Can I simply do fastboot flash boot/system boot.IMG/system.IMG? And take the ota?
Thanks!
cammykool said:
I would like to flash Franco on 5.1.1 to help with battery. To use it and configure it i need root. I got a nexus for the ota. Can I simply do fastboot flash boot/system boot.IMG/system.IMG? And take the ota?
Thanks!
Click to expand...
Click to collapse
no.
any kind of system file changes, and i mean any, and the ota will not flash. you would have to flash the factory image, then take the ota, or.. you can flash a custom recovery, your kernel, and root. then flash the update in a flashible zip form, via your recovery. and keep root, your kernel, and everything else.
simms22 said:
no.
any kind of system file changes, and i mean any, and the ota will not flash. you would have to flash the factory image, then take the ota, or.. you can flash a custom recovery, your kernel, and root. then flash the update in a flashible zip form, via your recovery. and keep root, your kernel, and everything else.
Click to expand...
Click to collapse
something like this?
http://forum.xda-developers.com/nexus-6/development/rom-stock-rooted-lmy47m-android-5-1-t3061595
cammykool said:
I would like to flash Franco on 5.1.1 to help with battery. To use it and configure it i need root. I got a nexus for the ota. Can I simply do fastboot flash boot/system boot.IMG/system.IMG? And take the ota?
Thanks!
Click to expand...
Click to collapse
Yes. If you root and flash a custom kernel, fastboot.flashing a system and boot image will undo that.
cammykool said:
something like this?
http://forum.xda-developers.com/nexus-6/development/rom-stock-rooted-lmy47m-android-5-1-t3061595
Click to expand...
Click to collapse
absolutely.
it makes it much easier than waiting for an update, unrooting/flashing a factory image, taking the ota, then setting everything up again

adb sideload issue

Can someone explain this to me as to why https://android.googleapis.com/pack...amu-ota-LMY48I-from-LMY47Z-superblock-fix.zip gives me the following error shown in the attach picture?
Looks like it should match correctly but sideload is errorring out saying otherwise
C:\Users\Double\AppData\Local\Android\android-sdk\platform-tools>adb shell getprop ro.build.fingerprint
google/shamu/shamu:5.1.1/LMY47Z/1860966:user/release-keys
C:\Users\Double\AppData\Local\Android\android-sdk\platform-tools>
Do it from stock recovery. It's kinda broken in twrp because twrp was build with a build.prop with old user keys so it won't let you flash it. All the Ota zip will see is those old user keys and kill it every time. Stock recovery will work.
Sent from my Nexus 6 using Tapatalk
david279 said:
Do it from stock recovery. It's kinda broken in twrp because twrp was build with a build.prop with old user keys so it won't let you flash it. All the Ota zip will see is those old user keys and kill it every time. Stock recovery will work.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
I'm having the same problem with TWRP and the TMO LYZ28J update. How do I get back to stock recovery? Is it just a matter of uninstalling TWRP and reinstalling it when I'm done?
JimSmith94 said:
I'm having the same problem with TWRP and the TMO LYZ28J update. How do I get back to stock recovery? Is it just a matter of uninstalling TWRP and reinstalling it when I'm done?
Click to expand...
Click to collapse
Install the stock recovery in fastboot, you can download it from the factory images or just search for it
Sent from my Nexus 6 using Tapatalk
JimSmith94 said:
I'm having the same problem with TWRP and the TMO LYZ28J update. How do I get back to stock recovery? Is it just a matter of uninstalling TWRP and reinstalling it when I'm done?
Click to expand...
Click to collapse
If you have TWRP, chances are your rom would be modified in some way so the OTA Won't work anyway.
danarama said:
If you have TWRP, chances are your rom would be modified in some way so the OTA Won't work anyway.
Click to expand...
Click to collapse
I'm stock rooted, are you saying that won't work? What's the proper way to install this update without losing data?
I'm used to flashing updates from recovery, so this whole sideload thing is new to me.
JimSmith94 said:
I'm stock rooted, are you saying that won't work? What's the proper way to install this update without losing data?
I'm used to flashing updates from recovery, so this whole sideload thing is new to me.
Click to expand...
Click to collapse
Correct, root is a modification. An OTA will not flash unless the rom and kernel are 100% as expected.. This is regardless of whether the OTA zip is flahsed in adb sideload or as an OTA natively.
If there is a J factory image available, fastboot flash the system.img and boot.img and you're updated.
If there is not, do the above but with the version the OTA expects. .. Then flash the OTA
danarama said:
If there is a J factory image available, fastboot flash the system.img and boot.img and you're updated.
Click to expand...
Click to collapse
There is an LYZ28J factory image available, here > https://developers.google.com/android/nexus/images
danarama said:
Correct, root is a modification. An OTA will not flash unless the rom and kernel are 100% as expected.. This is regardless of whether the OTA zip is flahsed in adb sideload or as an OTA natively.
If there is a J factory image available, fastboot flash the system.img and boot.img and you're updated.
If there is not, do the above but with the version the OTA expects. .. Then flash the OTA
Click to expand...
Click to collapse
Thanks for the info! Since Google says they will release these updates monthly, I'm hoping to find a simple, painless, and repeatable method to do these updates. Will flashing your suggestions lose root or data?
JimSmith94 said:
Thanks for the info! Since Google says they will release these updates monthly, I'm hoping to find a simple, painless, and repeatable method to do these updates. Will flashing your suggestions lose root or data?
Click to expand...
Click to collapse
It will lose root, but you just flash supersu from recovery
I had to flash the stock recovery back on and then did the OTA update. :-/ I really like my full system backups that TWRP does though..
doublejz said:
I had to flash the stock recovery back on and then did the OTA update. :-/ I really like my full system backups that TWRP does though..
Click to expand...
Click to collapse
Just flash the system.img then

Ota on rooted devices

Can I still receive and apply ota on unlocked and rooted MI5?
TeHashX said:
Can I still receive and apply ota on unlocked and rooted MI5?
Click to expand...
Click to collapse
You can certainly download the OTA through updater app however applying is not possible for rooted Mi5 witih TWRP.
ishangoyal said:
You can certainly download the OTA through updater app however applying is not possible for rooted Mi5 witih TWRP.
Click to expand...
Click to collapse
Are both custom recovery AND root the problem for OTA, or just the recovery?
If I leave stock recovery, and do full unroot with SuperSU, will then OTA still work?
Burs said:
Are both custom recovery AND root the problem for OTA, or just the recovery?
If I leave stock recovery, and do full unroot with SuperSU, will then OTA still work?
Click to expand...
Click to collapse
You would have to try that.. I didn't try this method.. I downloaded the full rom from en.miui.com and flashed through TWRP... and then flashed SuperSu.. this would ensure that data remains and rom is rooted and updated.
Moreover, generally MIUI OTA updates are same size as the original rom, so doesn't matter if you download full rom or OTA.
Thanks. OK then. So generally I can install both TWRP and root. And when I get OTA notification, i just download the full rom, and flash it using MiFlash tool, without wiping data and phone storage? That way I will still have all my apps, but will obviously have to root again (and maybe put TWRP?), right?
Burs said:
Thanks. OK then. So generally I can install both TWRP and root. And when I get OTA notification, i just download the full rom, and flash it using MiFlash tool, without wiping data and phone storage? That way I will still have all my apps, but will obviously have to root again (and maybe put TWRP?), right?
Click to expand...
Click to collapse
download the full rom zip file and flash it using TWRP.. no need to flash using MiFlash tool.. you'll flash to flash supersu zip again.. no need to get TWRP again as it is still there and ya all yours apps and data will be there.
ishangoyal said:
download the full rom zip file and flash it using TWRP.. no need to flash using MiFlash tool.. you'll flash to flash supersu zip again.. no need to get TWRP again as it is still there and ya all yours apps and data will be there.
Click to expand...
Click to collapse
Have anyone tried this? Thanks!
lenra06 said:
Have anyone tried this? Thanks!
Click to expand...
Click to collapse
I myself update my rom using this method [emoji106]
Sent from my MI 5 using Tapatalk
ishangoyal said:
Moreover, generally MIUI OTA updates are same size as the original rom, so doesn't matter if you download full rom or OTA.
Click to expand...
Click to collapse
No, miui ota are much smaller than full rom. They are just just 100 or 200 MB if you update regularly. There is a modified twrp called zcx. If has an option to flash incremental ota zip without losing root or recovery. Search on afh.

Update to Nougat

Dear XDA,
Can I update my phone (OOS 3.5.4), to OnePlus3TOxygen_28_170114 via OTA?
It's been rooted and I'm using the TWRP recovery.
No custom kernel.
No, you need to download the full OTA and flash it in TWRP.
My advice is do not do a dirty flash.
I wiped Data and System and battery life has been amazing after.
Sykojoe said:
No, you need to download the full OTA and flash it in TWRP
Click to expand...
Click to collapse
Can I only download it via OTA on my phone then?
Do I get to keep root, TWRP and files?
Download the full rom from https://forum.xda-developers.com/oneplus-3t/how-to/rom-oos4-0-nougat-op3t-leaked-t3523482
move it to phone and load twrp

Rootin and OTa

Is there anyway to root and still get OTA ?
anttaz said:
Is there anyway to root and still get OTA ?
Click to expand...
Click to collapse
You will get OTA, after Root also, but after updating your root will gone, recovery will replaced by Stock recovery, and if You are decrypted after update
it will get encrypted.
uttam.ace said:
You will get OTA, after Root also, but after updating your root will gone, recovery will replaced by Stock recovery, and if You are decrypted after update
it will get encrypted.
Click to expand...
Click to collapse
Does stock recovery not allow zip flashing?
anttaz said:
Does stock recovery not allow zip flashing?
Click to expand...
Click to collapse
It allows local upgrade, but it has not much flexibility like TWRP.
I've just updated from 4.0.2 to 4.0.3 and here's how my "OTA" was working:
1) Got notification that the update is available
2) Went to XDA to download OOS 4.0.3. full ROM zip, TWRP 3.1.4.1 image and Magisk 11.1 root
3) rebooted to TWRP, flashed new ROM, Magisk root and TWRP image.
As far as I know, that's the only sure way to update your phone while keeping root and TWRP.
Does it pass safety net?
anttaz said:
Does it pass safety net?
Click to expand...
Click to collapse
Yes, it does! With MagiskHide it works like a charm.
Will ota work for cleaning system for say arise sound mod or will have to use full? And does full wipe device clean?
anttaz said:
Will ota work for cleaning system for say arise sound mod or will have to use full? And does full wipe device clean?
Click to expand...
Click to collapse
I'm sorry, i didn't fully understand what you were trying to say here
But i'll take a wild guess and tell you that in TWRP you always need to flash full ROM, not OTA version. Otherwise your phone won't boot.
hrsa said:
I'm sorry, i didn't fully understand what you were trying to say here
But i'll take a wild guess and tell you that in TWRP you always need to flash full ROM, not OTA version. Otherwise your phone won't boot.
Click to expand...
Click to collapse
Along those lines in a way does full ROM zip wipe phone each flash?
anttaz said:
Along those lines in a way does full ROM zip wipe phone each flash?
Click to expand...
Click to collapse
Nope, it never wipes anything other than system, so all your data and apps are safe.
anttaz said:
Along those lines in a way does full ROM zip wipe phone each flash?
Click to expand...
Click to collapse
Does flashing full ROM zip wipe phone with each flash?
Thanks all
Which version twrp to use seen official and a few others in forum for our device??
Hello, sorry for my bad english (German). I installed the update too and now my root, recovery, kernel.... are away. When I try to flash the recovery or other stuff with cmd, is there an error message: FAILED (remote: Partition flashing is not allowed)
Got anyone an idea how i can flash my recovery again?

Categories

Resources