[X Style (Pure) General] Tacoman64:
First of all. There is no way you are going to be able to root your motorola device directly. You need a computer.

This works with all motorola phones that runs 6.0 marshmallow.

I am not responsible for any broken, bricked and or hurt people and or devices. Do this at your own risk

WARRANTY WILL BE VOIDED

BACKUP ANY FILES OR DATA YOU WANT TO KEEP

This method will delete EVERYTHING

DO NOT UNZIP ANY OF THE .ZIP FOLDERS, unless a third party put the twrp in a zip folder.

1. UNLOCKING YOUR MOTOROLA DEVICE(Already done? keep scrolling)

step 1: go to settings, select about phone, scroll down to where it says build number. Tap on build number several times until it says "you are now a developer". hit the back button on your screen and you should see a new option at the bottom of the settings page called 'Developer options". if this option is not there? repeat the process.

step 2: open up developer options, turn on "OEM unlocking" and "USB debugging"

step 3: download and install your motorola drivers --> https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481

step 4: Download and install ADB and Fastboot. To install right click the install folder and run as administrator. type "y" then hit your "Enter" key through all permissions. to properly install your ADB. you'll be needing it for your command prompt to connect with your phone. You can download it here --> http://xdaforums.com/showthread.php?t=2588979

Step 5: Connect your phone to your computer with a usb micro usb cable. Your phone should say "Allow USB debugging?" check the box that says "always allow for this computer" then hit ok.

Step 6: open up your command prompt. there is 2 ways to do this. The long way, click start on your computer and type in the windows search bar "command prompt" or the short way, hold shift + right click, then select open command prompt" and type in the command prompt "adb devices" it should say found, attached or show some sign it has been connected to your computer successfully.

Step 7: turn off your phone. After it shuts off completely, hold volume down and the power button until a screen pops up showing a little android guy. This is your fastboot page.(Controls for this listed below under BOOTLOADER CONTROLS) but you wont need to use it yet.

Step 8: type in the command prompt "fastboot oem get_unlock_data" and hit enter . you should see something that looks like this.

Example:

(bootloader) 0A40040192024205#4C4D3556313230

(bootloader) 30373731363031303332323239#BD00

(bootloader) 8A672BA4746C2CE02328A2AC0C39F95

(bootloader) 1A3E5#1F53280002000000000000000

(bootloader) 0000000

right click in your command prompt, select mark and highlight this. to copy the text right click at the top brim of the command prompt, move your mouse over edit and select copy.

Step 9: paste the results on a text folder, get rid all the bootloader writing and spaces by back spacing until all of the random letters and numbers are connected. it should look something like this. (dont copy mine, every phone has a different code)

Example:

0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000

highlight and copy this number.

Step 10: go here--> https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-b create an account, paste your device oem code in the box above "can my device be unlocked" and click "can my device be unlocked"

scroll down, click "I agree" to the agreement and select request unlock key.

Step 11: check the email u signed up to motorola with. copy the code, type in command prompt "fastboot oem unlock " and paste the code you got in your email. it should look like this.

Example:

fastboot oem unlock EVISRF7GFILOEEQRGABQ

and hit enter. It should say unlocked successfully and if you check your phone screen, you should see on the bottom of the screen it now says device is unlocked. :) Its usually written in yellow.

from here just tap the power button where it says start to boot up your phone. dont log into your google accounts just yet though.

BOOTLOADER CONTROLS: Power(Enter) Vol+(Up) Vol-(Down)

CONGRATULATIONS! YOU CAN NOW ROOT YOUR PHONE! :)

2. ROOTING YOUR MOTOROLA DEVICE (Must first be unlocked)

Step 1: Downloading your recovery. Click or copy the link below in your url. when your on the page click the primary (recommended) link and or the latest twrp.

https://twrp.me/devices/motorolamotox2015pure.html

Step 2: Downloading your operating system (supersu). Make sure your supersu is the latest and up to date. download only the official tested supersu operating system. If supersu ends in a odd number then it is a beta version (untested) and could not work for your phone. If it ends in an even number. Then it is an official full version of supersu and is tested to work.

Example:

SR4-SuperSU-v2.78-SR4-20161115184928.zip (OFFICIAL), (Finished), (Tested) Shiny "Sparkle Sparkle"

vs

SR4-SuperSU-v2.78-SR4-20161115184927.zip (BETA), (unfinished), (not tested) Rusted

download them from anywhere else if this one doesnt work anymore.

https://twrp.me/devices/motorolamotox2015pure.html

Step 3: While you are in your bootloader menu (the page with the little robot) (If your not in it turn off your device and hold volume down and the power button) type down "fastboot flash recovery (twrp name here).img copy down the name of your twrp.img file, paste it where i wrote "twrp name here" and type ".img" at the end of it. It should look like this.

Example:

fastboot flash recovery twrp-3.0.2-0-clark.img

Hit enter and see if it succeeds

Step 4: Dragging your supersu into your devices internal storage. you could start your phone by hitting the power button on where it says start. I was only able to see my device while the phone was in recovery mode. how to access that is while in bootloader mode, hit volume down twice or until it says "Recovery Mode" press power. Allow for modifications.

Step 5: If you dragged your supersu.zip file into your internal hard drive when the phone was in recovery mode. (I put mine in my downloads folder) to be safe i would reboot your device by hitting reboot, bootloader, and then go back to recovery mode. If the device had to be booted up for you to access your internal storage then turn off your phone and boot up recovery.

Step 6: While in recovery mode on your phone open the "Advanced" folder. Then open "Terminal" while in terminal follow these instructions carefully. Type out EXACTLY how i typed it here. Except the instructions i put in parenthesis. in other words dont type whats in (these).

echo SYSTEMLESS=true>>/data/.supersu (hit the green enter button on the bottom right of your keyboard)

cat /data/.supersu (hit enter and if done successfully you should see the phone automatically put in the next line)

SYSTEMLESS=true.

Example:

echo SYSTEMLESS=true>>/data/.supersu

cat /data/.supersu

SYSTEMLESS=true

Now exit.

Step 7: click install on the main recovery page, find it in 1 of the folders in the directory, when you find your supersu.zip folder, select it, slide the slider to install and when the install finishes hit the reboot button on the bottom right. your system will turn off temperarily and might go back to bootloader. if it does. hit start. if it restarts again? dont worry this is normal unless an error occurs.

You should see a new folder in your apps page called supersu. download "Root Checker" from the play store and check to see if your phone says its rooted or not.

Hope this helped you guys out. I hope i made this tutorial easy to follow and understand. dont skip any texts and if you have any questions. dont hesitate to ask down in the comments below. Thank you guys very much for viewing and HAPPY ROOTING! :D

GIVING THANKS! :)

I would like to give a huge thanks to acejavelin for the working download links and a method I would've never thought of using. He taught me the recovery advanced method that solved all of my problems. Without his recent post, this post wouldn't have even been possible.