How to apply OTA update when rooted with Magisk? - Moto G5 Plus Questions & Answers

I am on update channel retgb (UK) and have just received the first OTA update for this device. As I have unlocked my bootloader, install TWRP, installed Vanche's Modified Boot Kernel + wlan_custom.zip + magisk do I need to do anything special before applying the OTA update. (I followed the guide by Awesomeslayerg up to installing SuperSU)
I have looked around XDA but I do not know which stock rom I need to flash and then how to apply the OTA update. As I have magisk I don't think my system partition has been modified but because of the wlan_custom file and custom boot kernel I think the boot partition has been meaning from what I understand I can't install the update.
Any pointers would be appreciated.
I did grab the OTA update drive.google .com/open?id=0B0o6IYW5dPwHcExfSXVvMWVCWU0 (remove space between google and .com if thats is any help

Related

NOOB Question - OTA after rooting and TWRP

Hi all,
Sorry for the noob question.
Can I receive and install official OTA updates after rooting and installing TWRP ?
Thanks.
NO!
Ota
Oh. Can I flash the ota zip from twrp?
Kindly guide me as I am clueless.
Thanks
You can receive OTA with TWRP, but not if you're rooted. My method of getting OTA is by keeping a stock rom zip on my sd card. When an OTA comes out, I flash the zip, breaking root, boot into OxygenOS, accept the OTA, it should install, then I reboot to TWRP and flash SuperSu.
You can flash the OTA from TWRP, but when I tried that, it said I was on the correct version in about phone, but it still kept telling me there was an update available.
Here's a link to stock roms, and OTA zips.
https://forums.oneplus.net/threads/oneplus-2-stock-rom-collection-updated-01-09.347627/

Updating oxygen os without losing TWRP possible ?

Hello,
i am using oxygen os 3.1 with TWRP recovery. No root no modifications other than TWRP.
Is it possible to update without factory reset to the latest oxygen os without losing my custom recovery TWRP?
I read about signed flash able zips - but i am not sure on how to proceed.
Guidance is appreciated !
Thank You
Device is Oneplus two 64gb.
german_oneplus_two said:
Hello,
i am using oxygen os 3.1 with TWRP recovery. No root no modifications other than TWRP.
Is it possible to update without factory reset to the latest oxygen os without losing my custom recovery TWRP?
I read about signed flash able zips - but i am not sure on how to proceed.
Guidance is appreciated !
Thank You
Device is Oneplus two 64gb.
Click to expand...
Click to collapse
You want to upgrade to latest 3.5.5 ? You'll have to wait until signed flashable zip for 3.5.5 is made. For now 3.1.0 is the latest flashable zip.
Check this thread -> http://forum.xda-developers.com/oneplus-2/general/rom-mirrors-official-oxygen-os-roms-ota-t3209863
Thank you,
so i will wait for the full signed flashable zip.
still - my questions remain - i do not completely understand this :
Note: Since OTA incremental update zips will fail on rooted devices or devices with modifications to system files, it's not possible to use these to update without reverting back to completely stock, unrooted first.
To update you must either wait for the new, full, signed flashable zip to appear (usually a few weeks after the OTA update) or use the following workaround:
Boot into TWRP recovery
Flash the latest full signed flashable zip
Flash the new OTA incremental update zip
Flash the SuperSU zip
Reboot
Is it possible with the full signed flashable zip to keep twrp and my settings ?
Thank You
german_oneplus_two said:
Thank you,
so i will wait for the full signed flashable zip.
still - my questions remain - i do not completely understand this :
Note: Since OTA incremental update zips will fail on rooted devices or devices with modifications to system files, it's not possible to use these to update without reverting back to completely stock, unrooted first.
To update you must either wait for the new, full, signed flashable zip to appear (usually a few weeks after the OTA update) or use the following workaround:
Boot into TWRP recovery
Flash the latest full signed flashable zip
Flash the new OTA incremental update zip
Flash the SuperSU zip
Reboot
Is it possible with the full signed flashable zip to keep twrp and my settings ?
Thank You
Click to expand...
Click to collapse
As it says you can't use incremental update zips if you're rooted or has a modified system. You can either Flash the latest full signed flashable zip & then Flash the new OTA incremental update zip (without rooting) OR just wait for the Full signed flashable zip & then flash it(whether you're rooted or not). As for now neither "Incremental" nor "full" signed zip exists for 3.5.5.
And Yes. You won't lose TWRP.
To understand more about "Incremental" & "Full" update packages, read this -> https://source.android.com/devices/tech/ota/tools.html
you can flash full rom zip and without restarting flash twrp image in twrp itself, its kinda tricky but it works
3.5.5 Full Signed Flashable Zip's now available. Check the thread I sent before.
german_oneplus_two said:
Hello,
i am using oxygen os 3.1 with TWRP recovery. No root no modifications other than TWRP.
Is it possible to update without factory reset to the latest oxygen os without losing my custom recovery TWRP?
I read about signed flash able zips - but i am not sure on how to proceed.
Guidance is appreciated !
Thank You
Device is Oneplus two 64gb.
Click to expand...
Click to collapse
I was on 3.1.0 with Hybrid recovery and root before the OTA for 3.5.5 came through. It installed itself via the ota (1.2gb) and when it was done I was back on default recovery and no root...which i fixed in few minutes..So I am now on the latest OS 3.5.5 with Hybrid Recovery and Root..everything is perfect! No network drops so far e.t.c
Edit: I didn't have to unroot for the OTA to work..It just did. Also didn't lost any data. all apps +data still intact
Thank You B!Gguy.
Signed flashable worked flawless

can I flash ota update in twrp?

I received ota update notification. I downloaded the zip, it is npn25-37, currently my phone is on npn25-33. I have magisk root and twrp. I wonder if I can flash the ota update zip in twrp? Thanks
xdataibai said:
I received ota update notification. I downloaded the zip, it is npn25-37, currently my phone is on npn25-33. I have magisk root and twrp. I wonder if I can flash the ota update zip in twrp? Thanks
Click to expand...
Click to collapse
It will not work, OTAs require the stock recovery. Since you hace TWRP there is also a chance that it might have mounted your system before, so your system image isn't vanilla anymore and the OTA will fail to apply. First try flashing stock recovery from here (search for the version you currently have, which is -33) https://forum.xda-developers.com/g5-plus/how-to/firmwares-moto-g5-plus-t3593160 and then apply the ota. Since the firmware you're on is quite outdated, you'll probably have a couple more OTAs on the way.
Now if that doesn't work, you'll need to back up everything you have (apps and data) and flash system, oem and recovery, and then apply the ota updates, then restore your data.

Is it safe to OTA install updates while rooted and magisk?

I rooted my phone and use magisk modules too. New update appeared, am I safe to install it OTA? Will I lose root or magisk if I update?
Tomogitarist said:
I rooted my phone and use magisk modules too. New update appeared, am I safe to install it OTA? Will I lose root or magisk if I update?
Click to expand...
Click to collapse
The update won't go through and you will encounter an installation problem error. Revert back to the stock boot.img of your security patch month (e.g. January, Feb patch) and then try the OTA and you should be able to update.
Google "how to apply OTA with Magisk" if you haven't touched the system partition. But no it is not safe, I bootlooped.
It is safe. OTA updates system partition. Magisk uses boot partition.
In other hand if you ever mounted system as read AND WRITE even if you didn't make any change to it the OTA will fail.
OTA also will fail if detects boot partition modification, what means you'll have to temporally restore boot (uninstall Magisk) to update and then reinstall it. You'll find how to in this forum.

Need instructions to install Magisk systemless root in S7 Edge running 8.0

Hi guys,
I have gone thru the forum to install Magisk systemless root in S7 Edge running 8.0 but have few questions.
1. Is TWRP mandatory to install Magisk for systemless root?
2. If above point is yes, then will the device be eligible for OTA even with TWRP recovery?
3. Please provide steps to install Magisk systemless root in S7 Edge running 8.0 latest October patch
Thanks in advance.
mpadhu said:
Hi guys,
I have gone thru the forum to install Magisk systemless root in S7 Edge running 8.0 but have few questions.
1. Is TWRP mandatory to install Magisk for systemless root?
2. If above point is yes, then will the device be eligible for OTA even with TWRP recovery?
3. Please provide steps to install Magisk systemless root in S7 Edge running 8.0 latest October patch
Thanks in advance.
Click to expand...
Click to collapse
Go Here https://forum.xda-developers.com/s7-edge/how-to/guide-how-to-root-android-8-0-oreo-t3840271
1. U need TWRP for flashing Magisk.
2. When ur intentions are gaining root access, u should forgo OTA.
3. The above link has everything u need.
joeljose1001 said:
Go Here https://forum.xda-developers.com/s7-edge/how-to/guide-how-to-root-android-8-0-oreo-t3840271
1. U need TWRP for flashing Magisk.
2. When ur intentions are gaining root access, u should forgo OTA.
3. The above link has everything u need.
Click to expand...
Click to collapse
Thank you for your time and response. There is something called systemless root which will hide the root from the system and also allows official OTA updates.
mpadhu said:
Thank you for your time and response. There is something called systemless root which will hide the root from the system and also allows official OTA updates.
Click to expand...
Click to collapse
From what I know, when you download an OTA and prompt your device to install it, your Android system performs a series of checksums to ensure that your /system, /boot, /recovery, and /vendor (or /OEM) partitions are unmodified from their original stock configuration.
The benefit of Magisk is that it does not modify the system partition, but while installing Magisk, the first thing it does is patch boot image. So you might have to restore the original boot image for the OTA to work.
Also, the OTA is designed to be installed via the stock recovery which has been overwritten with TWRP. So, I think u will face a problem there too.
I'm not saying that it's impossible to get an OTA update. It just might not be as easy as u r used to.
joeljose1001 said:
From what I know, when you download an OTA and prompt your device to install it, your Android system performs a series of checksums to ensure that your /system, /boot, /recovery, and /vendor (or /OEM) partitions are unmodified from their original stock configuration.
The benefit of Magisk is that it does not modify the system partition, but while installing Magisk, the first thing it does is patch boot image. So you might have to restore the original boot image for the OTA to work.
Also, the OTA is designed to be installed via the stock recovery which has been overwritten with TWRP. So, I think u will face a problem there too.
I'm not saying that it's impossible to get an OTA update. It just might not be as easy as u r used to.
Click to expand...
Click to collapse
Got your point. Thank you. I read that Magisk can be installed without root or even custom recovery.
The below is taken from the official Magisk thread https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
How to download or extract the stock boot image file from my official ROM?
"Via Magisk Manager:
This method does not need root, and also does not require a custom recovery.
However, you MUST have a stock boot image dump beforehand, and you also have to be able to flash the patched boot image, either through fastboot/download mode or ODIN
Install the latest Magisk Manager
If you're planning to flash the patched boot image through ODIN, go to Settings > Update Settings > Patched Boot Output Format, and select .img.tar. For normal users leave it as the default .img
Press Install > Install > Patch Boot Image File, and select your stock boot image file
Magisk Manager will now patch your boot image, and store it in [Internal Storage]/Download/patched_boot.img[.tar]
Copy the patched boot image to your PC. If you can't find it via MTP, you can pull the file with ADB:
adb pull /sdcard/Download/patched_boot.img[.tar]
Flash the patched boot image to your device and reboot. Here is the command if using fastboot:
fastboot flash boot /path/to/patched_boot.img"

Categories

Resources