I know that if one has access to the firmware files, one can check if the firmware is the official stock firmware or not by looking at the SHA1.
Now, suppose that Android has already been installed on the device. Is there a way to check whether or not the installed Android is the official stock version or not?
Maybe there's some information that can be found in another identical device running the same Android version that can be compared?
motorola-moto-g2
and I assumed that was correct, thus my Motorola specific answer. :)