How to Install a Custom Kernel on the OnePlus 5

OnePlus 5 Install Custom Kernel

A great way to increase performance and/or battery life is by using a custom kernel, and these steps below will show you how to install one on the OnePlus 5.

Yesterday I walked you through the process of how to install a custom ROM on the OnePlus 5. A ROM is also referred to as the firmware, and/or the OEM skin of the device itself. In the case of the OnePlus 5 it’s OxygenOS, but you can install other customer ROMs on there such as LineageOS, Resurrection Remix, etc. These offer different different user facing features but they don’t really have an impact on the battery life or performance.

Instead, we’re looking to change to a custom kernel on the OnePlus 5 if you want to have an effect on the battery life or the performance of the device. Since the kernel is what tells the CPU and GPU (among other things) how to ramp up in speed, these are the biggest areas that battery life and performance can be increased. Typically, we see a custom kernel optimized for either battery life, performance, or a balance between the two since it’s hard to achieve both.

To do this, we’ll need to have the bootloader of the OnePlus 5 unlocked. This is required because you will also need to have TWRP installed on the OnePlus 5. When both of those are done though, you can then proceed with the instructions below.

OnePlus 5 Install Custom Kernel

  1. Download a kernel for the OnePlus 5
  2. Copy/move that ZIP file to the OnePlus 5
  3. Boot the OnePlus 5 into Recovery Mode
  4. Tap the Install button at the top left
  5. Browse to and tap on the kernel ZIP file we downloaded
  6. Swipe the white arrows to the right to begin the installation
  7. Follow the AROMA installer if prompted
  8. Or tap the Reboot System button when it comes up

Explanation


So as with most modifications installed via TWRP, the process is going to feel very familiar with a custom kernel. The only thing you really need to look out for is making sure the kernel is made for the software you’re running. For example, not all custom kernels will work on both OxygenOS as well as AOSP (aka Lineage OS, Resurrection Remix, etc). Some are compatible with both, but others are specifically made for one or the other.

So be sure to read through the XDA thread for the custom kernel you want to install before you begin. As with other installed mods though, you should definitely create a Nandroid backup of the OnePlus 5 ahead of time. This way, if you install a custom kernel that is not compatible with what you’re using, then you can power down from the bootloop and restore from your backup. Once you have your kernel ZIP file on the OnePlus 5 though, you can then boot into Recovery Mode.

OnerPlus 5 Install Custom Kernel Options

You can even tweak the kernel’s settings from within special kernel tweaking applications.

Once you get to the main menu of TWRP, you can then tap on the Install button and browse to where you have the ZIP file for the custom kernel. Simply tap on it and then swipe the white arrows to the right to begin the installation. It should only take a minute or two to complete, and then you’ll likely see a Reboot System button appear at the bottom. Tapping that button will reboot the OnePlus 5 and take you back into Android with your custom kernel installed.

However, if your custom kernel has an AROMA installer, then you’ll have to go through those steps (just like I do in the video above) to complete the installation of your custom kernel. You can follow along with the video to get an idea of how that works. I also wanted to point out that not all custom kernels come in a ZIP format and some come in an IMG format. If that’s the case for you, then after you tap on the Install button in TWRP, tap the Install Image button.

You can then browse to and tap on the custom kernel .IMG file and then tell it to install in the Boot partition. Then reboot and you’re done.

If this tutorial helped you in any way, please consider donating at Patreon or PayPal. If you can't afford to donate then sharing this on social networks such as Facebook, Twitter, etc. will also help a lot.

 

About the author

Doug

I’m working to create an organized and easy to follow central repository of Android tips, tutorials, guides and everything you need to know. With a focus on device specific tutorials now, my goal is to branch out and do more universal tips and tricks that will work on all Android devices.