🛠️Upgrading Lineageos

updating_lineageos

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.

  1. Follow the lineageOS upgrade or update instructions.

  2. Reinstall TWRP following https://twrp.me/google/googlepixel3a.html

    1. Note: Make sure you have good adb drivers, or adb might work but not fastboot!

  3. Boot into system and then reboot into TWRP

  4. Extract a boot image

    1. enter an adb shell

    2. cd /sdcard/TWRP/

    3. Run the ./Extract script

  5. ReRoot with Magisk

    1. Boot into system

    2. (Make sure the Magisk app is installed)

    3. Use the app's Install menu to patch the boot image, generating a file in Downloads/

    4. Use adb to fetch the patched image (I reboot to TWRP first)

    5. Reboot to bootloader and use fastboot to boot the patched image and make sure it works

    6. Reboot to bootloader and use fastboot to flash the patched boot image (fastboot flash boot m...img)

  6. Install the F-Droid privileged extension

    1. Download the latest OTA: https://f-droid.org/en/packages/org.fdroid.fdroid.privileged.ota/

    2. Reboot into TWRP

    3. adb push the OTA zip

    4. Install the zip

    5. Reboot into system

Subhyphae