dumpstate: add CM version to output

Change-Id: Ibd804872d7d32ac1d26efaf30927a2359d2da287
This commit is contained in:
Scott Mertz 2016-05-25 15:50:02 -07:00 committed by Gerrit Code Review
parent 0921754415
commit ea0ee316d8

View File

@ -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);