A further note to the continuing difficulties created by an OTA update to eOS on a OnepLus 6. Though the update appears to be carried out normally as one would expect on an A/B device, the procedure still creates considerable complications if a user wants to keep root privileges.
I decided to go ahead with what appears to be a minor update to an 0.16 Q dev version dated 20210424 from the previous one of 20210414 using the well-researched instructions of @chrisrg to be seen above in this post.
-
Launched the update after download and the âinstallâ procedure took just a few minutes with setting speed priority but the 2nd phase âfinalising package installationâ took well over 10 minutes.
-
Refused the âInstallâ invite in order to go back to uninstall Magisk, then ârestore imagesâ without rebooting.
-
Then downloaded the TWRP a/b/retention script and tried to install but failed with message âtwrp ramdisk not foundâ. I decided to ignore this and continue with @chrisrgâs instructions.
-
Back with Magisk to install it to inactive slot, and after flashing on reboot I ended up with my normal system and root privilege maintained.
However the problem I disovered was that the update had once again replaced my TWRP recovery with the eOS version. As I knew that this recovery would not allow me to flash anything other than eOS updates, I decided to try again to reflash TWRP, which is done in two steps: first by using fastboot to boot an image file of twrp, then on entering twrp recovery to reflash the mauronofrio installer version which reinstalls to the boot image on both slots.
However, the installer warned me that it would remove magisk! So I spent a long time trying to reflash a new boot image using the patched version made with Magisk. However after some research I discovered that the usual command âŠ
./fastboot flash boot magisk_patched-xxx.img
⊠no longer worked. After many reboots to fastboot mode and vain attempts that gave me at times the strange error âdevice does not support slotsâ when I tried to specify one, I finally hunted for a solution to another error message âcannot get boot partition sizeâ and learned that a special fastboot command is needed:
./fastboot flash:raw boot_b magisk_patched-xxx.img
This command succeeded and had to be repeated with the âboot_aâ parameter to have the rooted boot image on both slots. After another ultimate reboot to system, I finally returned to my updated and rooted eOS.
Obviously this long drawn-out OTA update was complicated by the failure of the retention script supposed to keep my twrp recovery on both slots. So this is why I found the âeâ recovery instead, and I had to go through the whole procedure of reflashing the patched image.
Why the retention script failed I have no idea and can only speculate that it may have been modules I had installed with Magisk that should have been uninstalled beforehand. I saw on one site a mention to this effect which was advised before uninstalling Magisk (v. step 2).
What is my conclusion after the various struggles I have had with the OP6 because of its A/B configuration? Much as I like this device and appreciate its rapidity and good battery life, I have to ask myself if its worth all this effort just to have a simple update. Iâm sure others may be tempted to switch to a simpler device, but my preference to keep the advantages of a rooted device is in part due to the lack of a simple backup procedure that would permit a user to keep his choice of apps with all their configurations. I know that the idea of incorporating such a feature has been talked about, but strangely it seems not to be mentioned in the recent roadmap for 2021. I hope this is just an oversight since the subject keeps cropping up in various posts on this forum.
The other wish (that may be coming) is to have a better e-recovery that would allow flashing of other tools and keeping a rooted device if the user so wishes. I realise that this increases the risk of being hacked, but if precautions are taken and unrooting made simple then it is up to the user to decide if the advantages outweigh the risk.