How to Unroot the Google Pixel & Pixel XL

Need to unroot your Pixel or Pixel XL? Maybe you’ve taken rooting too far and now need a clean slate? Maybe you need to sell the phone? Either way, it’s pretty easy to get it all back to stock.

Thanks to Google providing us with the firmware on their own site (since it is a Google built device), it comes down to just flashing that and relocking the bootloader using some commands in ADB.

If you’re ready, here’s how to unroot the Pixel or Pixel XL.

Before You Begin

  1. You should’ve rooted your device using our how to root the Google Pixel & Pixel XL procedure.
  2. This procedure has been written keeping Windows as the host OS.
  3. This will get your device back to the stock firmware so please backup everything that you wish to keep.
  4. This will also re-lock the bootloader on your device.
  5. You should have set up ADB on your PC before you can do this procedure.

Unrooting the Google Pixel & Pixel XL

Unroot-PIxel-XL

To unroot the device, you’ll flash the stock system image on the phone and then re-lock the bootloader using the standard bootloader re-locking method. Here’s how to do that.

Downloading Required Files

download-factory-image

  1. Download the Factory Image for your device and save it to your desktop.
    Factory Image for Pixel & Pixel XL (Download the one that is for your device)

Unrooting the Google Pixel & Pixel XL

    1. Extract files from Factory Image over to the ADB folder located in the C:/ drive of your PC.
      copy-image
    2. Head to Menu > Settings > About phone on your device and tap on Build number for 7 times to unlock the developer menu.
      build-number
    3. Head to Menu > Settings > Developer options and turn on USB debugging.
      usb-debugging
    4. Plug in your device to your PC using a USB cable.
      plug-in-device
    5. Open the ADB folder on your PC and hold down Shift on your keyboard and right-click anywhere on your screen and select Open command window here.
      cmd
    6. Type in the following command into the command prompt window and hit Enter (your device will reboot into bootloader mode after that):
      adb reboot bootloader
      reboot-bootloader

 

  1. Next up, type in the following command into the command prompt window and press Enter:
    flash-all.bat
    flash-all
  2. It will launch the file that will flash all of the factory image files on your device. Wait for it to finish flashing all the files.
    finished

Your device will reboot when the firmware has been fully flashed.

You may now wish to re-lock the bootloader on your device. Here’s how to do that:

Re-locking the Bootloader on the Google Pixel & Pixel XL

  1. Turn off your device.
    turn-off
  2. Hold down Volume DOWN and Power buttons together for a few seconds.
    volume-down-power
  3. Your device will reboot into the bootloader mode.
    bootloader-mode
  4. Plug in your device to your PC using a USB cable.
    connect-usb
  5. 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.
    cmd
  6. Type in the following command into the command prompt window and press Enter:
    fastboot oem lock
    oem-lock
  7. Follow the on-screen instructions to re-lock the bootloader on your device.
    relocking-bootloader

The bootloader on your Google Pixel or Pixel XL should now be re-locked.

Done! Let me know in the comments below how it went for you or if you need help!

Related Items: , , ,

Join 90k others & subscribe to my weekly, not annoying newsletter for more tech!

* indicates required