Just some notes on trying to install LineageOS on Google Pixel.
Basic install steps
- Unlock bootloader
- Boot into TWRP
- Wipe System and format
- Push LineageOS zip via adb (or other methods)
- Install LineageOS zip
- (Optional) Reboot back into TWRP and install Gapps
- Reboot (should boot into Lineage. If not, try changing a/b)
Lineage 15 Official
Install guide is here. Here are some extra notes.
Google Recovery Images (Helpful if you didn’t create a backup…) https://developers.google.com/android/images
LineageOS Download link
Lineage OS 16 Unofficial
ADB and fastboot should be in the following directory. May need to install them if they are not.
Boot TWRP image using fastboot. Run from the bootloader menu, should automatically load.
fastboot boot twrp.img
Seems like there can be some issues with the Pixel and it swapping A/B on boot. You can use TWRP to reboot into A or B, or set it with fastboot
Apparently a/b devices will show up as no os installed in TWRP
Backup and restore
You can use adb to create a backup of your phone. Not sure what all it backs up. Once restored pictures, background, and other files seem to be there.
adb backup -apk -shared -all -f \Path\to\folder\backup_name.ab
Restore backup with
adb restore \Path\to\folder\backup_name.ab