Yes that is also working. But is the kernel image already updated after the OTA process and before the final reboot? That would make it much easier, to regain root after the upgrade
It is, the (delta) OTA update takes the stuff in your current slot, applies its patches to it and writes the results to the unused slot.
Apart from some stuff that can be run after the OTA (if needed), the update is basically finished before you reboot.
OK, I was not aware that I could extract to boot image from the unused slot before the reboot. That makes it even easier to root after the OTA with some steps less.
Hallo everyone, I have a brand new FP4 which I rooted with magisk after unlocking the bootloader. Non change in recovery.
I see now that an update to version TP25.C.095 is available, but I have no idea of how it works on a rooted phone. Will it complete or should I remove root first and then re-root again? Or is it better not to update at all?
For me it never really worked from the first OTA update onwards. So I am not trying it anymore at all and re-root the system after every update. I did not see any chance to analyze this deeper and find the root cause for such behavior, at least with the time I am willing to spend on it
The CalyxOs on the FP4 is succesfully rooted. CalyxOs 5.6.2.
Now I would like to update to the CalyxOs 5.6.3 without losing Data and the root rights.
I have read, that since root is active, the OTA Updates do not work. So I tried to follow the steps for rooted devices.
Now I understood the 3 instruction steps better. So you mean I do not need to download the incremental updates manually!? They can be downloaded as usually, 2.nd step.
But nevertheless I think I fail with the first step because I got this message in Magisk which does not look sucefull feedback for the 1.st step.
Why the 1.st step fails?
Hm indeed a bit strange. Tbh I cannot tell why you cannot restore the previous image. My first guess would be that you rooted the device a bit differently and now the image to restore is not available.
Normally CalyxOS will tell you when it cannot install the Update (at least his was the case for me when I had it on my FP4). So you can at least try to just go to
Settings → System → System updates
and download and install the OTA Update.
When it has issues with root it will fail to install the update and tell you.
If it works I would just install magisk to inactive slot as described before reboot.
If you missed that - just root again - I still recommend the method from the first post (the one with only booting from a magisk patched image and then install magisk via app): How to root the FP5 and OTA update - at your own risk
Can you tell (if you remember) if this was the way you rooted the first time?
I’ve moved your posts to this topic since we are clearly talking about a FP4.
There’s two reasons this can happen:
You installed Magisk via a different method than outlined in the forum (e.g. flashed the boot.img directly)
You updated your Magisk installation to a new version without restoring the image first. Magisk will make a backup of your current boot partition so if you don’t restore before an update you’ll end up with a backup that won’t get you back to stock.
Either way you’ll have to flash the boot.img that matches the Calyx version you currently have installed to get OTA going again.
You answered your own question here, those are incremental updates, they build on top of each other.
(There are also full OTAs on that same page that also only work from one version to the next but don’t rely on the partitions on your phone. Those would work in your case, here’s how you’d install those, but remember backups, backups, backups!)
Don’t! Just get your update procedure in order and look out for Magisk updates, you want those security fixes
In fact I did installed Magisk via a different way. I have installed it in that way:
Patch the downloaded stock boot.img with Magisk
Transfer / adb pull that patched boot.img (magisk output file: magisk_patched_[random_strings].img) to your PC
Reboot to fastboot adb reboot bootloader and
did not made the following: temporarily boot from the patched boot.img fastboot boot /path/to/patched_boot.img
instead: fastboot flash boot /path/to/magisk_patched_[random_strings].img
4.Do not flash that boot.img!!!* → Here it is meant not to flash the “patched boot.img” in other words “magisk_patched_[random_strings].img”
did not executed this one: Do not flash that boot.img!!!* Wait for the device to boot (took a bit longer than usual)
Open the Magisk app (press Cancel when asked to perform Additional Setup), choose direct install and reboot
What would be the most elegant / efficient way to fix my state?
The easiest way would be to download the Calyx factory images for your current version (5.6.2 in your case), take the boot.img from there and flash that via fastboot flash.
That should get OTA going again, afterwards you can re-root with the procedure outlined in this thread.
If it doesn’t work and OTA still complains you have some other partition that doesn’t pass the checksum test (hopefully not ). In that case we’d have to look at logcat / you’ll need to sideload a full OTA, or worst case complete reinstall.
But before you do anything, make sure you have proper backups!
fastboot flash boot.img (the original not the patched)
Rooted the device according to the insctructions, boot temporarily to with the patched boot.img.
Start to uptdate according to the insctructions.
In Magisk when “Install to Inactive Slot (Atfer OTA)”, I got the log at the end:
! Unable to download bootctl
! Installation failed
Did you run the OTA update between these steps, that’s why were doing all this, isn’t it?!
So what state is your phone in rn, did you actually install Magisk or are you only fastboot booting it?
Depends, did you install Magisk completely?
→ Restore the stock boot.img in Magisk, run OTA, install Magisk to the other slot (OTA instructions basically, rerun if you get errors)
Only running a temporarily rooted system?
→ Reboot into an unrooted system, run OTA, follow the regular rooting process
I have rooted my device according the instructions in this forum. And than started the update process also according to the instructions in this forum.
I rerun this step: “Install to Inactive Slot (Atfer OTA)”,
two times. And got in both cases the failed status back.
I was not patient to wait a question. And reboted the device. No Brick, Root Rights still present, and the new version is 5.6.3.
I will observe this behaviour during the next update.
In the future you’ll only have to follow the OTA instructions. If there’s a Magisk version update don’t forget to restore the image beforehand as well (don’t install to the other slot in that case).
Otherwise you should be fine, I’ve been running CalyxOS like that since it got released for the FP4, never had any issues