Restore Google Pixel XL to Stock / Flash Factory Images

The Google Pixel phones epitomize the pure Android experience at its best. Originally manufactured by HTC, Pixel and Pixel XL have been designed by the California giant itself and is marketed as being a “Google phone” without any credit to HTC in any form. Both phones are good but I prefer the Pixel XL to its younger brother. Today, we’ll see how we can restore Google Pixel XL to stock and unbrick it by installing the stock firmware.

If you own the Pixel XL and have been playing around with it for a while, you must be familiar with things like resetting your phone, getting into the bootloader and recovery mode and flashing the factory images. There may be times when you might encounter issues like device overheating, random reboots, hanging and lag in performance, WiFi and network issues, boot loop, soft-brick, etc. If you know how to reset your Pixel XL and restore it to stock, you can fix such issues yourself very easily.

Related Reading:

Disclaimer and Warning

It’s kind of a formality, but we’ve to do it while writing all tutorials. If you have decided to proceed with the procedure described in this tutorial, please follow it carefully and before you do that, make sure to follow each and every step without missing anything. A good tutorial requires a good follower for desired results. If you’ve any doubt and want clarification, do not hesitate to ask. And yes, follow the guide at your own responsibility.

Prerequisites to Restore Google Pixel XL to Stock

Here’s are a few preparatory thing you should take care of before flashing the factory images:

Unlock your Pixel XL’s bootloader. Verizon Pixel XL users can use this tutorial to unlock the bootloader. Since there may be issues while rooting the Verizon model on certain firmwares, users are warned to select the factory image carefully. Please note that unlocking the bootloader and restoring to stock will wipe your phone’s data, so backup your apps and data.

Your Pixel XL’s apps and data might be wiped after flashing the factory images. If you don’t that to happen, install NotePad++and open the flash-all.bat file (found in the factory image package), and remove the “-w” from the script.

Enable Developer options on your Pixel XL: Go to Settings> About phone> Build number and tap it 7 times. Then go back to Settings> Developer options and enable USB Debugging and OEM unlocking.

Install the Minimal ADB and Fasboot Setup on your computer. When the program prompts you to create a desktop shortcut while installing, allow it. Also, remember the path where you’ve installed Minimal ADB and Fasboot Setup because you’ll need that later.

Steps to Flash Factory Images on Google Pixel XL

Already done with the preparations stated above? Great! It’s time now for the real action.

Copy the downloaded factory image zip package (in this case “marlin-nde63l-factory-71a65e7e.zip”) to Navigate to the Minimal ADB and Fastboot directory. Remember?? I told you to keep the installation path in kind.

Now extract the contents of the zip file to the same folder. Your fastboot folder should look like as shown below:

Turn off your device and boot it into the Bootloader Mode. To do so, press and hold the Volume Down + Power buttons until you see a screenshot like shown below.

Now connect your Pixel XL to your computer using the stock USB cable and wait for a few seconds so that the device drivers are installed.

Now launch the Minimal ADB and Fastboot by clicking the desktop shortcut. If you forgot to create the shortcut earlier, go to Windows Start menu> All Programs> Minimal ADB and Fastboot and click it. A command window will pop up.

To ensure that your phone is properly connected, run the following command. You’ll see a code for your device in the command window.

adb devices

Now type the following command in the command window and hit the Enter key on your keyboard.

flash-all.bat

The installation process will begin and you’ll see a string of outputs for the ongoing processes as shown below:

When you’re prompted to press a key, do that. Your phone will reboot automatically.

The first boot after restoring your device to stock may take about 5-8 minutes. Therefore, Wait patiently until you’re greeted by the welcome screen. Having done the initial setup, you’ll be able to use your phone.