We have already shared with you thesteps to flash Android N NPD56Non Nexus devices using factory images. If you want to root NPD56N Android N developer preview 4 on your Nexus 6P or 5X, follow this guide for all the steps and requiredfiles.
For changelog,factory images and OTA files, please visit:Download Android N Developer Preview 4 Factory Images and OTAs
Prerequisites to rootNPD56N on Nexus 6P and Nexus 5X
Create a backupof all important data on your Nexus device.YourNexus 6P and 5X should be updated to NPD56NAndroid N.Download and install USB drivers for Nexus in your computer.TheNexusbootloadershould be unlocked.Enable USB debugging option by pressingMenu>Settings>Applications. Navigate and tap onDeveloper Optionsto ensure thatUSB Debuggingis enabled.Ensure that your Nexus devicecarries more than 70% of charge.
How to root NPD56N on Nexus 6P and Nexus 5X
Required files:
DownloadAndroid SDKand install it. Set it up withplatform-tools and USBdriverspackage inSDK.DownloadSuperSU v2.71forNexus on your PC.Download TWRP recovery and save to theandroid-sdk-windows\platform-toolsdirectory on your computer.TWRP 2.8.7.0 for Nexus 6PTWRP 2.8.7.0 for Nexus 5XAlso, downloadFastboot from the following links, depending on your OS:Windows:DownloadMac:DownloadLinux:Download
Step 1:Extract the downloaded Fastboot file inandroid-sdk-windows\platform-toolsdirectoryon your PC. Create directory if not already there.
Step 2:Connect your Nexus devicetoyour computer via USB.
Step 3:Copy and pasteSuperSufile to your device's SD card root folder.
Step 4:Turn your Nexus off.
Step 5:Enter the Bootloader mode: poweryour Nexus on while pressing and holdingVolume Down+Powerkeys.
Step 6:Gotoandroid-sdk-windows\platform-toolsdirectoryand open Command Prompt (Shift+Right-click>Open Command Prompt) and type the following command:
fastbootflash recoverytwrp-2.8.7.0-angler.img(on Nexus 6P)fastboot flash recovery twrp-2.8.7.0-bullhead.img (on Nexus 5X)
Step 7:Once done, enter recovery mode by choosingRecoveryfrom the Fastboot menu.
Step 8:In the recovery mode (CWM or TWRP), scroll toflash zip from SD card>choosezipfromsdcard.
Step 9:Using the volume keys, locateSuperSU zipfileand select it. Confirm the installation process.
Step 10:After installation is completed, go to+++++Go Backand reboot your Nexus device. First boot may take a few minutes.
Tada!YourNexusis nowrooted on AndroidN NPD56N. You can verify the root with any Root Checker app.









