It remains to be seen if the upgrade to Android 7.1 will be offered or if it will jump straight to Android O.
The Moto G4 and its variants, the Moto G4 Play and the Moto G4 Plus, were released in 2016 with Android Marshmallow.
The exact process you have to complete depends on how long your license has been expired: If your license expired more than a year ago then you cannot renew it online, and you must visit a Drive Test Centre or the Service Ontario location in Toronto at College Park.
Lenovo released the Moto G5 and Moto G5 Plus with the Android 7.0 Nougat operating system.
Some exciting features you can look forward to from the Moto G5 update are the Moto Experience app and Google Assistant.
On your G1, everything you type on your keyboard is also being run in a hidden console with root permissions. Note: There are 2 ways to install the test keys, one is from the SD card and the other one is using ADB (from the android SDK).
I recommend using the SD card method because this is easier for non-developers.