We have already shared with you thesteps toflash Android 7.1 Developer Previewon Nexus 6P and Nexus 5Xusing factory images. If you want to root Android 7.1 developer preview on your Nexus 6P or 5X, follow this guide for all the steps and requiredfiles toroot Android 7.1NPF10C.
Forfactory images and OTA files, please visit:Download Android 7.1 Developer Preview Factory Images and OTAs
Prerequisites to rootAndroid 7.1Nexus 6P and Nexus 5X
Create a backupof all important data on your Nexus device.YourNexus 6P and 5X should be updated to NPF10CAndroid 7.1.Download and installUSB driversfor 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 Android 7.1Nexus 6P and Nexus 5X
Required files:
DownloadAndroid SDKand install it. Set it up withplatform-tools and USBdriverspackage inSDK.DownloadSuperSU v2.78forNexus on your PC.Download TWRP recovery and save to theandroid-sdk-windows\platform-toolsdirectory on your computer.TWRP 3.0.2.0 (or 3.0.2-2,as readers have suggested) for Nexus 6PTWRP 3.0.2-0(or 3.0.2-2) for Nexus 5XAlso, downloadFastboot from the following links, depending on your OS:Windows:DownloadMac:DownloadLinux:Download
1:Extract the downloaded Fastboot file inandroid-sdk-windows\platform-toolsdirectoryon your PC. Create directory if not already there.
2:Connect your Nexus 6P or 5Xtoyour computer via USB.
3:Copy and pasteSuperSufile to your device's SD card root folder.
4:Turn your Nexus off.
5:Enter the Bootloader mode: poweryour Nexus on while pressing and holdingVolume Down+Powerkeys.
6:Gotoandroid-sdk-windows\platform-toolsdirectoryand open Command Prompt (Shift+Right-click>Open Command Prompt) and type the following command:
Nexus 6P:fastbootflash recovery twrp-3.0.2-0-angler.img - replace with twrp-3.0.2-2 if you used the latest recovery version.Nexus 5X: fastboot flash recovery twrp-3.0.2-0-bullhead.img - replace with twrp-3.0.2-2 if you used the latest version
7:Once done, enter recovery mode by choosingRecoveryfrom the Fastboot menu.
8:In the recovery mode (CWM or TWRP), scroll toflash zip from SD card>choosezipfromsdcard.
9:Using the volume keys, locateSuperSU zipfileand select it. Confirm the installation process.
10:After installation is completed, go to+++++Go Backand reboot your Nexus device. First boot may take a few minutes.
YourNexusis nowrooted on Android 7.1 Developer Preview. You can verify the root with any Root Checker app.









