yashsingh1/xdaforums huggingface dataset:
[Google Pixel Guides, News, & Discussion] Arpman96:
Instructions slightly modified for Mac & OTG flash drive

The first time I walked through the steps posted by the OP, (thanks!) I had to modify the method slightly to flash TWRP and SuperSU directly from an OTG flash device. Still, the first time the Pixel booted into O I didn't have root! :(

I repeated the entire procedure again only this time I changed how I responded to the "Install TWRP app" prompt from TWRP. Listed below are my steps that allowed me to root a Pixel on the Mac. Everything is identical until after the OP's steps to run the flash-all scripts so that is where my list starts.

Installing TWRP and Root

• This assumes flash-all.sh has been run successfully for both images, Slot "a" has been selected and the Pixel has been rebooted into the bootloader.

• Boot into TWRP (RC1) using a command like this: fastboot boot twrp-3.0.2-0-RC1-fastboot-sailfish.img

• Make sure you're in slot A by going to the TWRP "Reboot" menu then looking at the bottom (It should be slot A at this point, if its not something wasn't done correctly in the above steps)

• Copy SuperSU-v2.79-SR4-20170323220017-ODP1-5X-6P-ExtraDelay.zip & twrp-pixel-installer-sailfish-3.1.0-0RC2.zip to the root directory of a USB drive and find the USB OTG adapter that came with the Pixel. The USB drive and adapter will allow you to flash these files from the currently running instance of TWRP.

• Connect the flash drive and OTG adapter to the Pixel. From the main TWRP menu, select MOUNT and mount the OTG adapter. Also select the OTG flash drive as the current storage.

• Back to the main TWRP menu, select the FLASH button. Select and flash the TWRP RC2 zip file from the USB drive for now. After it is installed, switch to slot b in the TWRP Reboot menu. Then reboot to recovery.

• When TWRP comes back up, check to make sure you're in slot B still.*

• If you are, now flash the SuperSU SR4 2.79 Extra Delay zip file.*

• Now reboot to system. At this point TWRP will ask you to select if you would like the TWRP app installed prior to rebooting. When first attempting this root procedure I allowed TWRP to do the app install. After several reboots, Android O came up but SuperSU showed that it was NOT rooted. I repeated the whole procedure but declined to install the TWRP app. The root worked after that. I can't say for sure that was the problem but it seems likely.

• It should boot into android o, walk through setup and make sure supersu is installed. Check the "Settings" in SuperSU which will indicate if you have super user.

• If it does, Congratulations you have rooted android O on your Pixel!
[Google Pixel Guides, News, & Discussion] -DarkKnight-:
Anyone try this with the new developer preview yet?
[Google Pixel Guides, News, & Discussion] eqbirvin:
Until we get factory images this wont be possible via this exact method

EDIT Scratch that factory images are up. Testing this method right now: will update
[Google Pixel Guides, News, & Discussion] paco8:
Hope you didn't run into any problems! And I'm looking forward to your instructions when it works. :laugh:

Thanks!
[Google Pixel Guides, News, & Discussion] yung40oz84:
Awaiting results, wanna give this a go. Thanks!
[Google Pixel Guides, News, & Discussion] rachanta:
It works...

The method at OP works with 2 modifications:

flash boot loader and radio of the 7.1.2 ROM in both slot a as well as slot b

...now run the flash-all.bat from the 7.1.2 image folder

.....

flash boot loader and radio of the OP2 ROM in both slot a as well as slot b

...From here; boot into TWRP (RC1)

.......

This way I could get root and boot into O-Preview 2

However I later ran into a issue of zips not getting installed in TWRP...."zip file corrupted error"

Had I not attempted to install my custom kernel, everythinng would have been fine. I am sharing this so that experts can suggest . I want to know if zips need to be signed before flashing....I will also try to flash my kernel zip through flashify...

---------- Post added at 07:59 PM ---------- Previous post was at 07:36 PM ----------

@eqbirvin - flashable super su zip file were not corrupt during first install of root as per your method. After that I went into TWRP again and tried to flash my custom kernel and super su again and got the corrupt zip file message in both cases.

Is there a mistake somewhere...

Contents of 1st flash-all to install O Preview 2 in slot b

#!/bin/sh

fastboot flash --slot _b bootloader bootloader-sailfish-8996-012001-1704271501.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _b radio radio-sailfish-8996-013011-1704211309.img

fastboot reboot-bootloader

sleep 5

fastboot -w update --slot _b --skip-secondary --skip-reboot image-sailfish-opp2.170420.017.zip

Contents of 2nd flash-all to install Nougat in slot a

#!/bin/sh

fastboot flash --slot _a bootloader bootloader-sailfish-8996-012001-1703151359.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _a radio radio-sailfish-8996-012901-1702171013.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _b bootloader bootloader-sailfish-8996-012001-1703151359.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _b radio radio-sailfish-8996-012901-1702171013.img

fastboot reboot-bootloader

sleep 5

fastboot -w update --slot _a --skip-secondary --skip-reboot image-sailfish-n2g47o.zip

sleep 5

fastboot flash --slot _b bootloader bootloader-sailfish-8996-012001-1704271501.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _b radio radio-sailfish-8996-013011-1704211309.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _a bootloader bootloader-sailfish-8996-012001-1704271501.img

fastboot reboot-bootloader

sleep 5

fastboot flash --slot _a radio radio-sailfish-8996-013011-1704211309.img

fastboot reboot-bootloader

sleep 5
[Google Pixel Guides, News, & Discussion] eqbirvin:
amazing you found how to get root working! I will try this method right now.

Regards to your customer kernel, what is the base?
[Google Pixel Guides, News, & Discussion] rachanta:
I think my last post tries to automate a tad too much. Just follow the principles from my earlier post on this subject.

I actually could not repeat it. So I am trying again after a clean install of stock OP2 without root.

Kernel base is O-Preview 2
[Google Pixel Guides, News, & Discussion] eqbirvin:
Im not having luck with this method. When you say you flashed 7.1.2 flash-all.bat do you mean the un-edited one? and are you flashing that after you flash the android o dev 2 flash-all.bat or before?

From my understanding youre saying:

flash our edited dev prev 2 flash-all.bat

then flash bootloader and radio from 7.1.2 (april update the one ending in "E") to both slots

then flash the edited flash-all.bat from 7.1.2

then flash just the bootloader and radio from dev pev 2 to both slots

boot twrp rc1

move supersu extra delay over

flash suspersu

boot to system

Is this correct?
[Google Pixel Guides, News, & Discussion] eqbirvin:
cool i really appreciate it.

Im testing the magisk way that is floating around atm
[Google Pixel Guides, News, & Discussion] rachanta:
Correct. I managed to repeat it. Again the kernel wrecks it. May be i need a signed boot image.
[Google Pixel Guides, News, & Discussion] eqbirvin:
Its great you were able to repeat it! unfortunately i was not able to. What are the steps your taking?

It really sucks the kernel isn't playing nicely, it is possible you need a "signed" boot image since all the issues we are having with the may+ bootloaders causing havoc
[Google Pixel Guides, News, & Discussion] yung40oz84:
Well, with the new bootloader u do need chainfires verified boot zip for SuperSU, not sure if that had anything to do. Could you update the steps accordingly in OP? I couldn't get to to work the first time, thanks!

---------- Post added at 05:54 PM ---------- Previous post was at 05:54 PM ----------

Ya that was my thoughts.
[Google Pixel Guides, News, & Discussion] eqbirvin:
I will def update OP once we get the steps cleared up!
[Google Pixel Guides, News, & Discussion] yung40oz84:
I wanna try, lol
[Google Pixel Guides, News, & Discussion] eqbirvin:
by all means!! You said you had no luck on first go around right?
[Google Pixel Guides, News, & Discussion] rachanta:
I think I made a mistake and am not sure if I actually got root. I did boot into o, but there was no root. I tried flashing verified boot image zip after that, but it just broke everything. The steps are such that one small mistake is enough to end up going around in circles.

I am trying one final time. I plan to flash SuperSU followed by verified and then boot to see if I get root.
[Google Pixel Guides, News, & Discussion] yung40oz84:
Magisk 13 is said to be compatible with Android O, and there is someone building Magisk for pixel devices. I was asking if he can build Magisk from source and build V13 for pixel and android O, that would solve a lot, lol. Hopefully chainfire has some news soon involving O
[Google Pixel Guides, News, & Discussion] jacobkuczynski:
There was another software up date that just hit.
[Google Pixel Guides, News, & Discussion] cjkacz:
No matter what I do I cannot get the fastboot commands for switching partitions to work. I have updated sdk / platform-tools etc. Says "unrecognized option --set-activity=_b"
[Google Pixel Guides, News, & Discussion] Golf c:
I use fastboot --set-active=a (b)
[Google Pixel Guides, News, & Discussion] Subhojit:
Should the same instructions be applicable for Nexus 6P running DP1 or 2?
[Google Pixel Guides, News, & Discussion] cjkacz:
cjkacz@cjkacz-Satellite-L755D:~/Android/Sdk/platform-tools$ fastboot --set-active=b

fastboot: unrecognized option '--set-active=b'

EDIT: got it by doing this

fastboot set_active _b
[Google Pixel Guides, News, & Discussion] Golf c:
Very strange, works for me every time.
[Google Pixel Guides, News, & Discussion] X04D:
Perhaps a notice in the OP that this doesn't work for preview 2.
[Google Pixel Guides, News, & Discussion] eqbirvin:
You wouldnt need to do this. For the N6p just flash opp2, flash twrp, flash magisk that is working for Android O
[Google Pixel Guides, News, & Discussion] AJ:
i have tried this method on dp2 with no luck
[Google Pixel Guides, News, & Discussion] cjkacz:
Anyone get twrp (not root) on prev 2?
[Google Pixel Guides, News, & Discussion] phishfi:
Doesn't look like it. Something seems to be stopping the system from fully booting anywhere when the boot image is different. Might be related to the graphics drivers and other vendor blobs being removed from Android proper (not an expert, but I suspect it's something related to Project Treble since ADB still works).
[Google Pixel Guides, News, & Discussion] X04D:
Yeah, just fastboot boot twrp rc1, flash rc2 zip.
[Google Pixel Guides, News, & Discussion] bigthugs0:
booting RC1 didn't work for me on pixel xl

the twrp splash screen keeps quickly flashing

i tried all twrp fasboot versions with same problem
[Google Pixel Guides, News, & Discussion] cjkacz:
I had same issue
[Google Pixel Guides, News, & Discussion] X04D:
I followed the steps in the OP and everything worked except root. TWRP RC2 is working just fine for me on DP2.
[Google Pixel Guides, News, & Discussion] eqbirvin:
Just an info update - sorry

I know there hasnt been any updates because no root has been found but i figured id record what i have "discovered"

1) twrp rc2 does not like opp2. For me and many others it wont even boot into twrp rc2 after it is installed via recovery (and i cant fastboot boot rc2) this is an issue because...

2) the boot signer vig release by chainfire requires rc2 to flash. However..

3) after trial and error i got opp2 to temporarily be okay with twrp rc2, which allowed me to flash the supersu 2.79 sr4 extra delay and the signed boot zip (v7, v5 and v6.1 just fyi) but...

4) even after flashing those things and getting opp2 boot, supersu is not present and the system does not appear to be touched at all.

5) I have tried magisk 12 for the pixel and unofficial 13 (just for the heck of it) both give me errors inside of twrp

6) TWRP Alpha 2 can be permanently installed to opp2 oddly enough

7) It allows me to flash the signed boot zip and supersu with no errors in twrp itself but opp2 still boots with nothing installed (this was tried from alpha 2 being installed to the device and just booted from fastboot)

So its looking like an update to twrp, supersu or magisk is required (that is my uniformed option) so if it happens awesome. If not, oh well
[Google Pixel Guides, News, & Discussion] holla420:
Ah damn was hoping to hear we have root on ODP2. Oh well gotta be patient.
[Google Pixel Guides, News, & Discussion] eqbirvin:
Chainfire says he got root working on Android O DP2 on the Pixel XL and he will release it in the next SR SuperSU release! Keep an eye out ya'll!
[Google Pixel Guides, News, & Discussion] cjkacz:
Would be nice if TWRP was workable
[Google Pixel Guides, News, & Discussion] eqbirvin:
TWRP will work before you boot into dp2 with a little determination. If it's anything really complicated I'll update my OP with a sure fire how to (assuming we find a consistent way to get into TWRP)
[Google Pixel Guides, News, & Discussion] X04D:
I followed the directions in the OP and I have TWRP RC2 on Android O.
[Google Pixel Guides, News, & Discussion] eqbirvin:
That's awesome! But to be honest I follow my own directions in the op and only get TWRP rc2 50% if the time lol
[Google Pixel Guides, News, & Discussion] krazekid7:
on dp3, I was able to get rc2 to boot and stick permanently. I was trying to install magisk 13 beta and it obviously failed. I tried to install v13 made for the pixel and it went through but no root. I then foolishly tried to install a kernel and it messed everything up.

I re-flashed the dp3 image and tried to install twrp but it only flashes every time. Ive now spent my night trying to reinstall it to boot to no avail. So far, the only solution was for the nexus 6p and that was to wipe cache in fastboot but that command no longer works.

Any help would be great.
[Google Pixel Guides, News, & Discussion] Sh0X31:
Do someone try SuperSU v2.82 SR1

-> SuperSU XDA Thread
[Google Pixel Guides, News, & Discussion] krazekid7:
i;m about to try once I can adb with the flickering TWRP
[Google Pixel Guides, News, & Discussion] Sh0X31:
TWRP work with DP3?

SuperSU works look at this
[Google Pixel Guides, News, & Discussion] -DarkKnight-:
TWRP doesn't seem to work. No flickering but a black screen every time. No amount of waiting will fix the black screen
[Google Pixel Guides, News, & Discussion] Sh0X31:
thanks for the info, so know waiting for twrp :(
[Google Pixel Guides, News, & Discussion] eqbirvin:
I'm on my way into work where I will start testing!
[Google Pixel Guides, News, & Discussion] Sh0X31:
[MENTION=4582030]eqbirvin[/MENTION] this will help you for sure

-> click
[Google Pixel Guides, News, & Discussion] Taebom:
With the new boot-to-root img i'm rooted on DP3 no problem. No need for twrp.
[Google Pixel Guides, News, & Discussion] eqbirvin:
Quick update: The method Chainfire used to install (the boot to root) seems to rooting for people.

Regarding twrp and DP1-3 I can get twrp rc1 booted if i flash the flash-all from the DP image then without letting it boot into system, back in boot-loader booting into twrp from there. Until twrp is updated i HIGHLY recommend we just use chainfire's boot to root method.
[Google Pixel Guides, News, & Discussion] X04D:
Anyone get Substratum working with ODP3 and SuperSU? It hangs on "INSTALLING OVERLAY 'SYSTEM UI'".
[Google Pixel Guides, News, & Discussion] pahlerc1:
was told on G+ that it will get updated sometime today... i asked the same question and said needs to be updated for DP3
[Google Pixel Guides, News, & Discussion] eqbirvin:
OP updated with instructions
[Google Pixel Guides, News, & Discussion] X04D:
Awesome news. Thanks!
[Google Pixel Guides, News, & Discussion] krazekid7:
is it just my phone or is this root system-less? I cant install apks to the system :(
[Google Pixel Guides, News, & Discussion] Sh0X31:
If you let the Pixel boot up it is force encrypting hisself? What happens when I boot direct to bootloader after successfully flashing the image and use fastboot boot boot-to-root.img? Then I keep my phone uncrypted?
[Google Pixel Guides, News, & Discussion] Sh0X31:
I flash the image without -w (wipe) on my Pixel and I don't boot up (because of the encryption). I reboot direct in the bootloader and use to boot-toroot.img but my phone always reboot after the Google Splashscreen

How I flash O Dp3:

fastboot flash radio radio-x.img

fastboot flash bootloader bootloader-x.img

fastboot reboot-bootloader

fastboot update image-sailfish-o-dp3.zip

after successfully flashing the Image of Android O DP3, I press Vol Down and use reboot to boot into bootloader. Here I use the boot-to-root from Chainfire:

fastboot boot boot-to-root.img
[Google Pixel Guides, News, & Discussion] piperx:
How many places you going to post this ?
[Google Pixel Guides, News, & Discussion] eqbirvin:
Yeah there is a chance we won't be able to mess with the system. We had the same issue on Nexus devices and Android n dp
[Google Pixel Guides, News, & Discussion] DIXZ06:
I have not had problems installing .apk files
[Google Pixel Guides, News, & Discussion] krazekid7:
I'm using a pixel XL and you can't mount the system

---------- Post added at 01:35 AM ---------- Previous post was at 01:34 AM ----------

Was there ever a fix? Root is pretty pointless I'd you can't edit the system

---------- Post added at 01:46 AM ---------- Previous post was at 01:35 AM ----------

I also don't have sound when I make a phone call. I had to unroot
[Google Pixel Guides, News, & Discussion] Tulsadiver:
What is your procedure for installing modded SystemUIGoogle.apk and framework-res.apk?
[Google Pixel Guides, News, & Discussion] eqbirvin:
Try using a file explorer to replace the existing apks
[Google Pixel Guides, News, & Discussion] Tulsadiver:
That doesn't work
[Google Pixel Guides, News, & Discussion] richardcto:
Is it possible for you to upload your framework-res.apk for me? Thanks.
[Google Pixel Guides, News, & Discussion] Tulsadiver:
Sure

https://www.androidfilehost.com/?fid=673368273298962638
[Google Pixel Guides, News, & Discussion] krazekid7:
Has anyone found a way to mount the system on odp3?

And does your phone app work for sound when you call someone? I can't hear the person and they can't hear me. This is only after I root via boot to root.
[Google Pixel Guides, News, & Discussion] piperx:
Or just do

https://xdaforums.com/showthread.php?p=72686197
[Google Pixel Guides, News, & Discussion] Sh0X31:
Still no way to root the pixel without boot up (disabling force encryption)?
[Google Pixel Guides, News, & Discussion] bossei:
So to sum this up for myself here are the steps as I understand them to root and install TWRP.

1. Root the phone with boot-to-root

2. Boot into recovery using the TWRP image file

3. Install RC1 or can RC2 be installed for TWRP

4. Install the EXTRA DELAY file

5. Reboot and I should be rooted with TWRP

Is this correct in that order?

---------- Post added at 10:39 PM ---------- Previous post was at 10:35 PM ----------

BTW anyone get Magist to work on DP3? The updated version for the pixel in RR ROM forum. I'm asking for Android Pay
[Google Pixel Guides, News, & Discussion] madnik:
I have tried this countless times, running on win 10 creator edition, and I can't even get the commands on the cmd to work. I've been at this since I got my XL last week, and nothing. I bought it directly from the play store. Even after editing the flash-all, I don't get anything from that either. It just tells me it can't locate slot a or b. Like they don't exist. That's actually what it tells me, can't find slot a or b. Any suggestions? Or any help would be greatly appreciated.
[Google Pixel Guides, News, & Discussion] eqbirvin:
It sounds like adb/fastboot isn't updated or installed.
[Google Pixel Guides, News, & Discussion] madnik:
I'm currently running dp3, and at first it would only say slot b on the bootloader, and after I flashed all of the original img, it says slot a now.

---------- Post added at 07:24 PM ---------- Previous post was at 07:23 PM ----------

I get nothing from boot to root either. It restarts a few times but, no root access. I've wiped, I've don't everything I've read on a few different forms to do, and nothing.
[Google Pixel Guides, News, & Discussion] eqbirvin:
https://xdaforums.com/android/software/guide-how-to-set-fastboot-adb-to-wide-t3591240

Make sure you follow this guide to manually make sure the adb/fastboot is installed correctly
[Google Pixel Guides, News, & Discussion] madnik:
After I load the drivers, I still get this layout, and when I do the commands, it still doesn't allow me to do anything with the partitions.
[Google Pixel Guides, News, & Discussion] ANDR01DN00B:
Try something like "fastboot devices" rather than just typing fastboot.
[Google Pixel Guides, News, & Discussion] madnik:
I did, lol sorry, that's just how the setup comes up. Not like the pic on the first page. When I add fastboot devices, it just gives me my serial of my device.

---------- Post added at 01:43 AM ---------- Previous post was at 01:41 AM ----------

My problem is when I add the commands for trying to do anything with the partitions, a and b, it doesn't allow me to do anything. It will say it can't find slot a or b. And I do the commands exactly like it says to
[Google Pixel Guides, News, & Discussion] bossei:
I had this same issue on my Mac. I THINK the issue is still adb/fastboot. It's not setup correctly or just isn't working correctly. Use this to set it up; that's what I used on my Windows 8 machine and it worked for me. https://xdaforums.com/showthread.php?t=2588979

---------- Post added at 12:56 AM ---------- Previous post was at 12:55 AM ----------

Can someone confirm my understanding and answer the Magist question also. Thanks in advance.
[Google Pixel Guides, News, & Discussion] madnik:
That's the walkthrough I used also, updated my platform tools and all. I don't know what else to do. I wish there was a root toolkit like the Nexus' had lol

---------- Post added at 02:58 AM ---------- Previous post was at 02:56 AM ----------

Funny thing is , I can still use the nrt to do certain things, and it sees that I'm using the pixel XL and says it will change it to the correct build , it even shows the build needed, downloads the correct su but, it doesn't change it ND it can't finish getting all the correct items needed for it lol
[Google Pixel Guides, News, & Discussion] AJ:
with the method in the OP i have root but none of the root apps are working properly like adaway and emoji switcher ,

is it for everybody or just me ?
[Google Pixel Guides, News, & Discussion] uodii:
I dont think Magisk works on DP3 yet, but at the same time I dont think it matters yet because there's no custom kernel containing a SafetyNet patch yet either. It would simply add a different method of root and additional addons.
[Google Pixel Guides, News, & Discussion] krazekid7:
Does this work on ODP3? And what it the extra day file?

---------- Post added at 10:21 PM ---------- Previous post was at 10:20 PM ----------

The op needs to update the post. Chainfirw released a fixed version of the root that mounts the system.
[Google Pixel Guides, News, & Discussion] bossei:
Ah good point. I didn't even think about those factors.

---------- Post added at 10:17 PM ---------- Previous post was at 10:16 PM ----------

Sorry meant extra delay file
[Google Pixel Guides, News, & Discussion] AJ:
where could i find it ?
[Google Pixel Guides, News, & Discussion] krazekid7:
Does does this work for ODP3? Meaning, have you been able to use a fully working TWRP recovery?
[Google Pixel Guides, News, & Discussion] eqbirvin:
Those looking for TWRP on DP3, I have found no consistent way to install TWRP. If anyone has had luck using a method i might be missing, please feel free to chime in!