[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jorgen2009:
[IMG="LineageOS Logo"]https://img.xda-cdn.com/CFSQ0DaLdeMY9sU3oS6dLoje9-Y=/https%3A%2F%2Fimg.xda-cdn.com%2FIESRqslEiR2gr0amHcsOU_vIQpE%3D%2Fhttps%253A%252F%252Fupload.wikimedia.org%252Fwikipedia%252Fcommons%252Fthumb%252Fb%252Fbe%252FLineage_OS_Logo.png%252F640px-Lineage_OS_Logo.png[/IMG]

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.

About

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 MindTheGapps 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

I am not a developer, I only build this ROM and it reflects the the current status. If there are any things missing or not working I suggest to contact the LineageOS team, they are the real geniuses here and deserve all the credits. I will try to keep this ROM updated on a regular basis.

First Installation

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. The bestway to flash a stock ROM in my opinion is @Deuces' script found here. The benefit of this is that it'll flash the image to both slots, so they are both on the latest build, including the bootloader and radio. All instructions for using the script are inside the forum. After flashing the image make sure you reboot at least once (no need to set it up now though).

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

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

After a monthly update from Google and only when LineageOS also adapted to the latest monthly sources (I will tell you this) you will have to do an extra step:

Download the latest Lineage OS ROM and place it on the internal storage

Download the latest image from the Google Factory Images site and run Deuces' script. No need to wipe your data!

After the script finishes it automatically boots into the bootloader. From here fastboot into TWRP and flash the previously downloaded new ROM, optionally followed by TWRP.

Optionally, after a reboot you can flash Magisk and/or another kernel.

Not working

Substratum

Use Powerbutton for flashlight when Ambient Display is set

Active Edge

Now playing

Downloads

I'm not maintaining this project anymore, download link has been removed.

Happy flashing :)