Magisk+TWRP on stock - Xiaomi Mi A2 Lite Questions & Answers

Any way to get magisk and TWRP on latest stock firmware?

Yes.
If you want both, you might as well install TWRP first since you need to reinstall Magisk after TWRP.
There are guides on the forum but they tend to focus on one or the other.
For OTA updates you'll need to jump through hoops due to the modified partitions.
https://forum.xda-developers.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863

a1291762 said:
Yes.
If you want both, you might as well install TWRP first since you need to reinstall Magisk after TWRP.
There are guides on the forum but they tend to focus on one or the other.
For OTA updates you'll need to jump through hoops due to the modified partitions.
https://forum.xda-developers.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863
Click to expand...
Click to collapse
Thanks

Related

Flash stock over rooted to get OTA

I wonder is it possible to flash stock unrooted OOS over rooted OOS in order to install small OTAs. After updates plan to root again. Does anyone know whether this is possible or not? And, any side effects could occur?
I search over internet and couldn't find any useful info about this.
Thanks in advance.
Technically you'll be updating your device by flashing the newest stock anyway. No need for OTAs. You can then re-root.
GTRanushka said:
I wonder is it possible to flash stock unrooted OOS over rooted OOS in order to install small OTAs. After updates plan to root again. Does anyone know whether this is possible or not? And, any side effects could occur?
I search over internet and couldn't find any useful info about this.
Thanks in advance.
Click to expand...
Click to collapse
Yes, sounds doable
ABotelho23 said:
Technically you'll be updating your device by flashing the newest stock anyway. No need for OTAs. You can then re-root.
Click to expand...
Click to collapse
Not what i meant. Let's say I'm on rooted OB18. But i want to update it to OB19. all i have is OB18 stock firmware. So, can i flash OB18 over rooted OB18 and then update it to OB19 (ota). Then re-root.
The reason I'm asking this is i have a very limited data internet connection. So i can save GBs if this is doable.
XDRdaniel said:
Yes, sounds doable
Click to expand...
Click to collapse
Yeah. Well.. I'm gonna try this out myself. Thanks! :highfive:
GTRanushka said:
Not what i meant. Let's say I'm on rooted OB18. But i want to update it to OB19. all i have is OB18 stock firmware. So, can i flash OB18 over rooted OB18 and then update it to OB19 (ota). Then re-root.
The reason I'm asking this is i have a very limited data internet connection. So i can save GBs if this is doable.
Click to expand...
Click to collapse
Plan to keep a copy of OB18 around? If so, then yea absolutely it should work. Root will either modify your system or your kernel depending on the method, which both get overwritten if you flash stock.
Issue you'll probably end up having in the future though is that if you always use OB18, when it comes time to install OB20, you'll be downgrading without a wipe, which I don't think is a great idea.
GTRanushka said:
I wonder is it possible to flash stock unrooted OOS over rooted OOS in order to install small OTAs. After updates plan to root again. Does anyone know whether this is possible or not? And, any side effects could occur?
I search over internet and couldn't find any useful info about this.
Thanks in advance.
Click to expand...
Click to collapse
No you can't.
Because OTA will fail for "partition mismatching": the systemless root alters only but anyhow the /boot partition.
You must update with FOTA (Full OTAs), doesn't matter you're using stock or TWRP recovery.
The OxygenOS built-in updater should detects your system as modified and download only FOTAs.
Simone98RC said:
No you can't.
Because OTA will fail for "partition mismatching": the systemless root alters only but anyhow the /boot partition.
You must update with FOTA (Full OTAs), doesn't matter you're using stock or TWRP recovery.
The OxygenOS built-in updater should detects your system as modified and download only FOTAs.
Click to expand...
Click to collapse
Let's say he has open beta 18, rooted and twrp installed, if he flashes ob18 again over it, this will get rid both of the root and twrp, resulting in an untouched system, therefore, ota after this will be possible. He can then flash back twrp and root the device
XDRdaniel said:
Let's say he has open beta 18, rooted and twrp installed, if he flashes ob18 again over it, this will get rid both of the root and twrp, resulting in an untouched system, therefore, ota after this will be possible. He can then flash back twrp and root the device
Click to expand...
Click to collapse
But practically speaking, it's crazy to unroot system only for OTA.
It would be more reliable to download FOTAs on rooted system.
Then, if @GTRanushka is running Magisk (MagiskSU) as root method, it could be working even after firmware update.
Because of its systemless nature.
Simone98RC said:
But practically speaking, it's crazy to unroot system only for OTA.
It would be more reliable to download FOTAs on rooted system.
Then, if @GTRanushka is running Magisk (MagiskSU) as root method, it could be working even after firmware update.
Because of its systemless nature.
Click to expand...
Click to collapse
This would be weird because I always had to flash magisk after a ota update..
GTRanushka said:
I wonder is it possible to flash stock unrooted OOS over rooted OOS in order to install small OTAs. After updates plan to root again. Does anyone know whether this is possible or not? And, any side effects could occur?
I search over internet and couldn't find any useful info about this.
Thanks in advance.
Click to expand...
Click to collapse
In order to flash OTAS has to have stock rom but also recovery stock and bootloader blocked but not installed the OTAS otherwise it tells you that you have something modified and you have to download the complete rom. (That does not suit you)
ajnexus5 said:
In order to flash OTAS has to have stock rom but also recovery stock and bootloader blocked but not installed the OTAS otherwise it tells you that you have something modified and you have to download the complete rom. (That does not suit you)
Click to expand...
Click to collapse
You don't need a locked bootloader for OTA just have to flash stock full ROM zip and stock recovery then you're good to go
Simone98RC said:
But practically speaking, it's crazy to unroot system only for OTA.
It would be more reliable to download FOTAs on rooted system.
Then, if @GTRanushka is running Magisk (MagiskSU) as root method, it could be working even after firmware update.
Because of its systemless nature.
Click to expand...
Click to collapse
Why i try to unroot and do OTAs is the much less download size compared to FOTAs.
Renosh said:
You don't need a locked bootloader for OTA just have to flash stock full ROM zip and stock recovery then you're good to go
Click to expand...
Click to collapse
I tried it with the bootloader open and I did not think that something is not right that it has to download complete the rom.:

Magisk v14 and OTA updates

Hey, guys, I wanted to ask if someone tried OTA updates working with the new method of rooting released with magisk 14- a rooting method in which we do not need root or custom recovery beforehand, we just need to provide stock boot image dump to the magisk manager. This method will do us good because if OTA's still work after root we can be rooted on the stock roms without having to download full OTA's when a new update arrives. If someone can confirm working OTA's on the OOS open beta with this root method, it would be really helpful. Thank you!
As long as you take a backup of system and keep TWRP installed so you have a backup to revert to it should be fine. The risk of issues is just too high unless you don't give a **** about your personal data.
Puddi_Puddin said:
As long as you take a backup of system and keep TWRP installed so you have a backup to revert to it should be fine. The risk of issues is just too high unless you don't give a **** about your personal data.
Click to expand...
Click to collapse
Bro, I know how to work with TWRP. Your comment does not answer the question.
blaze95rs said:
Bro, I know how to work with TWRP. Your comment does not answer the question.
Click to expand...
Click to collapse
Well think of it about this. Magisk is just one big hack on the system partition. An OTA changes files on the system partition aswell. What if the OTA changes files that Magisk needs?
1. Your phone will go into a bootloop.
2. You might end up bricking it.
3. You just have to reflash Magisk.
4. Your phone becomes buggy as hell.
Thats why we also recommend to install the full zips when flashing roms and kernels that modify system because of possible conflicts.
Puddi_Puddin said:
Well think of it about this. Magisk is just one big hack on the system partition. An OTA changes files on the system partition aswell. What if the OTA changes files that Magisk needs?
1. Your phone will go into a bootloop.
2. You might end up bricking it.
3. You just have to reflash Magisk.
4. Your phone becomes buggy as hell.
Thats why we also recommend to install the full zips when flashing roms and kernels that modify system because of possible conflicts.
Click to expand...
Click to collapse
Obviously I would uninstall magisk and then install ota and reinstall magisk. Magisk is systemless so I think there shouldn't be any problem.
blaze95rs said:
Obviously I would uninstall magisk and then install ota and reinstall magisk. Magisk is systemless so I think there shouldn't be any problem.
Click to expand...
Click to collapse
See it for yourself! Its something most people do not recommend.
Puddi_Puddin said:
See it for yourself! Its something most people do not recommend.
Click to expand...
Click to collapse
You have missed the whole point of the post. This is a NEW method. Many people have not tried this method of root. So please, if you have any valuable information then only share. Do not litter. There should be logic to your answer and not general acceptance. Saying that many people do this or do that is not a very solid answer.
blaze95rs said:
You have missed the whole point of the post. This is a NEW method. Many people have not tried this method of root. So please, if you have any valuable information then only share. Do not litter. There should be logic to your answer and not general acceptance. Saying that many people do this or do that is not a very solid answer.
Click to expand...
Click to collapse
That doesn't matter. I get that it can be installed without a custom recovery. But that doesn't mean it won't conflict with possible ota's. Again, see it for yourself. Most people including me do rather play it the safe way.
I have recently updated to the lateset Oxygen OS Beta i had Magisk installed, i use Sparks Latest twrp version, with this you can install OTA updates. I dit not unlinstalled Magisk first, you do need the full rom file, but for me when i wanted to install the OTA, it found i had rooted and autmatacly downloaded the full rom. After you installed the update you can install the latest version of Magisk.

[Q]Root/OTA/TWRP doubt

I'm coming from nexus family and I know in and out regarding flashing rooms, rooting etc for nexus devices .. I got op5t few days back and I want to root it. But I need few info's.
1. If I root the phone, Can I flash the ota Update zip using twrp?
2. If I flash the update zip successfully using twrp, will I lose twrp and root?
I just want to know what are the steps to follow to update the Stock OS but also keeping the custom recovery and root after the update..
What are the Stock things I will lose after unlocking and rooting..
You will not lose stock features if you root. Both SafteyNet bypass options and root hide features exist with custom kernels and Magisk.
Taking OTA's will be a slight issue, though. Need to flash the Magisk uninstall zip first, take OTA (you will lose custom recovery), then re-flash custom recovery then flash Magisk again.
xocomaox said:
You will not lose stock features if you root. Both SafteyNet bypass options and root hide features exist with custom kernels and Magisk.
Taking OTA's will be a slight issue, though. Need to flash the Magisk uninstall zip first, take OTA (you will lose custom recovery), then re-flash custom recovery then flash Magisk again.
Click to expand...
Click to collapse
I thought if you flashed the full zip and then Magisk right after, it would not only keep root, but TWRP as well?
xocomaox said:
You will not lose stock features if you root. Both SafteyNet bypass options and root hide features exist with custom kernels and Magisk.
Taking OTA's will be a slight issue, though. Need to flash the Magisk uninstall zip first, take OTA (you will lose custom recovery), then re-flash custom recovery then flash Magisk again.
Click to expand...
Click to collapse
So I need to use custom Kernal to Pass Safety net? Safety net fails in Stock kernel?
If you use Magisk, no. Magisk will hide the parameters that would reveal that your device has the bootloader unlocked.
rickysidhu_ said:
I thought if you flashed the full zip and then Magisk right after, it would not only keep root, but TWRP as well?
Click to expand...
Click to collapse
Well.. it's not keeping root if you have to re-flash Magisk after!
You may get away with not having to flash Magisk uninstall zip, but you might as well since you'll be in recovery anyways.
You can flash stock rom using TWRP as mentioned in this thread https://forum.xda-developers.com/oneplus-5t/how-to/oneplus-5t-mirrors-official-oxygen-os-t3708099
Once the update is completed you will be back in stock recovery and you need to flash TWRP again
https://forum.xda-developers.com/showpost.php?p=74705391&postcount=32
It would be great if someone who is familiar with OnePlus products and updates could put together a defnitive, detailed post and or instructional sticky on the whole update OTA root subject since there are so many different threads on it.
xocomaox said:
Well.. it's not keeping root if you have to re-flash Magisk after!
You may get away with not having to flash Magisk uninstall zip, but you might as well since you'll be in recovery anyways.
Click to expand...
Click to collapse
Sorry, I meant flashing Magisk will boot you back into the system updated, rooted and with TWRP intact.
I haven't heard about having to uninstall Magisk or anything, was just curious
Dazed No More said:
It would be great if someone who is familiar with OnePlus products and updates could put together a defnitive, detailed post and or instructional sticky on the whole update OTA root subject since there are so many different threads on it.
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=74612843&postcount=3
padhu1989 said:
I'm coming from nexus family and I know in and out regarding flashing rooms, rooting etc for nexus devices .. I got op5t few days back and I want to root it. But I need few info's.
1. If I root the phone, Can I flash the ota Update zip using twrp?
2. If I flash the update zip successfully using twrp, will I lose twrp and root?
I just want to know what are the steps to follow to update the Stock OS but also keeping the custom recovery and root after the update..
What are the Stock things I will lose after unlocking and rooting..
Click to expand...
Click to collapse
Why don't you read how to do it? https://forum.xda-developers.com/oneplus-5t/how-to/oneplus-5t-unlock-bootloader-flash-twrp-t3704592

Ota update for pixel 2 xl with magisk and twrp already installed

I am sure this has been asked and answered 100 times but for the life of me I can't find a definite answer. I have a Pixel 2 XL and it is rooted and I have Magisk and TWRP installed on it. I want to be able to install the OTA for this month, but I do not want to lose anything on the phone. I also would rather not lose Magisk or TWRP. Normally on my android phones I use ROMs and can just update through TWRP, but I want to stay on stock because I don't want to lose Active Edge. So can someone please help me by giving me step by step instructions or point me to instructions that are simple to follow so I can take the OTA?
I really appreciate the help.
I was having the same problem and was helped by some of the members here.. Best way is to flash the firmware after removing the -w from the flash all file. Then flash twrp and magisk.
Ota
Thanks for your help. I will try that.
magicmaker said:
Thanks for your help. I will try that.
Click to expand...
Click to collapse
Here's a quick little guide I made for updating monthly factory images. Hopefully it'll help you out :good:
Sorta related...
Are there any ROMS that come rooted so I don't have to go through the monthly process of backup/unroot/update/root/restore?
Would love to just flash a ROM update and be done.
rank78 said:
Sorta related...
Are there any ROMS that come rooted so I don't have to go through the monthly process of backup/unroot/update/root/restore?
Would love to just flash a ROM update and be done.
Click to expand...
Click to collapse
Not that I'm aware of, but maybe some on the horizon...
Badger50 said:
Here's a quick little guide I made for updating monthly factory images. Hopefully it'll help you out :good:
Click to expand...
Click to collapse
Hi, quick question
I am only able to do them steps above if I have done 'fastboot unlock_critical'? I have only done 'fastboot unlock'
Also I would need to boot into TWRP and flash a kernel + magisk to retain root?
You have to issue the "fastboot unlock_critical" command in order for the bootloader to update, since the bootloader is included in both factory images and full OTAs. Speaking of full OTA's, one of our recognized developers, @elliwigy, revealed (thread here) that it is possible to flash a full OTA image through TWRP, which eliminates the need to open the factory image and remove the -w flag from the last line. Flashing the OTA works because TWRP doesn't check signatures like the stock recovery. You will lose both root and TWRP upon reboot however, so you will still need to connect to a PC in order to reinstall TWRP so you can subsequently replace the stock Kernel with the Flash Kernel and then root.
I can verify this works, as I tried it with the May update.

Samsung A50 US variant (A505UZ) question

Hi. I just got the unlocked US variant of the A50 (A505UZ), but don't see any posts related to it. Is it possible to root this version? If so, which version of TWRP or set of directions do I follow to do so? Lastly, can I still receive OTAs if I do root it? Thanks in advance for any and all help
I think rooting is the same for all variants incl US because there isn't a separate soc for the N.A. like some galaxy models. Try rooting with magisk, you don't have to install TWRP so you can keep the system partition intact and don't trip safetynet so you can use google pay, bank apps. And ota updates will still work. Some people don't know any better and always suggest installing TWRP as a first step.
barrack1 said:
I think rooting is the same for all variants incl US because there isn't a separate soc for the N.A. like some galaxy models. Try rooting with magisk, you don't have to install TWRP so you can keep the system partition intact and don't trip safetynet so you can use google pay, bank apps. And ota updates will still work. Some people don't know any better and always suggest installing TWRP as a first step.
Click to expand...
Click to collapse
Thanks for the help! With the Magisk method, does this allow custom ROMs also? Sorry if thats a dumb question; but honestly, I've never heard anyone not use TWRP or similar to root, even with Magisk.
bloodbath said:
Thanks for the help! With the Magisk method, does this allow custom ROMs also? Sorry if thats a dumb question; but honestly, I've never heard anyone not use TWRP or similar to root, even with Magisk.
Click to expand...
Click to collapse
Magisk is a tool to allow the phone to be modified without changing the system partition. It can be installed on the stock rom or custom roms. TWRP is used to install Magisk, but TWRP itself doesn't need to be installed. I strongly suggest you read up alot or stick to stock rom.

Categories

Resources