[Nexus 6P General] Heisenberg:
FAQ can be found in post #3!

7. How To Install A ROM with TWRP Recovery

Prerequisites: unlocked bootloader (section 1), TWRP recovery (section 2).

Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).

Download a ROM and appropriate Gapps package and place on your device. You'll also need to find out what build your ROM is based on and download the vendor image for that build, you'll find the latest in my index here.

Boot into your custom recovery.

Perform a full wipe.

Select the wipe option from the TWRP home screen.

Select advanced wipe.

Check the system, data, cache, and dalvik cache options.

Swipe to wipe.

Install the ROM.

Select the install option from the TWRP home screen.

Navigate to where you have the ROM zip stored on your internal storage and select it. You can hit the "add more zips" button now to queue up your gapps package to be flashed after the ROM zip.

Swipe to install.

Most ROMs will run an installer script at this point but some ROMs have what is called an Aroma Installer which allow you to choose some install options before the script runs.​

Hit the home button once everything has finished installing.

Install the appropriate vendor image.

Select the install option from the TWRP home screen.

Click the "install image" button in the bottom-right corner.

Navigate to where you have the vendor image stored on your internal storage and select it.

You'll now be asked which partition to flash the image to, select vendor.

Swipe to install.

Once you've installed all necessary zips/images you'll have an option to wipe cache/dalvik and an option to reboot system, hit the reboot system button and you'll boot into your new ROM.

​

8. How To Install A Custom Kernel With TWRP Recovery

Prerequisites: unlocked bootloader (section 1), TWRP recovery (section 2).

A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, undervolting, changing governors, changing I/O schedulers, adjusting colour calibrations, adjusting sound calibrations, and many other options.

Download a kernel that is compatible with your current ROM.

Check the md5 to verify its integrity.

Enter TWRP recovery.

Select the install option from the TWRP home screen.

Navigate to the kernel and select it.

Swipe to install.

You'll have an option to wipe cache/dalvik and an option to reboot system, hit the reboot system button.

Once your phone has booted up you can use a kernel tuning app to change governors, I/O scheduler, clock speed, and other options. Some of the popular kernel apps are Kernel Auditor, Trickster Mod, No Frills, Kernel Tuner, and many more.

​

9. How To Update To A New Build Of The Stock ROM

Prerequisites: unlocked bootloader (section 1).

This method does not wipe your data, so you will keep your apps and settings. You should have no problems, however, if you experience problems you may need to perform a factory reset and flash again. Make a backup first and transfer it to your PC.

Download the latest build via the appropriate factory images for your model (Nexus 6P/Angler) here.

Unzip the angler-xxxxxx-factory-xxxxxxxx (x's replace variables) into a directory on your PC (for this guide we'll use C:\angler\).

Once unzipped you should have a folder named angler-xxxxxx (x's replace variables). Open it and move the following files to a new directory named C:\angler\images\:

bootloader-angler-angler-xx.xx.img

radio-angler-angler-xx.xx.img

(Please note that radio and bootloader naming changes from build to build so the filenames and below commands will change with them)

Within C:\angler\angler-xxxxxx\ you'll see another zip archive named image-angler-xxxxxx, unzip the contents of that zip into the C:\angler\images\ folder we created before. Now within C:\angler\images\ you should have the following files:

android-info.txt

boot.img

bootloader-angler-angler-xx.xx.img

cache.img (not present on Android 7.1.2 and above)

radio-angler-angler-xx.xx.img

recovery.img

system.img

userdata.img

vendor.img

Boot into the bootloader and connect your phone to your PC via usb cable.

Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash cache C:\angler\images\cache.img
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img

On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache.

Once all operations are complete you can reboot the device.

You'll have to flash SuperSU again now, plus add any mods that you previously had.

​

10. How To Flash The Factory Images (And Return To Stock)

Prerequisites: unlocked bootloader (section 1).

This section will explain how to return the phone to be like it was when it came out of the box. This will wipe

everything

from the phone. If you wish to flash the factory images without wiping your personal data from the internal storage please move on to the next section.

Go to Settings/Backup & Reset and perform a factory data reset. This will remove all of your user data from the device (apps, settings, photos, music, etc).

Download the appropriate factory images for your model here.

Unzip the angler-xxxxxx-factory-xxxxxxxx (x's replace variables) into a directory on your PC (for this guide we'll use C:\angler\).

Once unzipped you should have a folder named angler-xxxxxx (x's replace variables). Open it and move the following files to a new directory named C:\angler\images\:

bootloader-angler-angler-xx.xx.img

radio-angler-angler-xx.xx.img

(Please note that radio and bootloader naming changes from build to build so the filenames and below commands will change with them)

Within C:\angler\angler-xxxxxx\ you'll see another zip archive named image-angler-xxxxxx, unzip the contents of that zip into the C:\angler\images\ folder we created before. Now within C:\angler\images\ you should have the following files:

android-info.txt

boot.img

bootloader-angler-angler-xx.xx.img

cache.img (not present on Android 7.1.2 and above)

radio-angler-angler-xx.xx.img

recovery.img

system.img

userdata.img

vendor.img

Boot into the bootloader and connect your phone to your PC via usb cable.

Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash cache C:\angler\images\cache.img
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img

On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache.

If you wish to you can also relock the bootloader with this command:

fastboot flashing lock

(This command will wipe all user data from the device)

Important: do not lock the bootloader unless you have first flashed the stock images. Locking the bootloader while you have a custom recovery installed can result in a brick. Please also note that the locking procedure will wipe all user data from the device.

Once all operations are complete you can reboot the device.

​

11. How To Flash The Factory Images (Return To Stock But Leaving Internal Storage Intact)

Prerequisites: unlocked bootloader (section 1).

This section will explain how to return the phone to be like it was when it came out of the box, except it will not wipe any of your personal data (photos, music, etc) from the internak storage.

Download the appropriate factory images for your model here.

Unzip the angler-xxxxxx-factory-xxxxxxxx (x's replace variables) into a directory on your PC (for this guide we'll use C:\angler\).

Once unzipped you should have a folder named angler-xxxxxx (x's replace variables). Open it and move the following files to a new directory named C:\angler\images\:

bootloader-angler-angler-xx.xx.img

radio-angler-angler-xx.xx.img

(Please note that radio and bootloader naming changes from build to build so the filenames and below commands will change with them)

Within C:\angler\angler-xxxxxx\ you'll see another zip archive named image-angler-xxxxxx, unzip the contents of that zip into the C:\angler\images\ folder we created before. Now within C:\angler\images\ you should have the following files:

android-info.txt

boot.img

bootloader-angler-angler-xx.xx.img

cache.img (not present on Android 7.1.2 and above)

radio-angler-angler-xx.xx.img

recovery.img

system.img

userdata.img

vendor.img

Boot into TWRP recovery and enter the wipe menu, select advanced wipe, check only the data box and swipe to wipe.

Go to the TWRP main menu and enter the reboot menu, select bootloader. The phone will now boot into the bootloader, once it has you can connect your phone to your PC via usb cable.

Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash cache C:\angler\images\cache.img
(above command is unnecessary on Android 7.1.2 and above)
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img

On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache.

​

12. How To ADB Sideload an

incremental

OTA update package.

Prerequisites: Completely stock setup (the only modification allowed on the phone is the unlocked bootloader).

Download the appropriate OTA zip from my index. OTA updates must be taken in order so you must select the right zip. For example, if you're currently on the MMB29Q build you must select the MMB29Q --> MHC19I zip. The filename will be quite long so to make things easier you can rename it to something easier. For the purposes of this guide let's say we'll rename it to "ota.zip". Place the file in your fastboot folder on your PC.

Boot into the bootloader, use the volume buttons to scroll the options and use the power button to select recovery mode.

Once the phone has booted into the stock recovery (you should see Andy Android with an exclamation mark) hold power and tap volume up to get into the recovery menu. Use the volume buttons to scroll and use the power button (you might need to hold it) to select "apply update from adb".

On your PC navigate to your fastboot folder, hold shift and right-click your mouse, select "open command prompt here". Issue the following command:

adb sideload ota.zip

Wait for the operation to complete (it'll tell you once it's finished) and once it's all done you can reboot your phone, the first boot might take a while.

​

13. How To ADB Sideload a

full

OTA update package.

Prerequisites: Completely stock setup (the only modification allowed on the phone is the unlocked bootloader).

Download the OTA zip that you want to upgrade to from my index. You don't need to be on any specific build prior to flashing a full OTA package. You can only move to a higher build though. The filename will be quite long so to make things easier you can rename it to something easier. For the purposes of this guide let's say we'll rename it to "fullota.zip". Place the file in your fastboot folder on your PC.

Boot into the bootloader, use the volume buttons to scroll the options and use the power button to select recovery mode.

Once the phone has booted into the stock recovery (you should see Andy Android with an exclamation mark) hold power and tap volume up to get into the recovery menu. Use the volume buttons to scroll and use the power button (you might need to hold it) to select "apply update from adb".

On your PC navigate to your fastboot folder, hold shift and right-click your mouse, select "open command prompt here". Issue the following command:

adb sideload fullota.zip

Wait for the operation to complete (it'll tell you once it's finished) and once it's all done you can reboot your phone, the first boot might take a while.

​

14. How To Update To Android 7.0 Nougat

Prerequisites: unlocked bootloader (section 1).

This method does not wipe your data, so you will keep your apps and settings. You should have no problems, however, if you experience problems you may need to perform a factory reset and flash again. Make a backup first and transfer it to your PC.

Download the Nougat factory images for your model (Nexus 6P/Angler) here.

Unzip the angler-xxxxxx-factory-xxxxxxxx (x's replace variables) into a directory on your PC (for this guide we'll use C:\angler\).

Once unzipped you should have a folder named angler-xxxxxx (x's replace variables). Open it and move the following files to a new directory named C:\angler\images\:

bootloader-angler-angler-xx.xx.img

radio-angler-angler-xx.xx.img

(Please note that radio and bootloader naming changes from build to build so the filenames and below commands will change with them)

Within C:\angler\angler-xxxxxx\ you'll see another zip archive named image-angler-xxxxxx, unzip the contents of that zip into the C:\angler\images\ folder we created before. Now within C:\angler\images\ you should have the following files:

android-info.txt

boot.img

bootloader-angler-angler-xx.xx.img

cache.img

radio-angler-angler-xx.xx.img

recovery.img

system.img

userdata.img

vendor.img

Boot into the bootloader and connect your phone to your PC via usb cable.

Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img

You can skip flashing the recovery if you wish, but even if you do the stock recovery may be patched on the first boot anyway. So you'll need to flash TWRP and SuperSU again if you need/want those, as well as any other system modifications you may have had.

Note: Do not flash the userdata.img

Once all commands/flashes are complete you can reboot the device:

fastboot reboot

You'll have to flash SuperSU again now, plus add any mods that you previously had.

​

FAQ can be found in post #3!

Donate To Me