In this comprehensive guide, we will walk you through the process of installing LineageOS 20, based on the latest Android 13, onto your OnePlus 9R smartphone. While the OnePlus 9R comes preloaded with the ColorOS, which may not provide an optimal user experience, the device is well-suited for custom development, offering a wide range of tweaks, mods, and binaries. By installing LineageOS 20, one of the most popular custom ROMs, you can break free from the confines of the bloated ecosystem and enjoy a fluid and streamlined usage experience. So, let's delve into the step-by-step instructions to unleash the full potential of your OnePlus 9R.
Table of Contents
- What is LineageOS ROM?
- How to Install LineageOS Android 13 on OnePlus 9R
- STEP 1: Install Android SDK
- STEP 2: Enable USB Debugging and OEM Unlocking
- STEP 3: Unlock Bootloader
- STEP 4: Download ROM, Recovery, GApps, Vbmeta, Dtbo
- STEP 5: Boot to Fastboot Mode
- STEP 6: Flash Vbmeta and Dtbo
- STEP 7: Flash LineageOS 20 Recovery on OnePlus 9R
- STEP 8: Copy Content of Slot A to Slot B
- STEP 9: Factory Reset Device
- STEP 9: Install LineageOS Android 13 ROM on OnePlus 9R
- STEP 10: Install GApps
- Fix: Error During ADB Sideload
What is LineageOS ROM?
LineageOS is a custom ROM with a long-standing lineage tracing back to the days of CyanogenMod. It stands out for its commitment to providing a streamlined user experience, offering only the essential apps and services without any bloatware. While the ROM may not come preinstalled with Google Apps, Services, and Framework, you can easily install them later using the GApps package. By opting for LineageOS, you can expect a clean, efficient, and highly customizable user interface.
How to Install LineageOS Android 13 on OnePlus 9R
Before we begin, it is crucial to back up your device to ensure the safety of your data. Please note that performing the following steps may void your device's warranty and carry some risks. We recommend having your OnePlus 9R updated to the latest OxygenOS 13 Android 13 before proceeding with the LineageOS 20 ROM installation.
STEP 1: Install Android SDK
To start the installation process, you need to install the Android SDK Platform Tools on your PC. These official tools, provided by Google, include ADB and Fastboot binaries. Download the SDK Platform Tools and extract them to a convenient location on your computer. This will give you the platform-tools folder, which will be utilized throughout the installation guide.
STEP 2: Enable USB Debugging and OEM Unlocking
Next, enable USB Debugging and OEM Unlocking on your OnePlus 9R. USB Debugging allows your device to be recognized by the PC in ADB mode, while OEM Unlocking is essential for unlocking the bootloader. Access the Developer Options by going to Settings > About Phone > Tap on Build Number seven times. Then, navigate to Settings > System > Advanced > Developer Options and enable USB Debugging and OEM Unlocking.
STEP 3: Unlock Bootloader
Unlocking the
bootloader is a necessary step, although it will erase all data on your device and may void the warranty. If you are ready to proceed, refer to our detailed guide on How to Unlock Bootloader on OnePlus 9, 9 Pro, and 9R.
STEP 4: Download ROM, Recovery, GApps, Vbmeta, Dtbo
Download the following files required for the installation (GApps is optional):
- OnePlus 9R [lemonades]: LineageOS ROM | LineageOS Recovery | vbmeta | dtbo
- GApps: Download Link
The ROM and GApps files will be in ZIP format, while the recovery, vbmeta, and dtbo files will be in IMG format. Once downloaded, transfer all the files to the platform-tools folder on your PC. Rename the files as follows: recovery file to recovery.img, vbmeta to vbmeta.img, dtbo to dtbo.img, ROM to rom.zip, and GApps to gapps.zip.
STEP 5: Boot to Fastboot Mode
Connect your OnePlus 9R to your PC using a USB cable, ensuring that USB Debugging is enabled. Navigate to the platform-tools folder, enter "CMD" in the address bar, and hit Enter to launch the Command Prompt. In the Command Prompt window, enter the following command to boot your device into Fastboot Mode:
adb reboot bootloader
To verify the Fastboot connection, enter the following command. It should display the device ID:
fastboot devices
STEP 6: Flash Vbmeta and Dtbo
Execute the following command to flash dtbo:
fastboot flash dtbo dtbo.img
Then, flash the vbmeta by typing the following command:
fastboot flash vbmeta vbmeta.img
STEP 7: Flash LineageOS 20 Recovery on OnePlus 9R
Now, you need to flash the LineageOS recovery onto your device. Execute the command below:
fastboot flash recovery recovery.img
Once the flashing process is complete, enter the command below to boot into LineageOS Recovery:
fastboot reboot recovery
STEP 8: Copy Content of Slot A to Slot B
To maintain firmware version consistency between the two device partitions, you will copy all the contents of Slot A to Slot B. Follow these steps:
- Download
copy-partitions-20220613-signed.zipand transfer it to the platform-tools folder. Rename it tocp.zip. - In LineageOS Recovery, navigate to Apply Update > Apply from ADB.
- Open CMD inside the platform-tools folder and execute the following command:
adb sideload cp.zip
Once the process is complete, go to Advanced and select Reboot to Recovery. Your device will reboot into LineageOS Recovery.
STEP 9: Factory Reset Device
In LineageOS Recovery, go to Factory Reset. Select Format Data/Factory Reset > Format Data. Your device will now undergo a reset, and you will receive the message "Data wipe complete."
STEP 10: Install LineageOS Android 13 ROM on OnePlus 9R
In LineageOS Recovery, go to Apply Update > Apply from ADB. Return to the platform-tools folder, enter "CMD" in the address bar, and hit Enter to launch the Command Prompt. Enter the following command to flash the ROM file via Sideload:
adb sideload rom.zip
The installation process will commence, and once completed, you will receive the message "Total xfer: 1.00x" [If you encounter an error, refer to the FAQ section below]. If
you wish to install GApps, proceed to the next step; otherwise, select "Reboot System Now" to boot into the operating system.
STEP 11: Install GApps
Navigate to Advanced > Reboot to Recovery. Your device will reboot into LineageOS Recovery. Then, go to Apply Update > Apply from ADB. Enter the following command to flash the GApps file via Sideload:
adb sideload gapps.zip
You may receive a "Signature Verification failed" message because the GApps package is not signed by LineageOS. Select "YES" to proceed. Once the installation is complete, you can finally reboot your device into the operating system by selecting "Reboot system now."
That concludes the steps to install LineageOS ROM based on Android 13 on your OnePlus 9R. If you have any questions about the process, please let us know in the comments, along with the device you are using. We will provide a solution as soon as possible.