How to Root the Google Pixel & Pixel XL (Video)

Unlocking the Bootloader on the Google Pixel & Pixel XL

  1. Open the ADB folder located in C:/ drive on your PC and hold down Shift on your keyboard and right-click anywhere on your screen and select Open command window here.
  2. Type in the following command into the command prompt window and press Enter.
    adb reboot bootloader
  3. It’ll reboot your device into the bootloader mode.
  4. Type in the following command into the command prompt window and hit Enter.
    fastboot oem unlock
  5. Follow the on-screen instructions on your device to unlock the bootloader.

The bootloader on your Pixel or Pixel XL should now be unlocked. Here’s how you can flash a custom recovery on it to then be able to flash SuperSU to gain root.

Flashing a Custom Recovery and Rooting the Google Pixel & Pixel XL

  1. Connect the USB Stick to the computer.
  2. Copy the .zip version of TWRP Recovery over to the USB drive (not in any folders just on the root of the storage).
  3. Copy SuperSU .zip from your desktop over to the USB drive (not in any folders just on the root of the storage).
  4. Copy the .img version of TWRP Recovery over to the ADB folder in the C:/ drive of your PC and rename it to twrp.
  5. Head to Menu > Settings > About phone on your device and tap on Build number for 7 times and it will unlock the developer menu for you.
  6. Head to Menu > Settings > Developer options on your device and enable USB debugging.
  7. Unplug the USB drive from the computer and plug in the phone via USB.
  8. Open the ADB folder on your PC and hold down Shift on your keyboard and right-click anywhere on the screen and select Open command window here.
  9. Type in the following command into the command prompt window and press Enter.
    adb reboot bootloader
  10. When your device enters the bootloader mode, type in the following command into the command prompt window and press Enter. It’ll reboot your device into the TWRP recovery mode fter that.
    fastboot boot twrp.img
  11. Once it does, unplug the phone from the computer and plug in the USB Drive into the OTG Adapter and then that into the bottom of the phone.
  12. Tap Cancel to get past the encryption menu if it comes up.
  13. Swipe to Allow Modifications.
  14. Tap Mount and tap the OTG option.
  15. Tap Select Storage and tap on the OTG option.
  16. Tap back to get to the main menu and tap on Install in the recovery menu.
  17. Select the to be flashed on your device. This is the file that you have copied to your device in step 2 above.
  18. Tap on Swipe to Confirm Flash to begin flashing the file on your device.
  19. When it’s done flashing TWRP .zip, tap back then tap Reboot and select Recovery to boot into the newly flash recovery (instead of the one we booted from the computer).
  20. When the phone enters the recovery mode, tap on Mount and tap the OTG option again.
  21. Tap Select Storage and tap the OTG option again.
  22. Tap back to get to the main menu in recovery and tap Install.
  23. Select SuperSU .zip to be installed on your device.
  24. Tap on Swipe to Confirm Flash to begin flashing SuperSU on your device.
  25. When SuperSU’s flashed, reboot your device by tapping on Reboot and wait for it to boot up normally (you can then unplug the USB and OTG from the bottom of the phone).

And there you go, your Google Pixel or Pixel XL should now be rooted with a working TWRP custom recovery on it and you should see SuperSU in the app menu.

If you need to unroot the device, head here for how to unroot it.

Let me know how this worked for you!

Pages: 1 2

Related Items: , , , ,

80 responses to “How to Root the Google Pixel & Pixel XL (Video)”

  1. Austin Baker says:

    for some reason the dePixel8 file will not download it redirects me to a weird ass encryption page. is this file still downloadable
    please help

  2. Peyton whtford says:

    at the last step when i pressed reboot it doesn’t reboot normally

  3. Michael Young says:

    Does this work with 7.1.1?

  4. Josemi says:

    So this is the systemless method or the normal one?

  5. Dino Zambaftis says:

    I followed all the steps, which were really easy to follow by the way, thank you, and when the phone rebooted supersu was not in my app drawer. The version I used was the newest one they had which is SuperSU-v2.79-201612051815. Does that one not work properly with this phone for some reason or did I do something else wrong? Thanks again for the tutorial and the help.

  6. Stovall says:

    This information is outof date for Verizon Pixel phones as of Nougat 7.1.1

  7. Piyush Hansda says:

    i got root access successfully. Running android 7.1.1 with 5th march security patch update. Though unlocking the bootloader factory resetted the device. everything else worked out fine.

  8. Keegan Kuhn says:

    Is it possible to “un-root” this to “un-void” your warranty?

  9. JDredd says:

    The process says all of my data will erased. Will I still be able to recover it via backups once the process is over?

    • David Cogen says:

      So long as you save things OFF of the phone you can put those things back. Anything on the phone will be erased.

      • JDredd says:

        Thanks! I feel so stupid asking this but…how do I save data off the phone I guess, “properly”? I know it’s a n00b question but I don’t want to screw anything up.

  10. uvdevnull says:

    This does not works with 7.1.1 or newer. Apparently it was patched and dePixel8 doesn’t support it.

  11. I’m getting a black screen after running ‘fastboot boot twrp.img’. ADB is still active so I can run ‘adb reboot bootloader’ to get back to the regular bootloader. But I can’t seem to get into TWRP. Any thoughts? Regular Pixel with unlocked bootloader.

    • David Cogen says:

      Check the twrp.img file (redownload it as well in case it was corrupt), make sure it’s also in the correct folder with adb in it and try again.

      • Thanks for your fast reply! I followed the whole tutorial, but didn’t set up the phone again after unlocking the bootloader. I already enabled USB debugging before unlocking the bootloader, so I thought I could skip step 5-8 of the Flashing section. However, unlocking the bootloader wiped everything, so I had to start it normally and enable USB debugging again. Successfully rooted now! 🙂

        Maybe you can update the text before the Flashing section to something like the following so users don’t forget to reboot.

        • David Cogen says:

          Ha, well that’s what you get for skipping my steps ;P
          Going to feature your comment instead of changing the tutorial as I think that’ll help people, too.

          Thanks for responding with the solution and glad it all worked out!

          • Christopher Thomas says:

            @TheUnlockr:disqus i ran into the same issue as @Flitskikker:disqus but i followed all your steps exactly. i just keep getting a blank screen after the fastboot boot twrp.img command. I even redownloaded the img file twice but still no difference. usb debugging is enabled as well. Thanks in advance.

  12. William Fugere says:

    doesn’t work. when i do fastboot oem unlock, it fails. does android 7.1.2 work?

  13. Luke Priddle says:

    Hey i’m not sure what im doing wrong, but as soon as I installed the first zip file and rebooted the phone in recovery it wont boot back up. Theres no way for me to reboot my phone right now. I can pull up the bootloader and run twrp again but my phone still wont boot into its normal state.

  14. Ayomiposi says:

    Hey i’m not sure what im doing wrong, but as soon as I installed the first zip file and rebooted the phone in recovery it wont boot back up. Theres no way for me to reboot my phone right now. I can pull up the bootloader and run twrp again but my phone still wont boot into its normal state.

      • Luke Priddle says:

        Hey man, thanks for the reply, I got it back to stock and it works fine. I do still want to root it, however im not sure why the root went sideways, I am on the Bell network in Canada, would that have something to do with it?

        • David Cogen says:

          No problem! And that shouldn’t matter but I don’t have a version to test with so just check online for rooting the Bell Pixel and see if anything comes up that might be different. Also check the featured comment above in case that’s part of your issue. Good luck!

          • Luke Priddle says:

            Yeah I followed all the steps the same and as soon as I complete step 19 it just gets stuck on an endless boot cycle, it wont load into twrp recovery. It just brings you to the please lock bootloader screen then flashes the google start screen then repeats itself.

          • David Cogen says:

            Well at least the urnooting tutorial is working to get you back to stock. You’ll have to look online and see if there is maybe a different version of recovery for your specific model. Good luck

  15. SuperGoldGamer says:

    Hey dude, I am getting stuck on the most likely obvious part, I can’t seem to find out how to download the dePixel8 file! I hope you can respond!

  16. Lily Gee says:

    stuck at bootloop when i reboot recovery! please help!

  17. Vernon Lumpkin Jr. says:

    1st off thanks for this tutorial, worked great for me.
    Until 3 hrs ago when twrp, super super, and a few meaningless apps… Facebook Google drive, keyboard, etc.updated. Now I have lost root. Not sure if it was the actual updates or it said it had to update binary. So to get root back I’m guessing I have to delete twrp and super su, and redo tutorial? What about a few root app? Titanium, a disabler to stop updates etc. I’m still on April 7.1.2 verified n settings. Thanks

    • David Cogen says:

      That’s odd. Did you update the OS or just apps in the play store?

      • Vernon Lumpkin Jr. says:

        Lol just the playstore updates

        • Vernon Lumpkin Jr. says:

          Now root checker root not properly installed

          • Vernon Lumpkin Jr. says:

            Root has been functioning great for 4-6 weeks since install and system update freeze. Oh no. Hope system update don’t re awake

      • Vernon Lumpkin Jr. says:

        Ok. Turn off fone and held power+ vol down, twrp is intact and fictional. Some how it’s just the root part of super su and SuperSU pro + binary code update. Guess I’ll get hold of them and should just HV to rework root part of tutorial. Thanks

      • Vernon Lumpkin Jr. says:

        Ok. According to SuperSU forum, they screwed up an update 2.8, newest. Don’t take it! All who did lost root. I’m rolling back to previous. And make sure if I take next it’s 2.81

        • David Cogen says:

          Ha, OK well hopefully that’s all you need to do and they’ll patch the next version of SuperSU. Thanks for reporting back what happened to help others out!

  18. Jesus Lango Jr. says:

    Will this work on Verizon 7.1.2?

    • David Cogen says:

      I don’t have a Verizon phone anymore so I can’t test but you can try and worse case it’ll just fail. Also maybe check with the DePixel site linked above as it’s needed for Verizon and if he didn’t update it, none of this will work.

  19. John Augustus Folger says:

    anyword if it works with 7.1.2? Verizon?

    • David Cogen says:

      So it works with 7.1.2 not Verizon version for sure, but the Verizon version no one has reported back. You’ll have to check with the DePixel creators over on XDA. Good luck.

  20. Jakke Hamm says:

    This will be my first time ever trying to root a phone so I am certainly nervous about doing so. My question is what are the direct links to all the downloads that I need because I am getting confused on the correct versions. The phone I am getting is a Pixel XL direct from Google and it will be used on the Verizon network. So a follow up question is should I activate the phone before I root it or after? Any other advice for a first time rooter would be greatly appreciated as well. Thank you for your assistance.
    UPDATE: Got stuck in a boot loop after trying to flash the TWRP.ZIP file. and adb isn’t recognizing my phone. Any suggesting? It’ll loop a few times then stop, I’ll then hold the power button and i get a message at first
    “[Ramdump] Writing to EXT4 file…
    Please press VolUP+ VolDown to stop”
    Then i’ll get the “Please lock the bootloader” message.
    Then the Google logo will flash and it’ll restart into the “Please lock bootloader” a few times and then nothing.
    Please help.

  21. Aamir Ashraf says:

    I have a huge problem. After rooting I tired factory resetting to restore my data.
    Now, its pretty much stuck on a bootloop.
    Something like “writing to ext4 file” comes up

    Can someone help me fix this?

  22. Sean G says:

    i have a pixel and i was attempting to flash this…and once i fastboot boot twrp.img it reboots and it hangs on the “teamwin” screen right before the screen where the option to “swipe for modifications” anybody experience this and if so …how did you fix this? also i was on DP3 O i unenrolled and then reflashed all the way stock….

  23. Sam says:

    Just wondering what updates there would be to doing this on Android 8.0. I like the detail of this tutorial, but the others I’ve looked at involve installing SUhide. Any tips or information would be much appreciated!

  24. plinkster68 says:

    SO, Is this still a valid tutorial on rooting the Pixel?? was reading replies and was wondering why so many people having trouble with the tutorial, boot loops and such????

  25. Ben Doughver says:

    Hi, Ive tried on several attempts to do this and I receive “[+] getting there, about 20 more seconds please [-] it didnt work out this time 🙁 [-] after your device reboots, please try again.” I’ve follow the tutorials backwards and forwards ensure that everything is correct up to this point. What am I doing wrong? Please help, Thanks

  26. Barry Smyth says:

    Such a shame all the links are outdated, I was going to try this to root my pixel XL but don’t want to risk downloading wrong versions and bricking my phone.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.