You are on page 1of 2

Step 1: Download the Android SDK Platform Tools ZIP file for Windows from

https://dl.google.com/android/repository/platform-tools-latest-windows.zip to your
computer.

Step 2: Download the Moto USB driver from


https://www.dropbox.com/s/osniyfkw145ps2b/Motorola_Mobile_Drivers_v6.4.0.rar?dl=1
to your computer.

Step 3: Install both on computer.

How to install Android SDK Platform Tools: 1) Extract the Android SDK
Platform Tools ZIP file for Windows to the root directory of SSD/HDD, for example,
C:/platform-tools
2) Open elevated cmd prompt and navigate to
the platform-tools folder.
3) Now, to check if adb and fastboot
commands can be executed, enable developer option in your phone by going to the
About Phone section in Settings
and tapping 7-8 times on Build Number
until a toast notification is displayed saying YOU'RE NOW A DEVELOPER.
4) Go to the developer option in the System
section and tap on Advanced to find the developer option.
5) Tap on the developer option and enable
both OEM Unlock and USB debugging.
6) Connect the phone to the computer using
USB cable and select File Transfer.
7) Now, go back to the cmd prompt and type
adb devices to display the device's serial number, that will confirm adb commands
can be executed.
8) Now, execute adb reboot bootloader
command to restart the phone to bootloader.
9) On the bootloader main menu, press the
volume up/down button to select Recovery mode and press the phone lock button to
enter the
Recovery mode.
10) When in Recovery Mode, press the phone
lock button and then the volume up button to display the menu where you can select
enter
fastboot mode. Select it using the volume
up/down button and enter fastboot mode.
11) Now, on your computer, execute fastboot
devices command to display the device's serial number, that will confirm that
fastboot
commands can be executed. (fastboot
commands can be executed while staying on the bootloader main menu screen on
motorola phones).

Step 4: Get Bootloader unlock data from Motorola to unlock bootloader.

Step 5: Downlaod the Magisk zip file on your computer and copy it to your phone
external storage and download the Magisk app from
https://magiskmanager.com/go/download on your computer
and install it on your phone.

Step 6: Now, note down the values of the following parameters: Ramdisk, A/B
and SAR in the magisk app.

Step 7: Download Disable_Dm-Verity_ForceEncrypt.zip and copy it to the phone


external storage.
Step 8: Next download the twrp file for the phone model, rename it to
recovery.img and copy it to both the platform-tools folder on computer and to your
phone.

Step 9: Now open up an elevated command prompt. Navigate to the platform-tools


folder, then execute command adb devices to check for the USB connection between
the phone and the computer.

Step 10: Execute command adb reboot bootloader to boot the phone into bootloader.

Step 11: When in bootloader, execute command fastboot flash recovery recovery.img
to flash it.

Step 12: Then execute command fastboot boot recovery.img to boot into twrp.

Step 13: Now, while in the twrp main menu, first take a back up of the stock ROM of
phone (make sure the file system of the sd card is exFAT).

Step 13: Then, Select Wipe->Advance Wipe->Select Cache Data.

Step 14: Navigate to Home of twrp and select Install. Select Disable_Dm-
Verity_ForceEncrypt.zip to flash it.

Step 15: Then again go back to twrp main menu and Select Install. Select Magisk.Zip
and flash it.

Step 16: After successful completion, reboot your phone.

And done rooting.

Check root status by installing Magisk app again (since, rooting erases everything)
by checking on the number beside the Installed parameter (N/A beside Installed
parameter means rooting
isn't successful). Also, you can install the rootchecker app to be double sure that
rooting was indeed successful.

End of story.

You might also like