Custom ROM

How to unlock bootloader and install Android Pie 9.0 on OnePlus 5 – Pixel Experience ROM

Unlocking bootloader is easy on OnePlus devices. Just follow this guide and you will be able to unlock your bootloader and install Pixel Experience ROM in under 20 minutes.

Few days ago I installed Pixel Experince ROM on my OnePlus 3T. The video is linked below. Since the process is very similar for OnePlus 5, I decided to write about it.

Note: Most of the file names in photos of this article are from my OnePlus 3T guide. These are representational photos. Since I don’t have a oneplus 5, I won’t be able to provide exact photos but they will be similar. All download links are for OnePlus 5 and if you follow this guide correctly you should be able to unlock your bootloader and install the ROM on your OnePlus 5.

In case you’re unfamiliar, Pixel Experience ROMs is ported from Google’s pixel devices. So, they have most of the features and design from those phones’s software plus some OnePlus specific features like gesture controls when screen is off for flashlight, camera and music playback.


Then, there is an option to configure the audio profile switch (three way slider on the left, above volume buttons).


I can’t stop talking about how good the stock Android ROM looks and feels and, I’m really sorry if you got bored. Let’s get into process of flashing this awesome ROM on OnePlus 5.

Fun Fact: OnePlus, Oppo and Vivo are brands of the same parent Company, BBK Electronics.

Things we’ll need:

  1. A Computer running Windows or Linux (Commands are same for both) with ADB installed. If you don’t have ADB installed on your computer follow this guide here: 15 Seconds ADB installer – XDA
  2. TWRP recovery – Download from here: Official TWRP page for OnePlus 5
  3. Pixel Experience ROM – Download from here: Pixel Experience ROM for OnePlus 5
  4. Of course a OnePlus 5 with at least 50% battery left (WARNING: Do not attempt to flash this ROM on any other phone, not even if it’s a OnePlus phone).

How to do it – Steps to install Pixel Experience ROM on your OnePlus 5:

Step 1 Move all files to one folder:

Move all downloaded files to one directory (folder) from where it’ll be easy to access the files. Let’s call it “Android Pie”.

Downloaded filesThe photo used above is representational. It is used from my OnePlus 3T guide.

Step 2 Unlock the boot loader:

This method is pretty straightforward for OnePlus phones. They initially launched their phone in 2014 with a custom OS – Cyanogen Mod (now, Lineage OS) so, it’s understandable that they’re a bit soft on locking down their phones unlike Xiaomi and other Chinese Companies.

NOTE: This step will wipe your data so make sure to backup any important files, messages and call logs before proceeding.

To unlock the boot loader, open settings and scroll to the bottom. Tap on about phone and scroll to the bottom again. Then, tap on Build number about 10-12 times. This will unlock the Developer options in settings. Go back in the settings app, there you should find Developer options above about phone. Tap on it and scroll down a little. There you’ll find OEM unlocking and advanced reboot options. Turn them on. Then press and hold the power/lock button. Select reboot from the menu that appears. Two more options will appear. Tap on reboot to boot loader. Then, your phone will reboot in fastboot mode.

Now connect the phone with a computer and open command prompt (on Windows) or terminal (on Linux). Then type “fastboot devices” this should display a list of connected devices. If you see something like this picture you’re good to go.

fastboot check

Then type “fastboot oem unlock” your phone should accept the command and ask you to confirm unlocking the device. On your phone press the volume keys to highlight the yes and no options. There once yes is highlighted, press the power key to select it. Your phone should now unlock the bootloader and perform a wipe. Let it boot. Then, set up the phone.

If you see a message like this appear during the boot, it means that your phone is successfully unlocked.

bl unlockRepresentational photo from my OnePlus 3T guide. You should see a similar message on your OnePlus 5.

Step 3 Installing and booting into TWRP:

Assuming that you have downloaded and moved all necessary files to a directory (folder) called “Android Pie”. Now, open the folder and press and hold the shift key. While holding the shift key, right click anywhere on the blank space of the window. Then, click on “open command prompt here”.

Then, connect your phone to your computer in fastboot mode. To do that, you have to first open settings on your phone and scroll to the bottom. Tap on about phone and scroll to the bottom again. Then, tap on Build number about 10-12 times. This will unlock the Developer options in settings. Go back in the settings app, there you should find Developer options above about phone. Tap on it and scroll down a little. There you’ll find advanced reboot option. Enable it. Then, press and hold the power button and select reboot followed by reboot to bootloader. Then connect your phone with your computer via USB cable.

Then, on your computer type “fastboot devices” to test whether the device is connected properly. If it’s connected, type “fastboot flash recovery RECOVERY_FILE_NAME_HERE.img” (Replace RECOVERY_FILE_NAME_HERE with the name of recovery file, in my case it was twrp-3.2.3-0-cheeseburger.img). Now we want the phone to boot into this recovery so we’ll give this command “fastboot boot RECOVERY_FILE_NAME_HERE.img” (again replace RECOVERY_FILE_NAME_HERE with the name of recovery file). The phone will then boot into TWRP. Swipe the slider that says swipe to allow modification. Don’t disconnect the USB cable yet. We’ll need it in the next step.

Step 4 Installing the ROM:

This is the final step. Tap on wipe option in your phone and then select advanced wipe. There check Dalvik/ART, Cache, Data, System and Internal Storage. Then, swipe the slider to wipe. After that, go back to the home screen of TWRP. Then, type “adb devices” on your computer. This will display a list of connected devices. If it does, then type “adb usb”. This will connect your phone to the computer in usb mode. Then, type “adb push /sdcard” (Replace ROM_FILE_NAME with the file name of your ROM. In my case it was This process might take some time since it involves transferring about 900 MB of data. After it completes you should see a message like this.

push finish

Go back to TWRP home and tap on install and select the Pixel Experience ROM file that we pushed. Then, swipe to flash. After it finishes, go back to home and select wipe then advanced wipe and check Dalvik, Cache, Data and Internal storage. (Don’t check system and USB OTG) Finally, swipe to wipe and then reboot to system.

Pixel Experience ROM should now be installed on your phone. Enjoy the new ROM!

post install

If you face any difficulty while performing the above mentioned steps, feel free to write a comment below and we’ll try to help you.

Rohit Gupta
I’m Rohit Kumar Gupta. Editor-in-chief at,, and, I also have a YouTube channel with the name “TechPop” focused primarily on guides that help you get the best out of your technology.

3 Replies to “How to unlock bootloader and install Android Pie 9.0 on OnePlus 5 – Pixel Experience ROM

  1. I really like this page! We just wrote a similar piece about what to
    look for when picking a new phone. Things to think about are the price, the quality of
    the camera. Also, the size of the phone can be important. When you have smaller hands, a
    phone can be easier to use if the screen isn’t huge.
    A 6-inch screen may look great when watching photos and videos, but in cases where you want to handle
    the phone with one hand, that screen size can get in your way.

    Apart from the screen size and camera quality, other extra’s such as a water resistant or the ability
    to use more than one sim-slot can be important for
    you. Don’t just buy the first smartphone you see, look at
    specifications and determine which features you want.
    Good luck on your search for the best smartphone!

  2. Hello. I have checked your and i see you’ve got some duplicate content so probably it is the reason that you don’t
    rank high in google. But you can fix this issue fast.

    There is a tool that rewrites articles like human, just search in google: miftolo’s tools

Leave a Reply

Your email address will not be published. Required fields are marked *