[Guide] How to Fully UNROOT Mi5 - Xiaomi Mi 5 Guides, News, & Discussion

Currently I'm on Global rom 8.1.2.0 ROOTED with SuperSU and Xposed Framework ..
Lately, update of 8.1.3.0 has been rolled out,
so I would like to update my device..
Since ROOTED device does not receive OTA update, I like to UNROOT first and then root it again after update..
Anyone cares to help me in this case?
I need a guide to fully unroot and remove the xposed framework so OTA update can be achieve..
Thanks all

I think just Reflash your MIUI room . then dont root it .
Or if you have SuperSU . i think it have option to "Full Unroot" .

You can't manually download it and update through updater app? It should restart with twrp instead of stock recovery and install the new version i guess

mysa50 said:
You can't manually download it and update through updater app? It should restart with twrp instead of stock recovery and install the new version i guess
Click to expand...
Click to collapse
I dont see anyone uploaded the OTA file for 8.1.3.0 from 8.1.2.0 around 200MB..
moreover, I heard people said the OTA file only can be flashed using stock recovery & non-rooted device. if rooted you will fail .

OTA Update
izzurin said:
I dont see anyone uploaded the OTA file for 8.1.3.0 from 8.1.2.0 around 200MB..
moreover, I heard people said the OTA file only can be flashed using stock recovery & non-rooted device. if rooted you will fail .
Click to expand...
Click to collapse
Absolutely correct, you must never update OTA with Custom recovery. This will lead to a bricked phone and you'll then have to clean flash the stock rom(Erases Internal Storage). Unfortunately, I learned the hard-way and landed-up losing all the data in my Internal Storage.
izzurin said:
Currently I'm on Global rom 8.1.2.0 ROOTED with SuperSU and Xposed Framework ..
Lately, update of 8.1.3.0 has been rolled out,
so I would like to update my device..
Since ROOTED device does not receive OTA update, I like to UNROOT first and then root it again after update..
Anyone cares to help me in this case?
I need a guide to fully unroot and remove the xposed framework so OTA update can be achieve..
Thanks all
Click to expand...
Click to collapse
You can very well uninstall Xposed and full-unroot SuperSU, however, I'm not sure whether it will be needed.
I would suggest taking a FULL NANDROID backup including Internal Storage and then performing the following steps (at your own risk):
Perform full-unroot from SuperSU app
Uninstall Xposed from TWRP
Flash stock recovery from TWRP
Update OTA from Updater App
Flash TWRP
Flash Xposed & SuperSU from TWRP
Btw, how did you get OTA update for 8.1.3.0 when its still not listed in the website?

Even if the ota is downloaded in .zip format? I remember a xiaomi forum where the op explained that he updated his Rom with twrp using updater app without issue. I must say he didn't downloaded via updater app but on a dedicated thread and then selected the Rom in the updater app menu.
Sorry if my guess was a Bad Idea and can lead to soft brick !!

i have just used the twrp recovery to get the full root

Related

[Q] OTA update with stock ROM / recovery but DELETED system apps??

michpan said:
So, to recap, you don't need to relock the bootloader for OTA updates but you have to flash stock recovery first? And you'll lose root in the process?
Click to expand...
Click to collapse
The answer was "YES".
I wonder whether OTA updates will be possible if you have deleted system apps.
Has anyone tried this before updating to JB?
Stock ROM, stock recovery, rooted (by booting the phone into e.g. TWRP recovery without flashing it), system apps deleted -> OTA update possible?
According to these "negative effects of unlocked bootloader", every OTA update checks the MD5 checksum of every file that originally came with your device, so it should not be possible.
Can anyone confirm that no OTA updates will be possible if you have deleted system (or any preinstalled) apps?
Thanks.
mary-lou said:
The answer was "YES".
I wonder whether OTA updates will be possible if you have deleted system apps.
Has anyone tried this before updating to JB?
Stock ROM, stock recovery, rooted (by booting the phone into e.g. TWRP recovery without flashing it), system apps deleted -> OTA update possible?
According to these "negative effects of unlocked bootloader", every OTA update checks the MD5 checksum of every file that originally came with your device, so it should not be possible.
Can anyone confirm that no OTA updates will be possible if you have deleted system (or any preinstalled) apps?
Thanks.
Click to expand...
Click to collapse
Yes. If you have deleted any system app then OTA will not be possible so restore a nandroid backup to get all the files..
I updated to jb with unlocked bootloader and root.
Reported to move.
Ok. So, if I keep my original recovery and only boot into TWRP occassionally to make backups, if I keep the original ROM and only "move" a few system apps to a special folder on my SD, I will be informed when there is an OTA update available but I won't be able to install it due to the wrong MD5 checksum, right?
So, if I move the "deleted" system apps back, I should be able to install the OTA update, right?
After the update, I can "delete=move" them again.
As the bootloader remains open, there will be no factory reset, right?
Should be. Just make sure you flash stock recovery before doing the OTA.
Sent from my HTC Desire X using xda premium

[Q]How to downgrade superSU versions

I have an HTC One M8 with ROM 4.16.1540.8 (5.0.1)
I'm trying to remove my SuperSU app so that i can downgrade it to a lower version(2.20) due to incompatibility with some of my apps (puzzle and dragons).
Bootloader is unlocked and it is s-on.
I have tried removing SuperSU through the app itself by using the reinstall, switch superuser app, and full unroot functions, but everytime I restarted the phone superSU would be back and in version 2.46. I also tried manually deleting the apk and su files in the bin and xbin folders in system using es file explorer but a restart just brought those back too.
Any help would be greatly appreciated. Thanks!
Find the flashable zip for the "older" version and flash in recovery. I would think that should do it.
Hi thanks for the reply.
I flashed superSU 2.23 from recovery, but i got stuck in bootloop. What should i do to fix it? Thanks!
Edit: flashed the updated su back in and got out of it. How do i do the downgrade without a bootloop?
ah46657 said:
Hi thanks for the reply.
I flashed superSU 2.23 from recovery, but i got stuck in bootloop. What should i do to fix it? Thanks!
Edit: flashed the updated su back in and got out of it. How do i do the downgrade without a bootloop?
Click to expand...
Click to collapse
Hmm, wouldn't expect that to happen. Obviously, since I would never intentionally bootloop someone!
Flash the stock ROM or restore stock nandroid. Then flash the desire SuperSU zip. That's the best I can think of.
Make a nandroid backup of your current setup (if you haven't already) to revert to "just in case".
how to unflash supersu zip
redpoint73 said:
Hmm, wouldn't expect that to happen. Obviously, since I would never intentionally bootloop someone!
Flash the stock ROM or restore stock nandroid. Then flash the desire SuperSU zip. That's the best I can think of.
Make a nandroid backup of your current setup (if you haven't already) to revert to "just in case".
Click to expand...
Click to collapse
recently i installed lineage os 14.1 in my device (rooted) and flashed supersu2.79 , but after updating it it 2.82, its showing SU BINARY OCCUPIED , so can i try downgrade supersu by flshing lower version,, if so how should i unflash previous supersu zip help
rajkumar1221 said:
recently i installed lineage os 14.1 in my device (rooted) and flashed supersu2.79 , but after updating it it 2.82, its showing SU BINARY OCCUPIED , so can i try downgrade supersu by flshing lower version,, if so how should i unflash previous supersu zip help
Click to expand...
Click to collapse
So you tried to flash 2.82? I don't think that is the proper way to update. Since you already have SuperSU installed, you should just be able to go into the SuperSU app, and update the binary from there. Or is that what led to the "binary occupied" error?
But back to the basic question, you can't "unflash" SuperSU. You can "dirty flash" Lineage (just wipe cache and dalvik, can keep user data), and that will put you back on the "unrooted" Lineage ROM. Then you should be able to flash SuperSU 2.82 via zip.
redpoint73 said:
So you tried to flash 2.82? I don't think that is the proper way to update. Since you already have SuperSU installed, you should just be able to go into the SuperSU app, and update the binary from there. Or is that what led to the "binary occupied" error?
But back to the basic question, you can't "unflash" SuperSU. You can "dirty flash" Lineage (just wipe cache and dalvik, can keep user data), and that will put you back on the "unrooted" Lineage ROM. Then you should be able to flash SuperSU 2.82 via zip.
Click to expand...
Click to collapse
i unrooted my device now,, should i have to "first root" it with official lineage os extra file addonsu arm and then should i have to flash supersu zip ?
rajkumar1221 said:
i unrooted my device now,, should i have to "first root" it with official lineage os extra file addonsu arm and then should i have to flash supersu zip ?
Click to expand...
Click to collapse
I don't personally use Lineage. I believe you will need to flash both of those, yes.
@redpoint73 , found this script made by osm0sis to "unSU". not sure if is relevant to earlier posts but thought maybe if you havent seen it yet would be worth looking at. maybe could help someone.?
http://forum.xda-developers.com/showthread.php?p=63615067

How to update OTA with TWRP installed

I rooted and installed TWRP recovery. I want to update my stock rom with the OTA update. The update is downloaded to my phone, but won't update, re-boots and goes into TWRP. I think I need to first install a stock recovery, but I can't find one. If I find the stock recovery will that allow me to update OTA.
cma371 said:
I rooted and installed TWRP recovery. I want to update my stock rom with the OTA update. The update is downloaded to my phone, but won't update, re-boots and goes into TWRP. I think I need to first install a stock recovery, but I can't find one. If I find the stock recovery will that allow me to update OTA.
Click to expand...
Click to collapse
As long as you haven't modified your rom you should be able to take the OTA with a STOCK recovery. You can find them here.
Also you might want to unroot before taking the OTA then reroot afterwards.
Got the ota and clicked install by mistake with stock recovery and root. It failed and had to do a battery pull to get it to boot. So yeah I'd unroot just in case.
I unrooted and installed stock recovery, but update failed?

Should I update 10d (rooted)

Hi, I saw about the quad rooter issue, and today I checked the ota update. (I never had an ota update because I always been rooted, s3, s5 and g5)
But now it purpose the 10d update. (450mo)
I'm 10c h850 rooted.
Should I make this update?
Will I lose root? (Rooted via twrp super su)
If I have to re install everything (apps, datas, root), maybe should I wait for 7 nougat don't you think?
Thanks.
trotirider said:
Hi, I saw about the quad rooter issue, and today I checked the ota update. (I never had an ota update because I always been rooted, s3, s5 and g5)
But now it purpose the 10d update. (450mo)
I'm 10c h850 rooted.
Should I make this update?
Will I lose root? (Rooted via twrp super su)
If I have to re install everything (apps, datas, root), maybe should I wait for 7 nougat don't you think?
Thanks.
Click to expand...
Click to collapse
It won't install the update anyway with twrp installed. It'll just fail and reboot. Wait until your ROM devs rebase your ROM on the new base.
Thanks, it was stock rom. But yeah I don't think it's worth if I make a fresh install with android 7.
As you said I'm affraid about the bootloop issue.
trotirider said:
Thanks, it was stock rom. But yeah I don't think it's worth if I make a fresh install with android 7.
As you said I'm affraid about the bootloop issue.
Click to expand...
Click to collapse
Not bootloop, just because you have custom recovery installed the stock update process will not complete even on stock Rom, you'd need to wait for a flashable version of the update or you'd have to flash stock recovery back to your device first.
I just used LGUP without any issues. Pretty painless.
Then flashed TWRP again, and flashed my ROM of choice.
The only tricky part was quickly getting into TWRP after you flash TWRP. It reboots and if you're not quick enough, TWRP will be overridden by the stock recovery. Then you just need to repeat (flash TWRP again, get into TWRP and flash ROM).

Installing Ota after rooting

Can anyone please help me. I want to install new ota upadates in stock rom but i have magisk installed as well as have custom recovery. I want to install ota without losing any data.
Thanks in advance.
Root will gone after ota.u have to flash everytime boot.img after ota to get root back

Categories

Resources