debuggerd: add aospa version to tombstones

Change-Id: I7822a2e133a2f326ad2d8da8f79b0064344d59bf

debuggerd: Rebrand tombstone header to LMODroid

[harryyoud]: Use new props for 15.1
[rashed]: Bah... use GetProperty
[mkbestas]: Rewrite for T

Change-Id: Idd08c2eb7e395b464b1510742bf52833f465db08
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
This commit is contained in:
Scott Mertz 2016-05-25 15:47:42 -07:00 committed by Fazil Sheik
parent 28f1574271
commit e9ebe78e24
3 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,7 @@ void engrave_tombstone_proto(Tombstone* tombstone, unwindstack::AndroidUnwinder*
Tombstone result;
result.set_arch(get_arch());
result.set_aospa_version(android::base::GetProperty("ro.aospa.version", "unknown"));
result.set_build_fingerprint(android::base::GetProperty("ro.build.fingerprint", "unknown"));
result.set_revision(android::base::GetProperty("ro.revision", "unknown"));
result.set_timestamp(get_timestamp());

View File

@ -512,6 +512,7 @@ void print_logs(CallbackType callback, const Tombstone& tombstone, int tail) {
bool tombstone_proto_to_text(const Tombstone& tombstone, CallbackType callback) {
CBL("*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***");
CBL("AOSPA Version: '%s'", tombstone.aospa_version().c_str());
CBL("Build fingerprint: '%s'", tombstone.build_fingerprint().c_str());
CBL("Revision: '%s'", tombstone.revision().c_str());
CBL("ABI: '%s'", abi_string(tombstone));

View File

@ -17,6 +17,7 @@ option java_outer_classname = "TombstoneProtos";
message Tombstone {
Architecture arch = 1;
string aospa_version = 1000;
string build_fingerprint = 2;
string revision = 3;
string timestamp = 4;