How to Root Google Pixel Android O Developer Preview 1

0

Google is always trying to keep its phones updated to the latest version of Android. Recently, Google released Android 7.1.2 Nougat for the Pixel smartphones. Google also released the new Android 8 named as Android O in the developer preview form. The developer preview is meant to give the users a glimpse of what the new OS is going to look like. It doesn’t contain complete features of the upcoming operating system, it has most of the features missing in the preview form. The developer view of Android O can be installed only on a few devices, it doesn’t even run on older Google Nexus devices. Luckily, it can be installed on both the Google Pixel and Google Pixel XL.Root Google Pixel Android O Developer Preview 1

Google Pixel and Pixel XL are the pure beasts if you wish to customize them and unleash their potential. Without root, these phones may seem incomplete to many. It was quite hard to root these phones running Android O Developer Preview 1. A method came up earlier, but that rooted the Nexus 5X and Nexus 6P only. The Google Pixel and Pixel XL were not rooted so far.

XDA member Sachi315 discovered a method to root both the Pixel and Pixel XL running Android O. The method runs Android 7.1.2 Nougat on one slot and runs the Android O in the other slot. It makes the use of both these OS to achieve root on the O. In order to make it happen, users need to download the 7.1.2 images and modify them, they need to add a few lines of codes to the flash files, and then flash those files on the phone leading towards the root access.

Here in this post, I have tried, to sum up, the entire method in a few easy steps. You can follow the steps now to Root Google Pixel Android O Developer Preview 1.

Contents

Root Google Pixel Android O Developer Preview 1

Pre-requisites:

  1. Your Google Pixel’s bootloader must be unlocked.
  2. Enable OEM Unlocking on your phone.
  3. Enable USB debugging on your phone.
  4. Backup your data as this process will wipe it.
  5. Use OEM data cable to establish a connection with your PC.
  6. Follow this procedure at your own risk.

Required downloads:

Modifying the images

  1. Now extract the Android 7.1.2 Nougat and Android O developer preview factory images.zip file that you downloaded above. Extract it for your device only.
  2. From the extracted contents of Android 7.1.2 Nougat file, right click on the “flash-all.bat” file and then click on “Edit”.
  3. Now have a look at the screenshot below, add spaces to where the spaces are added in the screenshot and add this “–skip-reboot” exactly where it is shown in the screenshot.
  4. Now save this file. After saving this file, scroll down a little further.
  5. Now you have to add “–slot” lines to this file just as they are added in the screenshots below.
  6. Once you have added these –slot lines, you also have to add –skip-reboot between update and image-sailfish-n2g47e.zip line.
  7. Save the file once again and you are done.
  8. Now similarly, open the extracted Android O Developer Preview folder, find flash-all.bat in it, right click on it and then click on Edit.
  9. Here in the flash-all.bat file of Android O, we have to add the slot_b lines instead of slot_a. Have a look at the screenshot below and apply changes to your flash-all.bat file in the same manner.

Flashing modified images

  1. Now reboot your Google Pixel phone into the bootloader mode.
  2. Connect your phone to your computer now.
  3. Open the extracted ADB and Fastboot folder which should be named as platform-tools.
  4. In the platform-tools folder, press and hold the shift key on your keyboard and then right-click on an empty area with this folder. A menu will pop up, click on “open command window here”.
  5. This will open the command window, now in the command prompt, enter these commands one by one.
    1. fastboot –slot _a -w
  6. This command will wipe everything on your device.
    1. fasboot –slot _b -w
  7. This will also clean the device.
    1. fastboot –set-active=_b
    2. fastboot reboot-bootloader
  8. After entering all these commands, close the command window and open the extracted Android O folder.
  9. From Android O folder, run the flash-all.bat file and let it flash the firmware.
  10. Once done, open the Android 7.1.2 extracted folder and run the flash-all.bat file from it.
  11. After flashing both these, open the command window from the platform-tools folder once again and in the command window enter these commands.
    1. fastboot –set-active=_a
    2. fastboot reboot-bootloader

How to flash TWRP and Root Pixel, Pixel XL on Android O now

  1. Now we have to boot the phone into TWRP recovery. For this, you need to confirm that your phone is in slot A. You can verify this by rebooting your phone. At the bottom of the screen, your phone should show slot A.
  2. Reboot into recovery mode on your phone and then wipe > advanced wipe > select the internal storage > wipe it.
  3. Disconnect your phone from your PC and connect it to your PC again now. You should be able to find your internal storage in This PC or My Computer.
  4. Now copy the TWRP RC2 and the SuperSU.zip file to your Google Pixel or Pixel XL.
  5. Boot your Pixel into TWRP recovery now. Tap the Install button > Install Zip > Select TWRP RC2 > swipe finger to flash.
  6. Once the recovery has been installed, you need to switch to slot b in TWRP. After that reboot > recovery.
  7. Now your phone will reboot to TWRP recovery RC2. You just need to make sure that it booted up in slot B.
  8. After verifying that you are in slot B, tap Install > Install Zip > Select SuperSU.zip > swipe to flash.
  9. Reboot your phone to the system now.
  10. Upon rebooting into Android O, you can find SuperSU in your apps list.
  11. That was it, your Google Pixel or Pixel XL is rooted now.

Source

SHARE
Usama is a software engineer by profession and at TechBeasts.com he uses his expertise to solve everyday consumer tech problems with his main areas of interest being Android, iOS and Windows.

Got a question/query or a suggestion? Drop it below.