[Moto M Guides, News, & Discussion] akash.mahadeshwar:
Hi guys,

I have started this thread so that you guys can root your moto M XT_1663_S356 andriod (7.0)

First of all i'm not responsible if your phone bricks burns or dies.

A big thanks to VVizard from lenovo RU forum with out him, it was not possible.

Thanks to Chainfire for the SuperSu.zip

To check Build number go to Settings -> About Phone-> Build number

Note -

1 - This only works for Moto M which is having build number XT1663_S356_170621_ROW. If you are on any other build number then please don't proceed.

2 - All the files are attached

3 - Install all the Motoral drivers and Minimal and adb folder.

4 - Following link contains all files needed to root the phone.

https://drive.google.com/file/d/0B3eDb0dWRU-uUjk4ZS1tdFpRR1U/view?usp=sharing

Rooting Moto M phone is divided into 3 Parts

1) Unlocking BootLoader

2) Flashing TWRP

3) Flashing SuperSu.zip

unlocking the bootloader

Note - This will wipe out all the data hence take a backup before unlocking boot loader

1 - First of all enable the Developer Option, To Enable the Developer Option, Go to your Settings -> About Phone-> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"

2 - Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging

3 - Download and Extract the Downloaded ADB fastboot Zip file on your PC

4 - Now connect your phone to Computer using USB Cable.

5 - When you connect your Phone to Computer, please wait until all the drivers get installed.

6 - In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click

7 - Now type the command in your command window

adb devices

If you see a pop up to allow USB Debugging on your phone, Click OK

8 - Now type the command below to reboot your phone to bootloader

adb reboot bootloader

9 - Once your phone reboot into bootloader, then type the command below to make sure fastboot drivers are installed properly.

fastboot devices

10 - This command will list the connected devices. If your phone’s serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly.

11 - If your phone is listed then type in the following command in CMD.

fastboot oem unlock

12 - Check your phone you would have written"do you really want to unloock bootloader ? "(something like this). Just select yes using volume up and down button and press power button to confirm it .

13 - Congrats your bootloader is unlocked :)

Install TWRP

Note - You should have your bootloader unlocked before proceeding.

Copy the boot_XT1663_356.img and TWRP_Moto_M.img to Minimal adb folder

1 - First of all enable the Developer Option, To Enable the Developer Option, Go to your Settings -> About Phone-> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"

2 - Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging

3 - Download and Extract the Downloaded ADB fastboot Zip file on your PC

4 - Now connect your phone to Computer using USB Cable.

5 - When you connect your Phone to Computer, please wait until all the drivers get installed.

6 - In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click

7 - Now type the command in your command window

adb devices

If you see a pop up to allow USB Debugging on your phone, Click OK

8 - Now type the command below to reboot your phone to bootloader

adb reboot bootloader

9 - Once your phone reboot into bootloader, then type the command below to make sure fastboot drivers are installed properly.

fastboot devices

10 - This command will list the connected devices. If your phone’s serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly.

11 - If your phone is listed then type in the following command in CMD.

fastboot flash boot boot_XT1663_356.img

12 - To flash the recovery, Type the command

fastboot flash recovery TWRP_Moto_M.img

13 - Congrats! you have successfully installed TWRP.

Rooting Phone.

Note -

You should have your bootloader unlocked.

You should have TWRP installed.

You should have supersu.zip copied in your phone.

1 - Switch off your phone. Now press volume down + power button till phone vibrates. Once it vibrates release the power button you should see android logo.

2 - Now with the help of volume up and down button select 'Recovery mode' and press power button.

3 - TWRP should start up.

4 - Select 'Allow Modification' and proceed.

5 - Select 'Install' and then select the 'SuperSu.zip' file and flash it.

6 -Restart the Phone.

7 - Congrats! your phone is rooted.

Note -

I have tried all this steps and have successfully rooted my phone i'm not responsible for any damage.

I have not build the boot_M_S365/ img file this is done by VVizard and really very thank full to him.