Is it possible to check using shell whether or not Cyanogenmod is installed on a device?
In other words, something like
uname -a (which tells the system Linux version and architecture).
Can the version be determined as well?
I tried to do
uname -a on my CM10.1 (Samsung Galaxy S2) on the built-in Terminal app.
Linux localhost 3.0.31-CM-g17c7b6e #1 SMP PREEMPT Tue Feb 19 01:11:17 PST 2013 armv71 GNU/Linux
Symmetric Multi-Processor support
kernel preemption is enabled
Tue Feb 19 01:11:17 PST 2013
Another way is to simply go to Settings→About phone, where you should see (depending on your CyanogenMod version) an item "CyanogenMod updates", and (with all CM versions) "CyanogenMod-Version":
In my CM12, I can do:
adb shell getprop | grep -i cyanogenmod
and the result it shows is:
[ro.build.host]: [cyanogenmod] [ro.cmlegal.url]: [https://www.cyanogenmod.org/docs/privacy] [ro.error.receiver.system.apps]: [org.cyanogenmod.bugreport] [ro.rommanager.developerid]: [cyanogenmod]
If you don't see
cyanogenmod anywhere then either
build.prop is deliberately tweaked to not display CM anywhere, or the device isn't running Cyanogenmod at all.