The Moto G2 (XT1068) can be safely rooted (or jailbroken) thus allowing you full access to install any apps, run them with superuser permissions, downgrade or upgrade Android ROMs or install alternate ROMs (like CyanogenMod). The best guide for rooting the XT1068 that worked for me was this.
Here are the steps that worked specifically for my dual-SIM XT1068 running Android 5.0.2 (Lollipop). If your phone is different (say the single-SIM XT1064) or running a different Android version (say KitKat or Marshmallow), then do not follow these steps!
Here is mine:
- Before rooting the XT1068, the bootloader needs to be unlocked. That can be done following the steps described here.
- Download the TWRP image from here and SuperSU zip file from here.
- Copy the TWRP
.imgfile to the directory of your ADB and Fastboot.
- Connect XT1068 to your computer using USB cable. You should be able to view its contents in File Explorer.
- Copy the SuperSU zip file to the XT1068 directory in File Explorer. This is actually the
/sdcarddirectory of the phone.
- Open the ADB and Fastboot prompt and flash the TWRP image:
fastboot flash recovery type_twrp_image_filename_here
- After it is flashed, disconnect the phone.
- Follow these steps carefully: Press volume-down to scroll to Recovery option and press volume-up. This boots into TWRP.
- We need TWRP to be the default recovery ROM. To to that, select Mount and select only System. Go back, go to Advanced -> File Manager and delete these files:
- Go to Install and select the location where we copied SuperSU zip file that we had copied. This will usually be
/sdcard. Flash it. Choose Reboot -> System.
- Once the phone has booted, install the Root Checker app and check. You must have root access now!
Tried with: Windows 10 x64