OnePlus 3/3T Custom ROMs
I've owned every OnePlus phone and think one of their biggest strengths is the 3rd party support. These phones attract a lot of good developers and I think everyone should be aware of the 3rd party ROM scene. Now keep in mind this doesn't mean you have to root your phone. The phone comes with an unlockable bootloader which allows you to easily modify the phone without having to go through hacks and it will not void your warrenty. Even if you like stock Oxygen OS (OOS), putting a custom kernel or even a debloated version (with the little bloat there is) of OOS is going to beneficial over the stock version. I was originally creating a guide for u/sqlpro but figured I would just create a post for everyone to benefit from instead. There is a rooting guide on the wiki but it's outdated, has outdated URLs, and doesn't include some new information that's come out of the OnePlus 3.
Disclamer: I'm not responsible for anything that happens to your phone. It's extremely hard to brick one of these but if you lose data or brick it, it's not my fault.
Pre-Requirements/Downloads:
- TWRP
- Custom ROM
- Windows PC
- ADB and Fastboot
- Firmware (optional)
- Gapps (optional)
- Kernel (optional)
Key word "Flash". When I say flash, I mean installing a zip file using the TWRP recovery we're going to put on your phone. You will be flashing the ROM and Gapps but there are some optional things to flash which you can do the same way I explain below.
Download Links:
For TWRP, you're going to want to use Arter97's version. It has updated file system stuff that really makes the phone scream (we'll get to that later). You can get that here: http://www.arter97.com/browse/op3/AOSPA/
Download the file: twrp-3.1.1-0-oneplus3_3t-aospa.img
Custom ROM There's a ton of choices. I personally like AOSP based ROM's as they have the look and feel of stock android. If you want something more customizable (themes and more features), go with a LineageOS (LOS) based ROM.
Here's some ROM suggestions:
AOSP based
LOS based
Sultan's ROM and Kernel (both included): https://forum.xda-developers.com/oneplus-3/oneplus-3--3t-cross-device-development/op3-op3t-unofficial-lineageos-14-1-t3588696
Resurrection Remix: https://forum.xda-developers.com/oneplus-3/oneplus-3--3t-cross-device-development/rom-kernel-resurrectionremix-n-t3524715
Lineage OS Official: https://forum.xda-developers.com/oneplus-3/oneplus-3--3t-cross-device-development/rom-cyanogenmod-14-1-oneplus-3-t3496850
Download links for ROMs are always in the first post of the thread. Some of them also require certain firmwares. If they require one, they will be list the required firmware at the bottom of the first post as well. You can find flashable Oneplus 3 firmwares here: https://forum.xda-developers.com/oneplus-3/how-to/radio-modem-collection-flashable-zips-t3468628
OnePlus 3t Firmwares here: https://forum.xda-developers.com/oneplus-3t/how-to/firmware-modem-collection-flashable-zips-t3565535
You can flash the firmware's from the OnePlus website but that will reset your TWRP recovery. The link I provided provides easily downloadable ZIP files for flashing.
GAPPS
This is the Google Apps like Google Play Store and stuff. It's not required but if you want to be integrated with google, you'll probably want it. You can get Open Gapps or Bean Gapps. Basically the same thing but it's personal preference. I like Bean.
Open Gapps: http://opengapps.org/ Bean Gapps: https://forum.xda-developers.com/android/software/gapps-dynamic-gapps-t3487192
ADB and Fastboot: This is used for unlocking the bootloader and flashing the recovery. Once you flash the recovery, you're able to flash custom ROMs, kernels, or whatever to the phone.
ADB Fastboot: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Extract the ADB and Fastboot onto a folder on your computer. Put the TWRP recovery you downloaded above into the folder as well. We'll get back to this later.
Let's get started.
Step 1: Unlocking bootloader
This will wipe/factory reset all the data on your phone so be sure to backup any pictures, texts, etc. that you want to save.
Do this step now, then you'll need to come back here do this step again after you unlock your bootloader:
[ADVANCED REBOOT STEP] After you've backed up your phone, go to Settings -> About Phone. Then tap on "Build Number" a bunch of times until it says you're a developer. Go back to settings and you'll see "Developer Options" at the bottom. Under there, enable "Enable OEM Unlocking" and "Advanced Reboot". Now hold the power button and click reboot. You'll see additional options and select "Bootloader". This will reboot your phone into the bootloader mode. [END ADVANCED REBOOT STEP]
Now you'll need to plug your phone into a PC. Once your phone is plugged in, open a command prompt window. Navigate the command prompt to the folder we extracted the ADB and Fastload, and TWRP recovery into. This next step will wipe/factory reset your phone so make sure you have everything backed up. In command prompt type: fastboot oem unlock
(Leave the command prompt open, we'll still need it for a future step.)
The phone will prompt you to unlock the bootloader on your phone. Use the Volume keys to select Yes and hit the Power button to select it. Once it's rebooted and you're back at the home screen in OOS, use the same Steps above to get to the "Advanced Reboot" menu and reboot into the "Bootloader". Your bootloader is now unlocked which means we can flash a 3rd party recovery, but it's factory reset to the stock OOS.
Step 2: Flashing TWRP Recovery
Now make sure the TWRP recovery we downloaded above is in the same folder as the ADB and Fastboot zip we extracted. Once your phone is in the bootloader again, type this in the command prompt window we left open above: fastboot flash recovery twrp-3.1.1-0-oneplus3_3t-aospa.img
This will flash a custom recovery. Now go back to the phone, and use the Volume Rockers to select "Recovery Mode" and hit the power button to select it. This will reboot the phone into the TWRP recovery we just flashed.
This next step is optional but it takes advantage of some F2FS file system improvements Arter97 made which really make the phone scream. Though this step is not required, it's highly recommended. It will wipe your phone but since we just wiped it when we unlocked the bootloader, it doesn't matter.
[OPTIONAL STEP] Now that we're in the TWRP recovery, click the "Wipe" button. Then click "Advanced Wipe". You'll see a list of the phones partitions at the top. Check the "data" partition and click "Repair or Change File System". Then "Change File System" and select "F2FS". Now use the onscreen nav bar to navigate back to the "Wipe" screen. Click the "Format Data" button and type "yes". This will format your phones data partition but also includes the F2FS file system improvements built into the recovery. Once formatted, go back to the TWRP home screen and select "Reboot", then Reboot into Recovery again. It might say that no OS is installed, that's fine, just "Swipe to Reboot". [END OPTIONAL STEP]
Step 3: Flashing ROM and Gapps
Once the phone reboots into the TWRP Recovery, it will show up on your computer as a USB device. Copy the ROM, Gapps, and Firmware (optional) ZIP files we downloaded above to the phone (wherever you want). Once it's finished copying, go back to the phone and select "Install". Navigate to the folder you put the files on the phone and select them to install them. You'll want to install them in this order:
Firmware (optional)
ROM
Gapps (Gapps not needed if flashing OOS based ROM)
Kernel (optional)
Once you have everything installed, you're all set. Go back to the TWRP Home screen and select "Reboot", then select "System". You phone might say you don't have an OS installed and that's fine, just "Swipe to reboot". The first boot always takes the longest but you're good to go now with the custom ROM you chose.
If you want to flash a different ROM, reboot into recovery again and wipe the System, Data, Dalvik/ART Cache, and Cache partitions. This will not wipe your "Internal Storage" partition where all your pictures, documents, and downloads are stored. Then go back to the install menu and flash the ROM and Gapps ZIPs of your choice. Enjoy!
Feel free to ask any questions. This was pretty long winded because I was explaining stuff but once you have everything downloaded, you can probably get your custom Recovery and ROM installed within 10-15 minutes. It's a pretty quick process.
Hope this helps everyone, and if not, at least i helped out u/sqlpro. I think it's important to know how to do this with these phones. It really extends the lifetime of the phone as well since we've seen the lack of longterm software support on the previous OnePlus phones.
Back to Stock
To go back to stock, we're going to replace the TWRP recovery with the stock recovery, the custom ROM with the stock ROM, and then we're going to relock the bootloader. This will also factory reset your phone and wipe all the data so back everything up.
You can download the stock recovery and ROM here:
OnePlus 3: http://downloads.oneplus.net/devices/oneplus-3/
OnePlus 3t: http://downloads.oneplus.net/devices/oneplus-3t/
Flash the recovery the same way we flashed the TWRP recovery. Put the recovery image in the same folder as ADB and Fastboot and type this in the command prompt: fastboot flash recovery [RECOVERYFILENAME].img
Replace [RECOVERYFILENAME] with recovery_op3.img or recovery_op3t.img based on your model.
After that, follow the instructions on the OnePlus download website to "sideload" the ROM to your phone. This is the same as flashing, but your pushing the file to the phone from your computer.
After that, reboot into the bootloader and in the command prompt type: fastboot oem lock
This will lock your bootloader and you're back to stock.
** Root **
If you want root, boot your phone at least once or twice after flashing the new ROM. Then you'll want to download Magisk: https://forum.xda-developers.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901
After you've downloaded the Magisk ZIP file, flash that in the TWRP recovery and you'll have root next time you boot.
EDIT: Went to sleep and just woke up. This got a lot more traction than I thought it would. I'll answer the current questions in the comment. Glad people are using this.
EDIT2: I think everyone's questions have been answered. If I missed ya or you have questions flashing, feel free to PM me and I'll respond when I can. This was fun and thanks for everyone's help who also answered questions. There's quite a few people who are very knowledgeable on Custom ROMs in this community.
Posted Jun 18, 2017, 2:31 AM UTC · edited