The OnePlus 5 and OnePlus 5T ran on Android 7.1 Nougat out of the box, but both smartphones have been updated to the latest version of the Android operating system, Android 8 Oreo since then. Xposed Framework and Xposed Installer also recently got support for Oreo (even though they’re still in beta), and those that depend on this software for tweaks will already be looking for ways to get it installed on their OnePlus devices running the latest version of Android. In this article, I’ll show you how to install systemless Xposed on OnePlus 5 and OnePlus 5T.
You can install Xposed on an Android device in either of two ways, and the first which is normally by directly installing the framework and activating it on your device through the Xposed Installer application is the most popular. However, this involves modifying system files and this won’t work well for those that like to receive regular OTA updates. Which makes the second option more viable; installing systemless Xposed.
As the name implies, Systemless Xposed installs the Xposed framework on your device without modifying the system files, and it’s a better alternative to the regular Xposed since it takes only a few steps to deactivate it when it’s time to install OTA updates. You, however, need to have Magisk set up and root your device with it.
Since you’ll need to root your phone before you can use the regular Xposed, this shouldn’t be too much of a burden. I’ll guide you through the steps of installing Magisk, rooting and installing systemless Xposed on your OnePlus 5 and OnePlus 5T smartphone in this article.
What You Need
Before you can install systemless Xposed on your OnePlus 5 and OnePlus 5T, you need to go through the following steps:
- Unlock your Bootloader.
- Install TWRP Recovery.
- Download and Flash Magisk zip file with TWRP.
- Download and install Magisk Manager.
- Download and activate Systemless Xposed.
Unlock your Bootloader
Your bootloader needs to be unlocked before you can install TWRP Recovery or any custom recovery on your smartphone. We have an extensive guide on this, but here’s the summary of how to unlock the bootloader on your OnePlus 5 and OnePlus 5T:
- Install ADB and Fastboot on your PC.
- Enable Developer mode on your Android device by tapping continuously on Build Number in your phone About Phone settings.
- Open up the Developer Settings, find the OEM Unlocking settings and toggle it on.
- Next, you need to unlock your bootloader. If you’ve performed an advanced tweak on your device before, you’ve probably done this and you can skip this step. Note that unlocking the bootloader will wipe your device data.
- Run adb on your PC with your device connected via USB cable.
- If your smartphone is running on Lollipop (Android 5.1) or lower, run the following command
fastboot oem unlock. Else if it’s running on Marshmallow (Android 6.0) or higher, run
fastboot flashing unlock.
- Use your Volume buttons to move up and down and highlight Yes, then press your power button to confirm the process and your bootloader will be unlocked.
Install TWRP Recovery on your OnePlus 5 and OnePlus 5T
You need TWRP Recovery installed before you can even install Magisk on your device. We’ve published an extensive guide on how to do this, but here’s a summary of how to do that:
- Download the latest TWRP img file here and extract it into the same folder in which you installed ADB and Fastboot.
- Power off your device.
- Boot the device into bootloader. To do this, press the Volume up and Power buttons together until the bootloader menu comes up.
- Connect the device to your PC via USB.
- On your PC, navigate to your ADB installation folder. Right-click on an empty space within the folder while holding the shift key on your keyboard, and click Open command window here.
- Run the following command in the open command prompt:
fastboot flash recovery [filename.img]
Please replace [filename.img] with the name of the TWRP Recovery img file you downloaded followed by the .img extension.
- The flashing process will begin. Once it’s done, run
fastboot rebootto reboot the device. You now have TWRP installed on your Android smartphone.
Install Magisk with TWRP
The Magisk installation file is just a zip file, and it needs to be flashed into your phone with a software intended for such. If you had previously installed Magisk and want to update your Magisk version, you only need to download and install the Magisk zip file via Magisk Manager, but if this is your first time, you can install Magisk via TWRP.
- Download the latest Magisk zip file here.
- Extract the Magisk zip file you downloaded above into your phone’s internal storage.
- Power off your smartphone.
- Boot into recovery mode by pressing the Volume Down and Power button together for some seconds. If the first process above went well, the device should boot into TWRP Recovery.
- Click Install on the main menu and navigate to where you extracted the Magisk installer zip file in the phone’s internal storage.
- Select the Magisk installer zip file and swipe the confirm flash button.
- TWRP Recovery will now start flashing Magisk onto your device. Once the process is finished, you now have Magisk installed and your device is rooted. Click Reboot System in TWRP main menu to reboot the device.
Download and Install Magisk Manager
You need the Magisk Manager application to manage root access and install Magisk modules on your smartphone. You won’t get this on the Google Play Store and you have to sideload the app, so it’s time to enable installing from Unknown Sources on your phone if you haven’t already.
- Download the latest Magisk Manager app here.
- Download and install the APK above, and launch the Magisk Manager app.
- To verify that you have systemless root, check the top of the screen and if you see 15.3: MAGISKSU (topjohnwu), rooting via Magisk was successful.
Now that you have TWRP Recovery and Magisk set up on your device, it’s time to do the main thing – install systemless Xposed on your OnePlus 5 and OnePlus 5T smartphone.
Install Systemless Xposed on OnePlus 5 and OnePlus 5T – The Process
For this, you would need to know the API level of your phone in order to download the correct version of systemless Xposed Framework. Your OnePlus 5 and OnePlus 5T device is expected to be running on either Android 8.0 or 8.1 Oreo, but I’m providing a list of all Android OS versions and their API levels for reference purposes.
|Android Version||API Level|
|4.3 Jelly Bean||18|
|4.2 Jelly Bean||17|
|4.1 Jelly Bean||16|
|4.0.3-4.0.4 Ice Cream Sandwich (ICS)||15|
|4.0.1-4.0.2 Ice Cream Sandwich (ICS)||14|
Now to the main process.
- Launch Magisk Manager on your smartphone.
- In the app menu, click on Downloads.
- Scroll through the numerous Magisk modules available for download until your see Xposed Framework.
- Download the correct systemless version for your phone’s API level and install it.
- When it’s done installing, reboot your smartphone.
- Launch Magisk Manager.
- Navigate to the Downloads menu.
- Tap on the text description of the Xposed Framework you just installed.
- It contains a URL for a special modified version of Xposed Installer (that’s designed to work together with the systemless Xposed framework). Click on the link and download the apk file.
- After downloading, install the Xposed Installer application.
Now that you have systemless Xposed Framework and the modified Xposed Installer app installed on your Pixel 2 device, the next thing to do is to activate Xposed in Magisk just as you would do for any module installed on the original Xposed Framework.
- Go back to the Magisk Manager application and navigate to the Modules menu.
- You would see the Xposed module activated already. Tap the checkbox to deactivate it, and again to activate it. Then reboot your device.