How to root Motorola G6 play

#How to root Moto G6 play and install android8.0
##Tool : use fastboot , adb ,Twrp , Magsik
#The first step
#install android8.0
##1. download android8.0 ROM (zip file)
###Link android8.0 ROM url -> https://mirrors.lolinet.com/firmware/moto/jeter/official/USC/
##2. unzip android8.0 ROM
##3. install android8.0
##from android8.0 ROM select boot. img , recovery. img ,system.img

*fastboot devices 


*fastboot flash recovery recovery.img


*fastboot flash boot boot.img


*fastboot flash system system.img






#step1


*fastboot flash bootloader bootloader.img


*fastboot flash vendor vendor.img


#step1

##step1 parts :can be optionally added

*fastboot reboot

#The second step
##unlock bootloader
##1. use phone connect Internet
##2. select develper to open usb debug and unlock OME key
##3. adb reboot bootloader
##4. fastboot oem get_unlock_data
##5. Now copy the “unlock_data” –>for example:
###(bootloader) Unlock data:
###(bootloader) 3A15680129901052#
###(bootloader) 5A4C343232354E443958006D6F746F2067280000#
###(bootloader) 3A88611E52CEF6C3BD1AB5D9473BC32A1FBAD850#
###(bootloader) 9ECEF441000000000000000000000000
##6.delete each lines (bootloader) and stitching the rest of each line ->for example:
3A15680129901052#5A4C343232354E443958006D6F746F2067280000#3A88611E52CEF6C3BD1AB5D9473BC32A1FBAD850#9ECEF441000000000000000000000000
##7. Login account of Motoroal
###1)Apply for a registration account
###2)Reference step Link-> https://www.teamandroid.com/2018/08/06/unlock-bootloader-moto-g6-play-plus/
###Account registration is successful !
##8. Now go to the Motorola unlock Page To Get the Unlock Code->Link Url
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-b
##9. unlock bootloader
###1)Look at current interface option 6 is: Check if your device can be unlocked by pasting this string in the field below, and clicking “Can my device be unlocked?”
###2)Now copy the string(step 6 stitched string) from Notepad to the box shown on the website (Check Screenshot below)
###3)Once you click the “Can my Device be unlocked?” you will receive a mail with unlock key.
###4)Now copy the unlock key and type the following command and enter.
*fastboot oem unlock UNLOCK_KEY
###5)Here UNLOCK_Key is the place where you have to paste the unlock key which you copied from the email.
##That’s it! Your device will unlock. hah! Have fun!
#The third step
#Root
##1. download Twrp. img and Magsik.zip
##2. install Twrp

*fastboot flash boot Twrp.img

##3.install Magsik

*adb push local Magsik.zip  /tmp


*click Install in Twrp interface


*install Magsik.zip 

###display successful
##4. reboot phone
#Now This phone is root success

Read More: