This hypha documents the process I go through to update LineageOS on my Pixel 3a phone (codename sargo). The device is unlocked, rooted with Magisk, uses F-Droid for package management, and has the TWRP custom recovery.
-
It is tradition to first try the process with an inadequate USB cable -,-
-
Follow the lineageOS upgrade or update instructions.
-
For the final
sideloadcommand to work, the mode must be selected from the TWRP Advanced menu
-
-
Reinstall TWRP following https://twrp.me/google/googlepixel3a.html
-
Note: Make sure you have good adb drivers, or adb might work but not fastboot! Most recently, I've only been able to use
fastboot booton Windows withUniversalAdbDriver, even though adb seemed to work fine from Linux for the previous steps.
-
-
Boot into system and then reboot into TWRP
-
We need root for the next step and TWRP provides this. We also get confirmation that the TWRP install went well/
-
-
Extract a boot image
-
enter an
adb shell -
cd /sdcard/TWRP/
-
Run the ./Extract script
-
-
ReRoot with Magisk
-
Boot into system
-
(Make sure the Magisk app is installed)
-
Use the app's Install menu to patch the boot image, generating a file in Downloads/
-
Reboot to TWRP
-
Use
adb pull /sdcard/$path_to_fileto fetch the patched image -
Reboot to bootloader and use fastboot to boot the patched image and make sure it works
-
TWRP's fastboot does not work for this.
-
-
Reboot to bootloader and use fastboot to flash the patched boot image (
fastboot flash boot $image)
-
-
Install the F-Droid privileged extension
-
Download the latest OTA: https://f-droid.org/en/packages/org.fdroid.fdroid.privileged.ota/
-
Reboot into TWRP
-
adb push the OTA zip (if its not already there)
-
Install the zip
-
Reboot into system
-