I have a made, using Unity, an Android mobile app which currently has over a million users. There are various unresolved Crashes. Unfortunately, the stats I receive from Google does not contain enough information to diagnose the problem. I'm concerned about the Android distribution (Is it cyanogen or any other modded android).
Is there a way to check the android version my app is running on and determine if it is modded or not?
SystemInfo should have what you are looking for. https://docs.unity3d.com/ScriptReference/SystemInfo.html
EDIT: You may also be interested in Application, especially genuineCheckAvailable. https://docs.unity3d.com/ScriptReference/Application.html