- ADB - Install
sudo apt-get install adb
- FASTBOOT - Install
sudo apt-get install fastboot
- BOOTLOADER - Unlock
- Follow the instructions at https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
- NOTE:
- Unlock the developer options (System > About phone > Build number)
- Unlock the OEM (System > Developer Options > OEM unlocking)
- Active the USB debugging (System > Developer Options > USB debugging)
- TWRP - Install
- Download the file to the computer at https://twrp.me/motorola/motorolamotog5.html
- Connect the phone to the computer, restart the phone and access the recovery mode (press volume down)
- Execute the command
fastboot flash recovery /path/to/file/twrp.img
- Reboot the phone when the installation succeeds
- MAGISK - Install
- Download magisk and send the file to the phone through the pc
- Access the recovery mode
- Follow the tutorial at https://www.xda-developers.com/how-to-install-magisk/
- VERIFY - Execute
adb shell
su