debuggerd: add Lineage version to tombstones
Change-Id: I7822a2e133a2f326ad2d8da8f79b0064344d59bf debuggerd: Rebrand tombstone header to LineageOS [harryyoud]: Use new props for 15.1 [rashed]: Bah... use GetProperty [mkbestas]: Rewrite for T Change-Id: Idd08c2eb7e395b464b1510742bf52833f465db08
This commit is contained in:
parent
acdff2db69
commit
c39de1d50f
3 changed files with 3 additions and 0 deletions
|
|
@ -719,6 +719,7 @@ void engrave_tombstone_proto(Tombstone* tombstone, unwindstack::AndroidUnwinder*
|
|||
} else {
|
||||
result.set_guest_arch(Architecture::NONE);
|
||||
}
|
||||
result.set_lineage_version(android::base::GetProperty("ro.lineage.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());
|
||||
|
|
|
|||
|
|
@ -594,6 +594,7 @@ static void print_guest_thread(CallbackType callback, const Tombstone& tombstone
|
|||
|
||||
bool tombstone_proto_to_text(const Tombstone& tombstone, CallbackType callback) {
|
||||
CBL("*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***");
|
||||
CBL("LineageOS Version: '%s'", tombstone.lineage_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.arch()));
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ message CrashDetail {
|
|||
message Tombstone {
|
||||
Architecture arch = 1;
|
||||
Architecture guest_arch = 24;
|
||||
string lineage_version = 1000;
|
||||
string build_fingerprint = 2;
|
||||
string revision = 3;
|
||||
string timestamp = 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue