These are the instructions to root Google Nexus 5X running on Android 7.0 Nougat using Chainfire-Auto-Root tool on Windows Computer.
Remember: Your Google Nexus 5X should have at-least 40-50 percent of battery to perform the rooting process.
Step 1: Download and install Google Nexus 5X USB driver on your computer. If Google Nexus 5X USB drivers are already installed then skip this step.
Step 2: Now, you have to Enable USB Debugging on Your Nexus 5X. To enable Developers Option: Open Settings > About Phone > Tap on the Built Number for 6-8 times until developers option is enabled.
Step 3: Now, Again Go Back to the Settings > Developers Option > Enable OEM unlocking and USB Debugging.
Step 4: Now, Power off your Nexus 5X Smartphone.
Step 5: Now, you have to enable Fastboot Mode on your smartphone while it is power-off. To enable FastBoot Mode: Press and Hold Volume Down and Power Button at same time until FastBoot Mode is enabled.
Step 6: Connect your smartphone to the computer.
Step 7: Download and extract AutoRoot Tool on your Windows Computer. After extracting you will be able to see the following files:
Step 8: From the extracted file, Open root-windows.bat.
Step 9: Once root-windows.bat is opened you will see the following window:
Step 10: Press any key from the keyboard of your computer to begin the rooting process.
Step 11: Now you will be able to see Unlock Bootloader Screen on your Smartphone. Select Yes using volume up/down button and power button to continue.
Step 12: Now, on the next screen you will be able to see the FastBoot Screen with Disabled Lock State (at button) which means you have successfully unlocked the bootloader of Nexus 5X.
Step 13: Now, Nexus 5X will automatically show red android logo and rooting process will continue. Once Rooting process is completed your Smartphone will restart automatically.
Step 14: Your Google Nexus 5X smartphone will take 2-3 minutes to restart. Once your smartphone is restarted successfully, you will be able to see the welcome screen.
Step 15: Now your Nexus 5X is rooted successfully. To confirm, Open App Drawer (menu) and you will be able to see a new Application installed called SuperSU. If you find this app then it means your device is rooted.
Optional: You can also verify the root status of your device by using the Root Checker Application.
[*] No data loss process: Your Data like contacts, pictures, videos, music and etc will be not affected with this tutorial.
[*] Warranty Void: Your Google Nexus 5X Smartphone Warranty will be Void after following the above tutorial.
[*] Google Nexus Stock Firmware: If you are looking for the original firmware for your device then head over to Download Google Nexus Stock Firmware for all devices page.
[*] Google Nexus USB Driver: If you are looking for the original USB Driver for your device then head over to Download Google Nexus USB Driver for all devices page.
[*] Credits: The Nexus 5X Auto Root Tool was created by Chainfire, so full credits goes to him.