[Nexus 6P General] abaaaabbbb63:
How to flash a factory image | Return to stock | Unroot your Nexus 6P​

Hello Nexus 6P Users!

This tutorial will show you how to reset/unroot/save your Nexus 6P by flashing the Google Factory Images. ​

WARNING!!!

This process will wipe your phone

completely

. Backup your storage before you continue.

I am also not responsible if anything goes wrong.

FOLLOW EVERY SINGLE STEP

or you will end up in a bootloop, or with a bricked phone, and we don't want that

Let's get started!!

Setting up​

For this process, you will need to:

★

Install adb and fastboot drivers. To do this, use this simple program:

http://xdaforums.com/showthread.php?t=2588979

For MAC and Linux users: simply follow these instructions:

http://xdaforums.com/showthread.php?t=2638673

Off-topic: installing ADB and Fastboot so easily, what a time to be alive!

★

Download the latest factory images from here:

https://developers.google.com/android/nexus/images#angler

★Extract the archive you downloaded (Use WinRAR). It should look like this:

★Unlock your bootloader (In case you haven't already). Only follow step 1 from this thread:

http://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928

Flashing the factory images​

There is more than one way to flash these images. Each give the same results, but the first is for lazy (or smart) users :D

Method 1

. Easy method.

★Power off your phone.

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Execute the flash-all.bat script (for Windows) or flash-all.sh(for MAC and LINUX) in the folder where you extracted the factory images.

**!!** For MAC: You'll have to edit the flash-all.sh, and add "./" before every fastboot command.

★Wait for everything to flash.

★After everything finished, select "Recovery" using the volume buttons.

★When a small dead Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

★Reboot. Your phone should be stock. :good:

Method 2

. Long method (Same thing actually, but I'll mention it, just in case first one does not work)

★Extract the image-angler-xxxxxx.zip from the previously extracted folder somewhere easy to access (On C:\images for example. Make it easy to type). You will have the following files:

★In the new folder, from the original archive/folder, extract "bootloader-angler-angler-XX.XX.img" (

rename it to bootloader.img

) and "radio-angler-angler-XX.XX" (

rename it to radio.img

)

★Power off your phone.

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Open a CMD window.

★Type the following commands, in this order (If you have a different folder, change the path)

fastboot flash bootloader C:/images/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/images/radio.img
fastboot reboot-bootloader
fastboot flash system C:/images/system.img
fastboot flash vendor C:/images/vendor.img
fastboot flash userdata C:/images/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)

fastboot flash boot C:/images/boot.img
fastboot flash recovery C:/images/recovery.img
fastboot erase cache
fastboot flash cache C:/images/cache.img

★After everything finished, select "Recovery" using the volume buttons.

★When a small Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

★Reboot. Your phone should be stock. :good:

And now you have a brand new Nexus 6P (software wise, at least). Congratulations!​

​