You can read the os.version
property and match against that:
String version = System.getProperty("os.version");
if (version.contains("cyanogenmod")) {
isCyanogenMode = true;
}
On my device, os.version
is 2.6.37.6-cyanogenmod-01509-g8913be8
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…