FORUMS
Remove All Ads from XDA

[Guide][How-To] Root Android O DP1-3 - Pixel (XL)

323 posts
Thanks Meter: 234
 
Post Reply Email Thread
Rooting DP1-3 is very easy.
Download dp1-3 (https://developer.android.com/preview/download.html)
Download SuperSU 2.82 SR 1 for Pixel (or pixel xl) (https://forum.xda-developers.com/sho...ostcount=10481) [Updated to new fixed version that repaird system mounting issue]
  • Just flash Dev Preview like normal
  • boot into system and setup android
  • Reboot to bootloader
  • Exact the downloaded supersu
  • Reboot to bootloader
  • open a cmd in the extracted supersu location and type
Code:
fastboot boot boot-to-root.img
it will take about 7 minutes to boot but when it does you should have root


Original Instructions for rooting DP1
So after a few weeks of being without root on Android O for the Pixel user Sachi315 discovered how to get root on O by installing 7.1.2 on one slot and android O on the other. This allows Android O to fully boot after installing SuperSU. I wont go into the details of how it works because thus far its all speculation on my part and hopefully someone out there who knows more about these new partitions could better explain it. But for now I'm just going to show you how to do it.

Requirements
+Download 7.1.2 for your Pixel (XL)
-----N2G47E (https://developers.google.com/android/images)
+Download Android O for your Pixel (XL)
-----(https://developer.android.com/preview/download.html)
+SuperSU RS4 2.79 Extra Delay
-----(https://download.chainfire.eu/1024/S...ExtraDelay.zip)
+TWRP RC1 bootable image & RC2 Flashable zip
-----For Pixel (https://dl.twrp.me/sailfish/)
-----For Pixel XL (https://dl.twrp.me/marlin/)
+Backup everything on you device, it will be purged
-----Make sure you have the latest fastboot binaries (I HIGHLY recomend you set this up manually. How to do so can be found in my tutorial here)
+Unlocked bootloader

To make sure you have the latest fastboot binaries press the windows key and type cmd. In the command line type "fastboot" This should return you get. Showing all the available fastboot commands including the new "--slot" commands. If this list has the options --set-active[=<slot>], --slot <slot> listed towards the bottom then you're all ready to move on. (see screenshot for list of other commands you should see)
Click image for larger version

Name:	Capture4.JPG
Views:	1984
Size:	52.3 KB
ID:	4116916

Editing the flash-all.bat from your downloaded 7.1.2 and android o factory images
-Extract both to your working folder
-Find the "flash-all.bat" in the extracted 7.1.2 (N2G47E) right click and select "Edit"
-At this point we are going to clean the flash all up a bit. Its not a necessity but if you don't add some much needed line breaks it can get messy and confusing.
-Below i have a screen shot of what mine looks like cleaned up. Just press enter in the places i did. *Adding the line breaks does NOT mess with the code at all*
-----Toward the end of the commands you will see i added '--skip-reboot" between "update" and "image-sailfish-n2g47e.zip" This command makes it to where the device will not restart after the flash-all is finished. It is important you add this in the same place.
Click image for larger version

Name:	Capture.JPG
Views:	2102
Size:	158.9 KB
ID:	4116913
-Now that we have this cleaned up, go ahead and save it really quick before we start adding to it.
-We are going to add a few "--slot" commands to it so it only installs to one slot. Below you can see what mine looks like after i added the commands. Match yours to mine (highlighted by red boxes)
-If you are on marlin, your image and zip names will be different but it's the same principal
Click image for larger version

Name:	Capture2.JPG
Views:	2066
Size:	167.2 KB
ID:	4116914
-after you add what i have above, save the flash-all.bat and close out of it.

Now we move over to the android o dev preview
-Open the extracted dev preview and right click on its flash-all.bat. Select "Edit"
-We are basically doing the exact same thing in this one BUT instead of the new commands being "slot _a" they will be "slot _b" (See below for the difference and we are still adding the "--skip-reboot" command)
Click image for larger version

Name:	Capture3.JPG
Views:	1804
Size:	170.4 KB
ID:	4116915
-Once your changes have been made in this flash-all.bat, save and close out.


Flashing the Images
Go ahead and get your Pixel into bootloader mode and plug it in.
before we start flashing we are going to clean the device up. This step will erase everything on the device.
Go into command prompt and type:
Code:
fastboot --slot _a -w
let it finish its thing then type
Code:
fastboot --slot _b -w
Device is cleaned. Now staying in bootloader type
Code:
fastboot --set-active=_b
then
Code:
fastboot reboot-bootloader
Now close out of this command prompt and run the flash-all.bat from the android o dev preview folder.
Let it do its thing and after its done, it should be left in bootloader.
now run the flash-all.bat from the 7.1.2 image folder you have.
Same thing; let it run its course and finish up.
Now you should be still in bootloader.
type in cmd
Code:
fastboot --set-active=_a
now type
Code:
fastboot reboot-bootloader
when it comes back up look at the phone and make sure is says the slot is "a" if it does, you're good to move on!


Installing TWRP and Root
From here; boot into TWRP (RC1)
-Make sure youre in slot A by going to "Reboot" then looking at the bottom (It should be slot A at this point, if its not something wasnt done correctly in the above steps)
+At this point i had the issue that my pixel would show up under "This PC" in explorer and was recognized by adb BUT none of the internal storage could be interacted with via my PC (this includes adb commands) so i couldnt get TWRP RC2 or SuperSU SR4 2.79 Extra Delay on the device to be flashed.
-To fix this: got to wipe>advanced wipe>check internal storage ONLY then wipe this partition.
-Unplug your phone and plug it back in and Windows Explorer should be able to work with the internal storage now.
-Now transfer TWRP RC2 and SuperSU sr4 2.79 Extra Delay to your Pixel
-From TWRP on your device, flash just TWRP RC2 for now. After it is installed, switch to slot b in TWRP. Then reboot to recovery.
-When TWRP comes back up, check to make sure youre in slot B still.
-If you are, now flash SuperSU SR4 2.79 Extra Delay.
-Now reboot.
-It should boot into android o, walk through setup and make sure supersu is installed.
-If it is, Congratulations you have rooted android O on your Pixel!


This method has was discovered by @Sachi315 (here)
Make sure you give him tons of thanks for getting the method up and running!


Off Topic is welcome as long as its still Pixel/Root/TWRP/Development/Questions but back and forth bickering will be and should be reported.
The Following 13 Users Say Thank You to eqbirvin For This Useful Post: [ View ] Gift eqbirvin Ad-Free
 
 
19th April 2017, 11:29 AM |#2  
Member
Flag Chongqing
Thanks Meter: 13
 
More
finally, thx for this guide! will give it a try and feedback. BTW, can I share this guide with my native language? source url and your ID will be declaimed, of course.
The Following 2 Users Say Thank You to Queentus For This Useful Post: [ View ] Gift Queentus Ad-Free
19th April 2017, 01:30 PM |#3  
y2grae's Avatar
Senior Member
Coventry
Thanks Meter: 61
 
More
can it be done on a locked BL?
like EE (uk) or Verizon?
19th April 2017, 02:57 PM |#4  
bobby janow's Avatar
Senior Member
Thanks Meter: 1,327
 
More
Quote:
Originally Posted by y2grae

can it be done on a locked BL?
like EE (uk) or Verizon?

Nope, nor would you want to.
19th April 2017, 05:48 PM |#5  
eqbirvin's Avatar
OP Senior Member
Flag St Louis
Thanks Meter: 234
 
More
Quote:
Originally Posted by Queentus

finally, thx for this guide! will give it a try and feedback. BTW, can I share this guide with my native language? source url and your ID will be declaimed, of course.

As long as credit is given, by all means!!!
The Following 2 Users Say Thank You to eqbirvin For This Useful Post: [ View ] Gift eqbirvin Ad-Free
19th April 2017, 07:23 PM |#6  
Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by bobby janow

Nope, nor would you want to.

Why is that? Just curious.
19th April 2017, 07:25 PM |#7  
eqbirvin's Avatar
OP Senior Member
Flag St Louis
Thanks Meter: 234
 
More
Quote:
Originally Posted by bobby janow

Nope, nor would you want to.


Quote:
Originally Posted by awakenedwithin

Why is that? Just curious.

Yes I too am curious
19th April 2017, 07:33 PM |#8  
bobby janow's Avatar
Senior Member
Thanks Meter: 1,327
 
More
Quote:
Originally Posted by awakenedwithin

Why is that? Just curious.

Because with a locked bootloader there are no means to recover if you screw something up. I mean none other than return the device and plead for mercy. If you want to play around, and I certainly do with my 5x, then make sure the bl is unlocked or that you can fastboot and unlock it if needed. The EE and Verizon models cannot be unlocked. I have one.
The Following 2 Users Say Thank You to bobby janow For This Useful Post: [ View ] Gift bobby janow Ad-Free
19th April 2017, 07:35 PM |#9  
eqbirvin's Avatar
OP Senior Member
Flag St Louis
Thanks Meter: 234
 
More
Quote:
Originally Posted by bobby janow

Because with a locked bootloader there are no means to recover if you screw something up. I mean none other than return the device and plead for mercy. If you want to play around, and I certainly do with my 5x, then make sure the bl is unlocked or that you can fastboot and unlock it if needed. The EE and Verizon models cannot be unlocked. I have one.

Oh I miss understood what you were trying to say.
Right. I should probably put unlocked bt as a requirement
The Following User Says Thank You to eqbirvin For This Useful Post: [ View ] Gift eqbirvin Ad-Free
19th April 2017, 07:39 PM |#10  
bobby janow's Avatar
Senior Member
Thanks Meter: 1,327
 
More
Quote:
Originally Posted by eqbirvin

Oh I miss understood what you were trying to say.
Right. I should probably put unlocked bt as a requirement

You can, sure. But hopefully your walk through is read before attempting to do this and it clearly states to boot into TWRP. That's impossible with a locked bootloader.
The Following 2 Users Say Thank You to bobby janow For This Useful Post: [ View ] Gift bobby janow Ad-Free
19th April 2017, 07:45 PM |#11  
Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by bobby janow

Because with a locked bootloader there are no means to recover if you screw something up. I mean none other than return the device and plead for mercy. If you want to play around, and I certainly do with my 5x, then make sure the bl is unlocked or that you can fastboot and unlock it if needed. The EE and Verizon models cannot be unlocked. I have one.

Thank you for the reply!
Post Reply Subscribe to Thread

Tags
android o, factory images, guide, how to, root

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes