I have a MiA2Lite with bootloader unlocked, magisk installed and update to Pie. If I wanted to receive OTA updates I should
a) remove magisk
b) re-lock the bootloader
c) both
which of the r options?
IO13 said:
I have a MiA2Lite with bootloader unlocked, magisk installed and update to Pie. If I wanted to receive OTA updates I should
a) remove magisk
b) re-lock the bootloader
c) both
which of the r options?
Click to expand...
Click to collapse
Do not relock bootloader, if you do you may not be able to recover later- without disassembling Device.
If you mess with the system partition other than a couple magisk modules, you may need to flash a stock image.. but very easy with bootloader unlocked, so again don't lock the bootloader.
There is a guide to temporarily uninstalling magisk for the OTA, and if you follow it will work. Upgrading to pie however you may need to flash the updated boot.img and patched_boot respectively through fastboot after the ota
Again emphasis on not relocking bootloader.
Use titanium backup to backup app data and move backup to external sd before flashing stock image to protect it or before trying the above for easier restoring.
IO13 said:
I have a MiA2Lite with bootloader unlocked, magisk installed and update to Pie. If I wanted to receive OTA updates I should
a) remove magisk
b) re-lock the bootloader
c) both
which of the r options?
Click to expand...
Click to collapse
To make it short: a)
I had recieve before we have november update while magisk is installed and bootloader is unlocked.
Related
Hello all,
I already searched the forum but I did not found any good answer.
1. In the past I've succesfully applied root access without unlocking the bootloader while still beeing on Android 4.1.x from this guide:
http://forum.xda-developers.com/showthread.php?t=1894717
2. Now I've got a 4.2 OTA update. Before applying it I used Voodoo OTA rootkeeper to keep a backup of su.
3. Restored su with Voodoo OTA rootkeeper
The result is that I have again root access from shell but when I want to use Apps which require root I always get failures and even no confirmation dialog.
How do I get superuser working (fully root) like before?
Thanks,
therealmarv
http://download.chainfire.eu/282/SuperSU/
Jubakuba said:
http://download.chainfire.eu/282/SuperSU/
Click to expand...
Click to collapse
How should I flash that without having CWM? I think I need a manual repair :/
Is your bootloader locked?
If not...use my guide (in sig or stickied) to back up data before unlocking...
If so... "fastboot boot recovery.img" and flash the file.
The recovery is only being booted into...not written to the phone; so you'd still be stock rooted.
How in the world you not have a unlocked bootloader when you rooted before..
That aside, do remember to keep the bootloader unlocked next time..
Mach3.2 said:
How in the world you not have a unlocked bootloader when you rooted before..
That aside, do remember to keep the bootloader unlocked next time..
Click to expand...
Click to collapse
The same sort of exploit that was used in ICS was eventually found for 4.1.1 that allowed root without unlocking.
Jubakuba said:
The same sort of exploit that was used in ICS was eventually found for 4.1.1 that allowed root without unlocking.
Click to expand...
Click to collapse
What i mean is how can they not unlock the bootloader after rooting..
I did not unlocked bootloader because I thought it is not necessary (and I also thought it will affect OTA updates). So just to get it right: I can make a backup of my phone, root it, unlock bootloader and recover the backup afterwards so that no data is lost?
Ok I solved my issue (having su access via adb and locked bootloader) with this thread:
http://forum.xda-developers.com/showpost.php?p=27085483&postcount=141
1. I unlocked the bootloader with the link above
2. flashed CWM with fastboot
3. flashed SuperSU CWM ZIP for getting root again
So I now have fully root, unlocked bootloader and cwm great.
So op 5t released a new update, whenever i open the update screen it says root detected, i would lose my root privileges if I update the phone.
I wanted to know whether i would only lose my root, or entire thing of bootloader getting locked etc?
After updating will I be able to just boot into recovery and flash root file? Or whole process I would have to do again
Thanks
Updates reinstall the stock recovery. You have to flash twrp then root.
virusshah1997 said:
So op 5t released a new update, whenever i open the update screen it says root detected, i would lose my root privileges if I update the phone.
I wanted to know whether i would only lose my root, or entire thing of bootloader getting locked etc?
After updating will I be able to just boot into recovery and flash root file? Or whole process I would have to do again
Thanks
Click to expand...
Click to collapse
When you install an OTA it will NOT relock your bootloader, it will reinstall the stock recovery since that is included in the OTA zip and is forced installed to be sure the update installs correctly.
You will lose the root temporarily until you flash a custom recovery again and your root of choice.
Misanful said:
When you install an OTA it will NOT relock your bootloader, it will reinstall the stock recovery since that is included in the OTA zip and is forced installed to be sure the update installs correctly.
You will lose the root temporarily until you flash a custom recovery again and your root of choice.
Click to expand...
Click to collapse
I have to flash TWRP again?
virusshah1997 said:
I have to flash TWRP again?
Click to expand...
Click to collapse
yes.
Misanful said:
yes.
Click to expand...
Click to collapse
Wait, really? https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips doesn't say anything about having to flash twrp again...
When an OTA is available, please go to Magisk Manager → Uninstall → Restore Images. Do not reboot immediately or you will have Magisk uninstalled. This will restore your boot (or dtbo if available) back to 100% untouched stock images in order to pass verifications. This step is required before doing any of the following steps written below!
Click to expand...
Click to collapse
Or does "100% stock images" mean the stock bootloader = flash twrp again?
Just to clearify, updating my phone by an OTA does not lock the bootloader but I'd have to flash twrp and magisk again..?
Yakumichan said:
Wait, really? https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips doesn't say anything about having to flash twrp again...
Or does "100% stock images" mean the stock bootloader = flash twrp again?
Just to clearify, updating my phone by an OTA does not lock the bootloader but I'd have to flash twrp and magisk again..?
Click to expand...
Click to collapse
yee, but after you have used the OTA you will need to flash twrp again since the OTA flashes the stock recovery, or modify your boot image but that is a pain in the ass. :silly:
Misanful said:
yee, but after you have used the OTA you will need to flash twrp again since the OTA flashes the stock recovery, or modify your boot image but that is a pain in the ass. :silly:
Click to expand...
Click to collapse
Means if I'd like to unroot my phone by doing nothing, this is probably the easiest way?
So i have the Sprint variant and TWRP / rooted so i could SIM unlock the phone. Now I did a Flashall.bat with stock Sprint 8.0.0 image and then did an OTA update to latest build. So I am assuming I am stock with Sprint factory image and factory recovery but my bootloader is still unlocked and I am NOT rooted (SuperSU / Magisk or otherwise). I am not passing SafetyNet check and thus cannot DL Netflix, use Google Pay, banking app complaining. I have a few questions:
Whats the least painful or suggested route to this? I'm assuming SafetyNet fail is due to unlocked bootloader
If I relock the bootloader will this erase data similar to unlocking does?
I read that flashing a custom kernel will fix this by not tripping a Safetynet Flag but what other effects does this do? Will it break OTA?
I do not want to root because I would like to continue receiving OTA updates.
Thanks in advance!
If you relock bootloader safetynet will pass and OTA will work
Marcowe said:
If you relock bootloader safetynet will pass and OTA will work
Click to expand...
Click to collapse
Yeah but does relocking the bootloader on our phones wipe data (factory reset)?
I ask because I heard it does on some Android phones.
Thanks for the reply!
jeffritz1 said:
Yeah but does relocking the bootloader on our phones wipe data (factory reset)?
I ask because I heard it does on some Android phones.
Thanks for the reply!
Click to expand...
Click to collapse
Relocking the bootloader will erase everything, that is the same for all phones with unlockable bootloaders. Magisk hides your unlocked bootloader and helps you pass safety-net while rooted with magisk.
Sent from my Moto Z (2) using XDA Labs
skywalker-live said:
Relocking the bootloader will erase everything, that is the same for all phones with unlockable bootloaders. Magisk hides your unlocked bootloader and helps you pass safety-net while rooted with magisk.
Click to expand...
Click to collapse
Got it. But Magisk means goodbye OTA's correct?
jeffritz1 said:
Got it. But Magisk means goodbye OTA's correct?
Click to expand...
Click to collapse
Correct
Anyway to not wipe data, still accept OTA's, and pass SafetyNet?
jeffritz1 said:
Anyway to not wipe data, still accept OTA's, and pass SafetyNet?
Click to expand...
Click to collapse
You could boot twrp and flash pantheon. When you want to ota, just flash stock boot img and you can get ota again. Pantheon hides the flags in cmdline that make you fail safetynet. (In your case, the bootloader lock status flag). You could do the same with magisk though as well, you would just have to do a no wipe flash all when you want an ota. (Edit the .bat to not wipe user data)
I am currently on oreo with magisk and gcam, if i update the software will anything happen? etc lost of data or loss of root? Thanks!
Heimex said:
I am currently on oreo with magisk and gcam, if i update the software will anything happen? etc lost of data or loss of root? Thanks!
Click to expand...
Click to collapse
If you have magisk and directly try to install OTA, even if you succeed you'll end up in bootloop. Be careful, you may lose all your data and read the guides in the forum carefully before doing anything.
marstonpear said:
If you have magisk and directly try to install OTA, even if you succeed you'll end up in bootloop. Be careful, you may lose all your data and read the guides in the forum carefully before doing anything.
Click to expand...
Click to collapse
Hi what are my options here?
I have done this guide https://forum.xda-developers.com/mi-a2-lite/how-to/guide-how-to-enable-camera2-api-t3851414 to enable the camera but i have not locked the bootloader. I would like to keep it root. So give my current condition, i cant update OTA beacuse it is asking me to update. Thanks!
Heimex said:
Hi what are my options here?
I have done this guide https://forum.xda-developers.com/mi-a2-lite/how-to/guide-how-to-enable-camera2-api-t3851414 to enable the camera but i have not locked the bootloader. I would like to keep it root. So give my current condition, i cant update OTA beacuse it is asking me to update. Thanks!
Click to expand...
Click to collapse
Since your bootloader is still unlocked you just need to remove magisk and flash the stock boot.img for your current version (flash it in both slots) and try to update, if the update fails you will need to also flash the system.img for your current version. After everything is done you will be able to easily root again by using a patched boot.img for 10.0.2.0.
Hakkinan said:
Since your bootloader is still unlocked you just need to remove magisk and flash the stock boot.img for your current version (flash it in both slots) and try to update, if the update fails you will need to also flash the system.img for your current version. After everything is done you will be able to easily root again by using a patched boot.img for 10.0.2.0.
Click to expand...
Click to collapse
alternatively, is it possible to lock my bootloader according to that guide above and uninstall magisk? and then update it OTA. Will this method work?
Heimex said:
alternatively, is it possible to lock my bootloader according to that guide above and uninstall magisk? and then update it OTA. Will this method work?
Click to expand...
Click to collapse
You can only lock your bootloader after restoring the tampered partitions (e.g. boot and system partitions), if you lock your bootloader without flashing those partitions you will get the famous "system has been destroyed" message.
Hakkinan said:
You can only lock your bootloader after restoring the tampered partitions (e.g. boot and system partitions), if you lock your bootloader without flashing those partitions you will get the famous "system has been destroyed" message.
Click to expand...
Click to collapse
oh, sorry i am very new to this. Is there a guide available for the method that you have mentioned?
You can use this guide to download, extract and flash only the exact partitions that i've said.
Hakkinan said:
You can use this guide to download, extract and flash only the exact partitions that i've said.
Click to expand...
Click to collapse
Hi, so these are from my understanding (please correct me if i m wrong)
1) V9.6.11.0.ODLMIFF OTA link: https://android.googleapis.com/packa...73ab1909e7.zip (i am going to assume this is my original boot img that i am supposed to flash in the 2 partitions)
2) Run commands via ADB shell : fastboot flash boot_a boot.img
fastboot flash boot_b boot.img (Do i have to keep my volume button pressed down throughout till reboot?) - to prevent data loss
3) Will my data be lost if i do this?
4) and finally update to PIE as normal?
You can check what version you are running in settings, since that's the latest image for Oreo i would assume that this is the correct one for you.
Those are the right commands and you don't need to hold any key, this is only required while unlocking your bootloader.
You won't lose any data and if the update fail you will also need to run: "fastboot flash system_a system.img" and "fastboot flash system_b system.img".
Hakkinan said:
You can check what version you are running in settings, since that's the latest image for Oreo i would assume that this is the correct one for you.
Those are the right commands and you don't need to hold any key, this is only required while unlocking your bootloader.
You won't lose any data and if the update fail you will also need to run: "fastboot flash system_a system.img" and "fastboot flash system_b system.img".
Click to expand...
Click to collapse
Ok noted, i cant seem to extract the payload.bin despite following the guide. It is quite hard to understand.. escpecially with python? I have installed python and everytime i run the commands on the guide it just doesnt work..
edit 1: i am able to do it. Will try it now.
i have followed your instructions to flashing the boot img for A and B. as shown https://imgur.com/L7lw3qW
however the bootloader remains unlocked, do i still update OTA to pie?
Yes, it doesn't manter if tour bootloader is unlocked ir not, the only factor is if your partitions are tampered with or not.
If I unlock bootloader and apply TeamWin Recovery Project will that disable the ability to receive OTA updates?
I really would like Viper4Android! Thanks
Yes TWRP disables OTA updates. All system partitions need to be @Stock for a successful update via OTA.
Our TWRP is quite crappy and at best a beta version anyways.
You can install V4A quite easy as a Magisk module. Just check a root guide in the Guides section. It's just a matter of seconds to disable root for taking an OTA and re-enabling it again afterwards.