How to Root Google Pixel Android O Developer Preview 1

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.

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

Usama M

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.

Share
Published by
Usama M

Recent Posts

Snapchat not working? Here are the top 7 solutions you should try

Snapchat is a popular social sharing platform so when something goes wrong it can be…

3 years ago

Android 12: Details on the CDD arrives – How the performance classes will work

Android 12 Compatibility Definition Document (CDD) calls for device manufacturers to specify the performance classes…

3 years ago

Telegram: Beta 8.0.0 news for Android plus new feed for channels

New features in Telegram Beta 8.0.0 for Android include group video chat 2.0, live video…

3 years ago

Blackout Bingo for PC – Play for free on Windows 10, Mac

Download the Blackout Bingo app on your PC. With a competitive twist to the classic…

4 years ago

Wombo for PC – Use for free on Windows 10, Mac

Download the Wombo app on your PC. All you have to do is add a…

4 years ago

Golf Rival for PC – Play for free on Windows 10, Mac

Download the Golf Rival app on your PC. Follow the steps discussed below to get…

4 years ago

This website uses cookies to provide you up-to-the-mark services.