trusty:apploader_package_tool: print version info and UUID in info mode.
Bug: 283282151
Test: build.py; manual
Change-Id: I851572bfb854401eab8961605408cc5e656b0d3c
diff --git a/app/apploader/package_tool/apploader_package_tool.cpp b/app/apploader/package_tool/apploader_package_tool.cpp
index 555c38f..d739c45 100644
--- a/app/apploader/package_tool/apploader_package_tool.cpp
+++ b/app/apploader/package_tool/apploader_package_tool.cpp
@@ -807,6 +807,19 @@
printf("Encrypted: NO, OPTIONAL\n");
}
+ const uuid_t* uuid = &manifest_extracts.uuid;
+ printf("UUID: %08" PRIx32 "-%04" PRIx16 "-%04" PRIx16 "-%02" PRIx8
+ "%02" PRIx8 "-%02" PRIx8 "%02" PRIx8 "%02" PRIx8 "%02" PRIx8
+ "%02" PRIx8 "%02" PRIx8 "\n",
+ uuid->time_low, uuid->time_mid, uuid->time_hi_and_version,
+ uuid->clock_seq_and_node[0], uuid->clock_seq_and_node[1],
+ uuid->clock_seq_and_node[2], uuid->clock_seq_and_node[3],
+ uuid->clock_seq_and_node[4], uuid->clock_seq_and_node[5],
+ uuid->clock_seq_and_node[6], uuid->clock_seq_and_node[7]);
+
+ printf("Version: %" PRIu32 "\n", manifest_extracts.version);
+ printf("Min version: %" PRIu32 "\n", manifest_extracts.min_version);
+
// Restore the old silence flag
coseSetSilenceErrors(oldSilenceErrors);
}