An unlocked Moto G4 via bootloader will make features such as installing custom ROMs, flashing zip files and backup/restoring an OS possible for tech enthusiasts. The only downside is that they will not receive any official firmware OTA updates on it as Motorola has already updated their Moto G4 and G4 Plus to Android 7.0 Nougat.
Those who own a G4 with unlocked bootloader will not receive this update but have no fear; we’ve come up with a guide on how to install Android 7.0 Nougat on a bootloader rooted Moto G4. This guide has support for Moto G4 XT 1640, XT 1641 XT 1642 and XT 1643 and makes use of TWRP backup (NPJ25.9). You only need to have an unlocked Moto G4 device with the latest version of TWRP installed on it and you’re all set to get Android 7.0 Nougat.
The first step which you need to make is installing the latest version of TWRP recovery from Google’s Play Store. Afterwards, you have to download a TWRP backup file which contains Android 7.0 Nougat, unzip it and then save it on your device’s internal storage. Note that saving it on its SD card also works.
Afterwards, boot your Moto G4 device into TWRP recovery mode by simultaneously pressing the volume down and power buttons for a couple of settings. Make sure your device is turned off in order for this to function.
When you find yourself in TWRP mode select the Wipe option and then clear your Cache, Dalvik Cache and Data & System. When that is finished, return to the device’s main menu and choose Restore by navigating to your saved TWRP backup file. Wait for the process to end and clear your cache. Reboot your Moto G4 device and you’re pretty much set to enjoy Android 7.0 Nougat.