[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Altercentric:
OSX complete install instructions (Pixel 2 XL)

I couldn't find these all in one place anywhere so here it is for everybody, enjoy! ;)

These instructions will take you all the way from running stock out of the box android to lineage 17.1. This is a guide for OSX users. Please note this will not install GApps!

Step one:

--> Make sure your device is fully charged (75% will do, but better safe than sorry in my opinion)

--> Navigate to device settings then 'About phone' --> 'Build number' tap it until a notification pops up; 'You are now a developer!' or similar.

--> Search for 'Developer settings' in the settings menu, slide the slider to enable USB debugging and OEM unlocking (Note: you must have a network connection to enable OEM unlocking!)

Step two:

Download the necessary files:...

** Device side:**

Latest Lineage OS 17.1 (taimen) (SHA-1: a9b07dc015c6c4d91bacaae6150f5594d044ba8f)

TWRP

You will need

both

the latest zip and image. (3.4.0-1 at the the time of writing)

Magisk (v20.4 at the time of writing)

Save these files somewhere obvious, ideally all in the same folder. It'll save time later...

**OSX side**

ADB/fastboot

--> Unzip once you've grabbed this and stick the folder 'platform-tools' on your Desktop.

Android File Transfer

--> Install.

--> Use Android File Transfer to move the 3 zip files you just downloaded to the root of the phone storage.

NOTE: You may need to enable PTP/File Transfer mode on your device. To do so, slide down the notification bar and click on 'USB connection' when the device is plugged in.

--> At this stage it makes sense to navigate to wherever you saved the TWRP .img. Rename it to 'TWRP.img' and then cut and paste it into the 'platform-tools' folder.

Step 3:

--> open up a new Terminal window and navigate to the 'platform-tools' folder using.

cd /path/to/platform-tools

--> Hit enter.

Note: The *SPACE* between cd and the path is important, don't forget it!

Note: A quick way to find a file-path in OSX is to right-click --> 'Get info' then just cut and paste whatever comes after 'Macintosh HD'. :)

Providing no errors appear, just to check you are in the right place type in:

ls

--> Hit enter.

If the terminal lists the contents of the folder, you're in the right place!

--> Plug your device in; if any notifications appear asking about 'fingerprinting' just accept them all.

In the terminal type in:

./adb devices

--> Hit enter.

Note: './' is important, if you forget it you will get an error and be unable to proceed any further... It tells the terminal (BASH) what to look for and where to look.

If your devices serial number shows up, congratulations! Your PC is successfully communicating with your phone.

--> Close the terminal and unplug your device.

Step 4: Unlocking the bootloader.

***NOTE: This step will wipe all data on the device!***

--> Power of the phone and then reboot holding down

both

the power and volume down buttons simultaneously.

--> You should now be in fastboot mode (if there's a green alien lying down onscreen you've found it.)

--> Plug the phone into the Mac.

--> Open a Terminal window and navigate to platform-tools again:

cd /path/to/platform-tools

--> Hit enter.

-Note: Follow the first half of 'Step 3' again up until the adb command if you are having difficulties!

--> Type in:

./fastboot devices

--> If a device appears you can proceed to the next stage.

NOTE: I cannot stress this enough,

DO NOT

forget ./ ! If you do, you will error out and be unable to proceed!

--> Type in:

./fastboot flashing unlock

--> Wait until the command executes successfully...

--> Hit enter

Type in:

./fastboot reboot

--> Close the terminal window

Providing the device reboots correctly (It will give a message on boot informing you the bootloader has been unlocked). You now have unlocked the bootloader. Nice! :good:

Step 5: Installing a custom recovery. (TWRP)

--> Boot your phone in fastboot mode...

--> Plug it into the Mac and open up a terminal window.

--> Navigate to platform-tools...

--> Check your phone is listed...

--> type in:

./fastboot boot path/to/twrp.img

Note: path/to/.twrp.img is whatever the path is to the TWRP.img image we saved at the end of 'Step 2', don't forget...

--> Wait until the command executes successfully.

-->

DO NOT UNPLUG YOUR DEVICE.

--> The device should now be displaying the TeamWIN recovery.

--> Navigate to; Install --> select the twrp .zip we placed in the root of the phone and install it. (tap it and follow the onscreen prompts)

--> Clear Dalvik and reboot the phone, providing it boots correctly you now have a custom recovery installed. Awesome!

Helpful link in case of issues:

https://xdaforums.com/pixel-2-xl/development/twrp-alpha-pixel-2-xl-t3698148

***From now onwards the phone no longer needs to be connected to the Mac.***

Step 6: Install Lineage 17.1

--> Turn the device off and boot into fastboot mode...

--> Cycle through the menus until you find 'Recovery' using the volume rocker, select it by pressing the power button once.

--> Once you are in TeamWIN recovery, navigate to 'Install' and select the Lineage .zip we placed on the device in 'Step two'

--> Install it (Follow the onscreen prompts)

--> Navigate to 'Install' again, select the Magisk .zip we placed on the device in 'Step 2'

--> Install it.

--> Reboot the device!

:victory: :victory: :victory:Congratulations! :victory: :victory: :victory:

You are now running LineageOS on your Pixel 2 XL.

Massive thanks to all the developers!