summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-05-25 15:50:02 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-26 16:32:59 -0700
commitea0ee316d82c24fe6863fb9fdb00f8fe0c02a705 (patch)
tree67889c70a355d95f0b07b64e04582982f5a84fd9 /cmds
parent09217544156808716a80e8f3922813f4b4924b79 (diff)
downloadframeworks_native-ea0ee316d82c24fe6863fb9fdb00f8fe0c02a705.zip
frameworks_native-ea0ee316d82c24fe6863fb9fdb00f8fe0c02a705.tar.gz
frameworks_native-ea0ee316d82c24fe6863fb9fdb00f8fe0c02a705.tar.bz2
dumpstate: add CM version to output
Change-Id: Ibd804872d7d32ac1d26efaf30927a2359d2da287
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index a2e4f4b..5b9a42f 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -272,7 +272,9 @@ static void dumpstate() {
char radio[PROPERTY_VALUE_MAX], bootloader[PROPERTY_VALUE_MAX];
char network[PROPERTY_VALUE_MAX], date[80];
char build_type[PROPERTY_VALUE_MAX];
+ char cm_version[PROPERTY_VALUE_MAX];
+ property_get("ro.cm.version", cm_version, "(unknown)");
property_get("ro.build.display.id", build, "(unknown)");
property_get("ro.build.fingerprint", fingerprint, "(unknown)");
property_get("ro.build.type", build_type, "(unknown)");
@@ -286,6 +288,7 @@ static void dumpstate() {
printf("========================================================\n");
printf("\n");
+ printf("CM Version: %s\n", cm_version);
printf("Build: %s\n", build);
printf("Build fingerprint: '%s'\n", fingerprint); /* format is important for other tools */
printf("Bootloader: %s\n", bootloader);