The Android P Developer Preview 1 was released by Google just a couple of days ago. We already have a way to root Android P now! Read ahead to know how to root Android P by using the Magisk 16.1 Beta Update.
While most of us are still waiting to receive the official Android Oreo update on our devices, Google is already busy in making the next version of Android, the Android P. Android P Developer Preview was released by Google, a couple of days ago. The intention of the release is to help the developer make their apps and services compatible with the latest version of Android. But, if you like, you can install Android P right now. Unfortunately, the Android P Developer PReview only supports Pixel, Pixel XL, Pixel 2, and Pixel 2 XL.
If you have already installed the update on your device and are waiting to get root access, this article is for you. Read ahead to know how to root Android P using the latest Magisk 16.1 Beta update.
How to Root Android P
Usually, when a new Android version is released, there will be a lot of buzz among the Android community. The main reason for that would be to come up with a new method to root the newest Android version. With every new release of the Android, Google is making it tougher for the developers to root and exploit it.
That is not the case this time around. Thanks to the legendary developer topjohnwu, we can now root Android P without any issues. A couple of days ago, the developer took to Twitter to share the happy news that he had successfully achieved root on Android P. Below is a screenshot he posted on the social networking site, taken from a device with rooted Android P:
This is an absolutely great news for Android enthusiasts! The reason is, as already said, whenever a new Android version is released, it would take days before we could see a working root method. Thanks to topjohnwu, we have a perfectly working way to root Android P running devices. Read ahead to know more.
- Please do make a complete backup of your device before proceeding.
- To root your device, you need to have an unlocked bootloader. Follow this guide if you own a Pixel 2 or Pixel 2 XL: Guide to Unlock Bootloader on Google Pixel 2 and Pixel 2 XL
- Make sure you have at least 60% of charge before proceeding; this is to make sure the phone doesn’t die during the process.
Download Magisk 16.1 and Magisk Manager v5.6.2
Steps to Root Android P using Magisk v16.1 Beta Update
Method 1: Install/Flash Magisk via TWRP Recovery
- Download Magisk 16.1 Beta Update from the downloads section above.
- Transfer the downloaded Magisk 16.1 Beta Update Zip file to your phone’s internal memory.
- If your device is connected to your PC, disconnect the same.
- Reboot your device into TWRP Recovery.
- Once you are in TWRP Recovery: Tap on ‘Install‘ and select the downloaded latest Magisk Zip File and ‘Swipe to confirm flash‘ to install Magisk 16.1 Beta Update.
- Once the above process completes, reboot your device.
Method 2: Install Magisk without TWRP Recovery [Patching Stock Boot Image]
If you do not have TWRP Recovery but still want to install Magisk without TWRP on Android device, follow the below guide:
- Download the latest Magisk Manager v5.6.2 APK from the downloads section above. Install the downloaded APK file.
- The second thing you are going to need is the stock ‘boot.img‘ file of your device. You can get it from the official stock firmware images of your device. Where to download them? If you are using a Nexus or a Pixel device, you can get it here. Alternatively, you could find it by extracting the Android P Developer Preview Zip file you had downloaded.
- Once you get hold of the stock ‘boot.img’ file of your device, copy it to the internal storage of your device.
- Open the Magisk Manager App > Tap on the menu icon in the top right corner and select ‘Settings‘. Tap on ‘Update Channel‘ and make sure ‘Beta‘ is selected.
- Go back to the Magisk Manager main screen: Tap on ‘Install’ > Again tap on ‘Install’ > Select ‘Patch Boot Image File’.
- You will be asked to select the ‘boot.img’ file of your device. Navigate to and select the ‘boot.img’ which you had saved in the internal storage of your device previously.
- Magisk Manager will take the things from here. Wait for the process to complete.
- The ‘patched_boot.img’ file will be present in the ‘Magisk Manager‘ folder on your device. [Check both Internal and External Storages.].
- Copy the ‘patched_boot.img’ file to the folder where ADB and Fastboot are installed on your PC.
- Open a command window on the folder where ADB and Fastboot are installed.
- Go to the folder where ADB and Fastboot are installed.
- Hold down Shift Key + Right Click > Select ‘Open Command Window here’ or ‘Open PowerShell Window here’.
- Reboot your device into Fastboot mode by executing the following command in the command prompt:
adb reboot bootloader
- Execute the following command to install Magisk 16.1 Beta update:
fastboot flash boot patched_boot.img
- Once the flashing process completes, reboot your device using the following command:
This is the easiest method to root Android P. Note that, choosing the second method has its perks – you can install OTA updates without having to flash full ZIP files every time there is an update. Now you are good to play around with all the root you love and missed so far!
Need help? Drop a comment below!