How to install Android 13 AOSP on OnePlus 5 and 5T

There was a time when the OnePlus 5 and OnePlus 5T devices were seen as super-cool smartphones with amazing features. These smartphones belong to a time when the OEM was reigning supreme in the smartphone market and had established itself as the flagship killer. In custom development, these two smartphones were two of the most popular players in town. Despite being slightly dated, they still offer quite a lot.

You can boost these devices with the newest iteration of the Android OS by taking the custom ROM route. As a result, you’ll be able to welcome a bunch of intriguing features like the expansion of Material You themes, the ability to edit clipboard contents, and a lot more. In this guide, you’ll get to know how to easily download and install Android 13 AOSP ROM on your OnePlus 5 and OnePlus 5T devices.

Download and install Android 13 AOSP ROM on your OnePlus 5 and OnePlus 5T

Step 1: Install Android SDK

To start off, install the Android SDK Platform Tools on your PC or computer. It’s the official ADB and Fastboot binary provided by Google. You should download it and extract it to a convenient location on your PC. Doing this will give you the necessary platform-tools folder.

Step 2: Enable USB Debugging and OEM Unlocking

Then, you will need to enable USB Debugging and OEM Unlocking on your smartphone. The former makes your smartphone recognizable by the PC in ADB mode. Meanwhile, it’ll allow you to easily boot your smartphone to Fastboot Mode.

OEM Unlocking will be needed to carry out the bootloader unlocking process. You’ll need to go to Settings -> About Phone -> Tap on Build Number 7 times -> Return to Settings -> System -> Advanced -> Developer Options -> Enable USB Debugging and OEM Unlocking.

Step 3: Unlock Bootloader on your smartphone

How to install Android 13 AOSP on OnePlus 5 and 5T

You’ll also need to unlock the bootloader on your OnePlus 5/OnePlus 5T if you’re looking to root your phone. Remember that doing this will wipe off the data and might even make your device’s warranty null and void.

Step 4: Downgrade OnePlus 5/OnePlus 5T to Android 10

Then, you’ll need to downgrade your OnePlus 5 or OnePlus 5T to Android 10. This is because the custom ROM will require you to be on the OxygenOS firmware version OOS 10.0.1. You should make use of the MSM Download Tool to do it.

Step 5: Download the Android 13 ROM and GApps for OnePlus 5 and OnePlus 5T

  • First, you’ll need to grab the AOSP Android 13 ROM for your device from the links mentioned below –

OnePlus 5 (Cheeseburger) | OnePlus 5T (Dumpling)

  • After that, you should download the Android 13 GApps
  • Now, you’ll need to transfer both files to your device

Step 6: Boot your device to Fastboot mode

  • Connect your smartphone to the PC using a USB cable while ensuring that USB debugging is enabled
  • After that, go to the platform-tools folder and type in CMD in the address bar before hitting Enter to launch the Command Prompt
  • Then, type in the following command in the CMD window for booting your smartphone to Fastboot Mode
adb reboot bootloader
  • For verifying the Fastboot connection, you should type the following command and you’ll get back the device ID –
fastboot devices

Step 7: Install TWRP on your OnePlus 5 or OnePlus 5T

  • To start off, download the TWRP Recovery for your device by going to the official website
  • After that, rename the recovery to TWRP so that the name becomes “twrp.img”
  • Now, you should transfer this file to the platform-tools folder on your PC
  • Then, execute the following command to flash the TWRP on your device –
fastboot flash recovery twrp.img
  • Execute the below command to boot the device to the OS –
fastboot reboot
  • While it’s in the process of booting up, you should use the hardware key combinations to boot it to TWRP
  • This is done for ensuring that the device doesn’t end up replacing TWRP with the stock recovery on the next boot

Step 8: Install the Android 13 custom ROM on your OnePlus 5 or OnePlus 5T

  • From TWRP, head over to Wipe -> Advanced Wipe and then select Dalvik System and Data
  • After that, perform a right swipe to wipe the data on these partitions
  • Once it is done, head over to Install, choose the Android 13 ROM ZIP, and then flash it
  • Now, go to install and then select the Android 13 GApps ZIP file and flash it
  • Lastly, go to Reboot and then select System
  • Your smartphone will be booted to Android 13
Aviral Sharma
Aviral Sharma
Aviral Sharma is a talented and passionate writer who has been using words to express his thoughts ever since he learnt how to hold a pen. He is passionate about outer space, history, sports and most importantly technology. Aviral is a regular writer for rootmygalaxy.net and has been getting better by the day. He currently own Samsung Galaxy S24 Ultra, iPhone 13 and a HP Pavilion laptop

Leave a Comment