How to Root Android P with Magisk 16.1

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.


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

  1. Download Magisk 16.1 Beta Update from the downloads section above.
  2. Transfer the downloaded Magisk 16.1 Beta Update Zip file to your phone’s internal memory.
  3. If your device is connected to your PC, disconnect the same.
  4. Reboot your device into TWRP Recovery.
  5. 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.Root-Android-P-Magisk-16-1-TWRP
  6. 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:

  1. Download the latest Magisk Manager v5.6.2 APK from the downloads section above. Install the downloaded APK file.
  2. 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.
  3. Once you get hold of the stock ‘boot.img’ file of your device, copy it to the internal storage of your device.
  4. 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.Root-Android-P-Magisk-16-1-Patch-Boot-Image
  5. Go back to the Magisk Manager main screen: Tap on ‘Install’  > Again tap on ‘Install’ > Select ‘Patch Boot Image File’.Root-Android-P-Magisk-16-1-Patch-Boot-Image-1
  6. 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.
  7. Magisk Manager will take the things from here. Wait for the process to complete.
  8. The ‘patched_boot.img’ file will be present in the ‘Magisk Manager‘ folder on your device. [Check both Internal and External Storages.].
  9. Copy the ‘patched_boot.img’ file to the folder where ADB and Fastboot are installed on your PC.
  10. Open a command window on the folder where ADB and Fastboot are installed.
    1. Go to the folder where ADB and Fastboot are installed.
    2. Hold down Shift Key + Right Click > Select ‘Open Command Window here’ or ‘Open PowerShell Window here’.Root-Android-P-Magisk-16-1-Command-Prompt
  11. Reboot your device into Fastboot mode by executing the following command in the command prompt:
    adb reboot bootloader
  12. Execute the following command to install Magisk 16.1 Beta update:
    fastboot flash boot patched_boot.img
  13. Once the flashing process completes, reboot your device using the following command:
    fastboot reboot
  14. Done!

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!

Follow ThemeFoxx on Facebook, Twitter & Google+ to get all the latest updates.

Need help? Drop a comment below!



How Root Xiaomi Mi A1 on Android Oreo

How To Install Oneplus 5 Oxygen OS Open Beta 6 Update [Android Oreo]


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.