LineageOS is a free and open-source operating system for smartphones and tablet computers, based on the Android mobile platform.
This is an unofficial build of LineageOS for the Pixel 2 (walleye). I always liked Lineage (and its predecessor CyanogenMOD) as well as the Google line of phones. Unfortunately having a Google Pixel phone isn't certainty for a lot of custom ROMS anymore, so that's why I decided to compile my own version. It's been quite challeging, but I think I finally have a build that is good enough to share.
This ROM is is always built straight from the LineageOS sources found on https://github.com/lineageos. There are only 3 changes in order to get this build:
- The binaries for this ROM come from AICP
- GApps are compiled with the ROM from OpenGApps (nano version) including the Pixel specific bits for unlimited photo upload for instance
- Disabled Android Verity Boot (AVB), so we don't get the security warning when booting
Installing the ROM can be a little hard, especially the first install. Upgrades will be relatively easy though. This first setup is only needed when coming from a different ROM then this. I can't support you if you did't follow this first installation. Be warned it will wipe your user data in the process
- In order to get the initial setup and also to use the same vendor partition as the ROM you have to install the latest stock Pixel 2 image from Google found here. More info on unlocking your phone and installing the latest Pixel image can be found in the excellent post by @nathanchance found here. After flashing the image make sure you reboot at least once (no need to set it up now though).
(As an alternative I also privide a little script for installing the Google image, the benefit of this is that it'll flash the image to both slots (see downloads section), so they are both on the latest build. It also automatically boots you to TWRP for installing the ROM directly afterwards. (convenient for flashing monthly updates without wiping data). All instructions for using the script are inside the script itself)
- Place the ROM and optionally the TWRP zip and root from (Magisk or from LineageOS (not tested) on the phone and reboot to recovery by using the command line (fastboot boot twrp.img)
- Wipe 'data' and 'Dalvik / Art Cache' from TWRP - Wipe - Advanced Wipe. Optionally you should also delete the Android folder on your internal storage through the TWRP File Manager
- Flash the ROM and optionally the TWRP zip and reboot the phone
- Now the tricky part: you have to decide now how you want to setup your phone. If you want to set it up as a new phone then it's easy. Just select it after setting up your WiFi and continue as usual. If you want to set it up your Google account from the cloud (restore your previously made backup) you will have to do another necessary step due to some inconsistencies with GApps and AOSP. Everything you need to do is explained in detail in this post from @adinkwok. You should start at number 3 from here. Great find!
Upgrades to new version
After the hard initial work to get the ROM installed it's going to be easy for upgrades to new versions.
- Download the new ROM and reboot of flash to TWRP
- Flash the new ROM and optionally TWRP. If you want to flash another kernel or a root solution you will have to reboot you phone, so it switches slots and let it boot normally. Then go back to recovery and flash in this order: TWRP - kernel - Magisk and reboot
- Download the latest image from the Google Factory Images site and extract it accordirng to the intructions in the flash script
- Reboot your phone in bootloader mode
- Run the monthly_update script (see downloads)
- When done properly your phone should be in recovery mode now. Now you can follow th enormal procedure for flashing an update
- Use Powerbutton for flashlight when Ambient Display is set
- Face Unlock ?
Now finally for the good part, the downloads. In this folder you will always find the latest ROMs and scripts: