Published: Tue, Sep 23, 25

Fix corrupt (OTA) over-the-air update with LineageOS.


Fix BAD OTA Update

I ran into some problems doing the OTA update last night
ended in a complete mess with my Google Pixel 2 XL.

  • These were the only steps that seemed to worked after the failed system OTA currupt fiasco… to get WiFi and GSM back online / working this is what i had to do…

Pixel 2 XL (Taimen) — Full Reflash & LineageOS Install (Both Slots)

WARNING: This process will erase all user data and system partitions. Phase 1: Reflash Stock to Slot A and B


  • Boot into Fastboot/Bootloader Mode

        Power off the device.
        Hold Power + Volume Down until the bootloader screen appears.
    

  • Flash Full Stock Images to Slot A
fastboot set_active a

fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash modem modem.img
fastboot flash abl abl.img
fastboot flash xbl xbl.img
fastboot flash tz tz.img
fastboot flash devcfg devcfg.img
fastboot flash rpm rpm.img
fastboot flash cmnlib cmnlib.img
fastboot flash cmnlib64 cmnlib64.img
fastboot flash keymaster keymaster.img
fastboot flash hyp hyp.img
fastboot flash dtbo dtbo.img

  • Flash Full Stock Images to Slot B
fastboot set_active b

fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash modem modem.img
fastboot flash abl abl.img
fastboot flash xbl xbl.img
fastboot flash tz tz.img
fastboot flash devcfg devcfg.img
fastboot flash rpm rpm.img
fastboot flash cmnlib cmnlib.img
fastboot flash cmnlib64 cmnlib64.img
fastboot flash keymaster keymaster.img
fastboot flash hyp hyp.img
fastboot flash dtbo dtbo.img

Phase 2: Fix Corrupted Data

From the bootloader, use the volume keys to navigate to Recovery Mode.
Select it using the Power button.

In recovery, choose:

    Wipe data/factory reset
    Then Format data and confirm.

Phase 3: Install LineageOS (Slot A Recommended)

  • Flash Critical LineageOS Partitions
fastboot flash boot boot.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img

  • Enter LineageOS Recovery

    From the bootloader screen, use volume keys to select Recovery Mode, then press Power to confirm.


  • Sideload LineageOS via ADB

On your PC, run:

adb sideload lineage-22.2-20250717-nightly-taimen-signed.zip

If prompted with "To install additional packages, reboot to recovery first?":
    Select No
    If needed, manually Format data again in recovery.