The post has been updated to work with Android 9.0 P with the latest Magisk v16.1 systemless rooting tool. This post is a continuation of the detailed tutorial on rooting the Google Pixel and Pixel 2 on the Oreo. Now that the most popular rooting tool called Magisk Manager has been updated to support Android 9.0 P, it can be used on Google Pixel devices. In this article, we are going to talk about the User Guide on How to Root Android 9 – Full Steps. Let’s begin!
If you have been following Android lately, then the latest Android P 9.0 Developer Preview version is available for download for the Google Pixel and Pixel 2 devices. We also have the new Android P launcher. Today, some of the most recognized Android developers topjohnwu has released a full proof solution to root the newest Android P 9.0 version. We will keep updating the post with new versions. So stay tuned for that.
However, the most awaited root and TWRP recoveries for the two new Google phones called the Pixel (sailfish) or Pixel XL (marlin) and the Pixel 2/XL are now available. This is a new beginning for Pixel users as well as the future for Android development as future updates will be related to the new Nougat OS. We have already seen that the Pixel phones now run on the latest Android 8.1 Oreo and there have been major changes to Pixel’s core system including the partitions. Hence, it took a while for the contributors to gain stable root access and build a custom TWRP recovery for the Google Pixel (2).
- 1 Further
- 2 Requirements to root Android P | root android 9
- 3 Unlock Bootloader On any phone running Android P 9.0 or earlier?
- 4 Google Pixel Android P Bootloader Unlock method
- 5 Install TWRP and Root Google Pixel (2) on Android P?
- 6 TWRP installation method:
- 7 Root Android P 9.0 with latest Magisk 16.1+
- 8 Conclusion
This guide not only explores rooting Android P, 8.1 Oreo, 7.1 Nougat, or earlier version on various devices. But also explored all the details on rooting Google Pixel devices with multiple partitions. We know Google Pixel and some other devices come with A/B partitions. We will be going through the complete root procedure for your Pixel and Pixel 2 with A/B partitions as well. The rooting procedure includes unlocking the Bootloader, installing the TWRP recovery, and also flashing the latest Magisk zip.
Requirements to root Android P | root android 9
Currently, Android P is only available for Google Pixel. So we have updated the post into consideration that you have a Google Pixel or Pixel 2 device. Stay tuned for further updates.
- Enable Developer options. To do so, go to Settings> About Phone> Tap on the Build Number many times until you get a new Developer Options in the Settings.
- Now go to Settings>Developer Options and Enable OEM Unlock. This is an important step. Otherwise, the fastboot commands won’t work.
- Enable USB Debugging and Advanced Reboot on your device. Open Developer Options and enable USB Debugging from there. Trust the connection by allowing it when you connect it to your PC for the first time.
- Install quick ADB and Fastboot drivers on your PC. Download the quick ADB Installer for Windows, Mac OS, Linux, and Chrome OS.
- Make sure you have the latest device drivers setup on your PC for a better connection. Get it from the official page of Google.
Unlock Bootloader On any phone running Android P 9.0 or earlier?
Unlocking Bootloader leads to factory reset! So backup! The first step towards Android development on your smartphone is to unlock the Bootloader. This unlocks many developmental features on your phone. It basically enables you to access and modify core system files as well.
Following bootloader unlock, you will need to setup TWRP recovery, and flash magisk zip using TWRP. The new Magisk 16.1+ will root your device. The procedure is only for the international or global variants of the Google Pixel (2).
Google Pixel Android P Bootloader Unlock method
- Connect your Android device to the PC and trust the connection. Tap Yes on “Always allow from this computer” when you plug in the device into PC for the first time.
- If you have installed the quick ADB installer, launch a command prompt or terminal window anywhere. To do this, just click the address bar and type cmd and then press Enter key or hold the shift key on the keyboard and right-click on an empty space and select “Open command window here” option to launch a cmd window.
- Now reboot into the bootloader, issue the following commands. (If ADB does not detect your device try switching your phone’s USB mode from Charging to MTP or PTP.)
adb reboot bootloader
- Once in the bootloader, issue the following fastboot command to unlock the bootloader.
fastboot flashing unlock
Note: The above code is only for the Google Pixel, Pixel 2, and Nexus 6P devices. For other devices, you need to use the following code to unlock bootloader:
fastboot oem unlock
- Once you get to the unlock confirmation screen on your Android device. Press the Volume Up button and hit the Power button to select it. Your bootloader unlocking process will begin may take a couple of minutes.
- Once the bootloader has been unlocked, your device will reboot. If it gets into bootloader mode again, reboot into the system by issuing the following command:
You may now proceed TWRP installation.
Install TWRP and Root Google Pixel (2) on Android P?
Do not proceed unless you have unlocked the Bootloader! Also, do not use it for multiple users including a guest account. Do not proceed if you have important stuff and critical data on your phone that cannot be lost.
The procedure is similar to installing TWRP on most other Android phones. However, due to A/B partitioning present in Google Pixel and Pixel 2 devices, Fastboot commands have changed a little. If you want to install TWRP, first, we will be booting the TWRP image and then flash the TWRP zip.
TWRP installation method:
Note: If you accidentally flash TWRP to your device using Fastboot instead of temporarily booting the image, you will need to download the latest factory image for your device and re-flash the boot image.
- Download the TWRP recovery and latest Magisk zip file from above. Download both – the TWRP file.
.imgextensions. You will need both. You do not need to extract the files, just transfer all the files to your PC.
- Setup quick ADB and Fastboot Installer on your PC and go through all the prerequisites from above.
- Now plug in the Google Pixel device to your computer and open a command prompt or terminal window on your PC within the folder where the TWRP.zip file is located.
- Reboot your Android device into the bootloader or Fastboot mode. To do so, issue the following command through cmd or terminal. You can also manually boot into it using the hard key combination like Power+Volume Down while the device is turned off. Meanwhile, use this code:
adb reboot bootloader
- Now issue the following command in the command prompt to check your device connectivity.
- Now issue the following command to temporarily boot up the TWRP image.
fastboot boot twrp.img
Note: If you have installed the quick 15 second ADB & fastboot installer, simply enter the folder where the TWRP zip file is present and issue the command. Or else, you will need to enter the directory pathname like “fastboot boot path/to/twrp.img”. Alternatively, while, on Mac OS, you can issue “./fastboot boot path/to/twrp.img” command or on Linux type “sudo fastboot path/to/twrp.img” to flash the TWRP.
- Once your device Reboots into the temporary TWRP recovery, use the TWRP interface to flash the recovery zip. Navigate to install and select
Root Android P 9.0 with latest Magisk 16.1+
Once you install TWRP, then it is time to root.
- Transfer the latest Magisk v16.1 package to the Android device’s internal storage or SDcard.
- Reboot your phone into the custom TWRP recovery. For that, turn off your device completely and then hold volume down and power buttons for a few seconds.
- From TWRP, tap the install button and then select the SuperSU file.
- Swipe the confirmation action below to start flashing.
- Once done. Reboot to system.
You can boot into the TWRP recovery by issuing the following command:
adb reboot recovery
Alright, That was all Folks! I hope you guys like this root android 9 article and find it helpful to you. Give us your feedback on it. Also if you guys have further queries related to this article. Then let us know in the comments section below. We will get back to you shortly.
Have a Great Day!
Also See: How To Use Emoji Keyboard On Mac