HOW TO: Root Android 8.1 OPM1 on Google Pixel 2 Oreo Factory Image
We have put together a detailed step-by-step instructions guide on how to root Android 8.1 OPM1 Oreo on Pixel 2. Please read the complete tutorial once before actually performing it.
Just To Remember:
- This root method is only for Android 8.1 (OPM1) installed on Pixel 2 and I am not sure if it will work on the other variants of the Pixel 2 on other carriers.
- Your Pixel 2 bootloader should be unlocked.
- Pixel 2 should be on Android 8.1 OPM1 software version.
- Make a Nandroid backup of your previous phone set up before proceeding – for just in case anything goes wrong.
Complete Step-By-Step Instructions:
Step 1.1 – Download Android SDK from the Android Developers website and install. Also set it up with downloading platform-tools and USB drivers package in SDK. See: How to Set up ADB and Fastboot on Windows.
Step 1.2 – Download ADB / Fastboot – Android SDK Platform Tools separate package and install on your computer. Download from the following links depending on your OS and extract it anywhere in your computer.
- Windows: Download platform-tools-latest-windows.zip
- MacOS: Download platform-tools-latest-darwin.zip
- Linux: Download platform-tools-latest-linux.zip
Step 2 – Enable USB Debugging mode in your Pixel 2.
NOTE: Skip Steps 1.1, 1.2, 2 if you already have them.
Step 3 – Download MagiskManager-v5.5.3.apk directly to your phone.
Step 4 – Download the Android 8.1 Oreo boot image taken from the official firmware and place it on your phone. (We will use the /sdcard/Download/ location)
Step 5 – On your phone, locate where you downloaded the MagiskManager and install it.
Step 6 – Once installed, open MagiskManager and then click on “Install“.
Step 7 – After you click on install, it will ask you to locate the boot image, we placed ours in /sdcard/Download. Once you select it, MagiskManager will patch this boot image.
Step 8 – Copy the patched boot image to your PC. The patched boot image would named patched_boot.img located in /sdcard/MagiskManager/
Step 9 – Connect your phone to your computer and use ADB to reboot to bootloader by issuing the following command:
adb reboot bootloader
Step 10 – Flash the patched image to your device by issuing the following two commands.
fastboot flash boot patched_boot.img fastboot reboot
That’s it! You should now have a rooted Pixel 2. You can go to MagiskManager app to verify.
To make sure you have correctly installed the above root method and it’s working, verify with Root Checker as given in the link.
Have fun playing with it! If you have any issues, please fire them up in the comments below!