These are instructions on how to root Motorola Moto X Play XT1562 using the TWRP recovery on Windows Computer.
Requirements: Your smartphone should have at least 20-30 percent of battery to perform the rooting process.
The above command will help you to know the list of ADB devices attached to the computer.
The above command helps you to boot into the ADB mode.
Optional: You can also verify the root status of your device by using the Root Checker Application.
[*] No data loss process: Your data including contacts, pictures, videos, music wont be affected using the above method. In short, no data loss process.
[*] Motorola Stock Firmware: If you are looking for the original firmware for your device, then head over to Download Motorola Stock Firmware page.
[*] Motorola USB Driver: If you are looking for the original USB Driver for your device, then head over to Download Motorola USB Driver page.
[*] Credits: The TWRP recovery shared on this page is officially developed by Vache (xda developer), so full credits goes to him for the recovery file.
[*] Big thanks to Chainfire for their SuperSU file, without this tool the above tutorial was not possible.