How to Install LineageOS 20 on Google Pixel 5 and 5a 5G

LineageOS 20, a powerful custom ROM for Pixel 5 and 5a 5G that breathes new life into your device and provides a personalized Android experience. In this blog post, we will guide you through the process of installing LineageOS 20 on your Pixel 5, unlocking a realm of exciting features and customization options.

What is LineageOS 20?


LineageOS is an open-source and one of the most popular custom ROMs for Android that empowers users to take control of their Android devices. It is built upon the Android Open Source Project (AOSP), offering a clean and streamlined user experience while providing a wealth of customization possibilities. LineageOS 20 is the latest iteration of this renowned custom ROM, tailored specifically for the Google Pixel 5 and 5a devices.

Remember, these instructions are meant for LineageOS 20 and must be followed meticulously. It’s advisable to stop immediately if something fails during the process.


Before diving into the installation process, let’s ensure we meet some basic prerequisites:

  1. Read the instructions thoroughly at least once before following them. This will help you avoid mistakes and misunderstandings.
  2. Download Google Platform Tools R34.0.4.
  3. Enable USB debugging on your device.
  4. Unlock the Bootloader of your device and boot it once with the stock OS. Follow the instructions to unlock bootloader on your Google Pixel.
  5. Make sure to check all functionalities such as sending and receiving SMS, placing and receiving calls, including via WiFi and LTE.

Note: Some devices require the usage of VoLTE/VoWiFi once in stock to provision IMS. This will not work on LineageOS if it does not work on the stock OS.

Important Warning: Please ensure your device is running on Android 13.0 firmware. If it is running on an older or newer version, you should upgrade or downgrade to version 13.0 before proceeding. This platform requires additional partitions to be flashed for the recovery to work correctly. You can follow this guide to update your Google Pixel.


Here is the link for download all the required files to install LineageOS 20 on your Pixel 5, Pixel 5a.

Now, you’re ready to install LineageOS. Download the LineageOS installation package or build the package yourself.

Optionally, if you want to install an application package add-on such as Google Apps then download the arm64 architecture from the below link.

Gapps download link: If you want to flash the Google apps, then download from here.

Also read: How to install LineageOS on Pixel 6 Series

Flashing Additional Partitions

To get started, make sure you’ve also download the following files from the above download section.

  • boot.img
  • dtbo.img

Move all the downloaded files in a single folder on your desktop.

Afterward, turn off your device and boot it into the bootloader mode. This can be achieved by holding the Volume Down + Power buttons simultaneously while the device is off.

Open the Platform tools folder, open the command prompt window in the same folder.

Next, flash the downloaded image files to your device by typing the following commands:

fastboot flash boot boot.img
fastboot flash dtbo dtbo.img

Install Custom Recovery

Now, download the latest Lineage Recovery file, named vendor_boot.img. Connect your device to your PC via USB and ensure it’s in fastboot mode. You can check if the PC finds your device by typing fastboot devices.

If you don’t get any output or receive an error, ensure your device appears in the device manager without a triangle on Windows. On Linux or macOS, you may need to run fastboot as root. If you continue to face issues, consider trying a different USB port or cable.

Now flash the recovery on your device by typing:

fastboot flash vendor_boot vendor_boot.img

Reboot into recovery to verify the installation. If your recovery does not show the LineageOS logo, you’ve accidentally booted into the wrong recovery. Please start at the top of this section again!

Also read: How to install LineageOS on Pixel 7 Series

Installing LineageOS from Recovery

To install the LineageOS:

  1. Reboot into recovery: With the device powered off, hold Volume Down + Power. Then use the menu to select Recovery Mode.
  2. Tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption, delete all files stored in the internal storage, and format your cache partition.
  3. Return to the main menu.
  4. Sideload the package. Do not reboot before completing the next steps. On the device, select “Apply Update”, then “Apply from ADB” to begin sideloading.
  5. On your PC, sideload the package using adb sideload

Note: Sometimes, even if the process succeeds, the output will stop at 47% and report adb errors. This is fine.

By following these steps, you should be able to successfully install LineageOS 20 on your Google Pixel 5 or 5a 5G.

Share it with friends
Imran Aftab

Hello, I'm Imran Aftab, a tech enthusiast using Android, iOS, and Windows. Hardware expert for Gaming & Crypto mining rigs. I have been writing on tech since 2013, starting with ohguideme, then Androidcentral. I have written and published several guides and tutorials on how to root Android, flash custom ROM, recovery, and jailbreak iPhone, and have written several guides on how to bypass FRP. I also worked in a phone repair shop, so I have pretty good experience with mobile software and troubleshooting. So, all the guides you see here have been tested and confirmed to work.

Click Here to Leave a Comment Below 0 comments