Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ba42d9cb authored by Scott Mertz's avatar Scott Mertz Committed by Michael Bestas
Browse files

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
parent 15b62d40
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -642,6 +642,7 @@ void engrave_tombstone_proto(Tombstone* tombstone, unwindstack::Unwinder* unwind
  Tombstone result;

  result.set_arch(get_arch());
  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());
+1 −0
Original line number Diff line number Diff line
@@ -474,6 +474,7 @@ void print_logs(CallbackType callback, const Tombstone& tombstone, int tail) {

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));
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ option java_outer_classname = "TombstoneProtos";

message Tombstone {
  Architecture arch = 1;
  string lineage_version = 1000;
  string build_fingerprint = 2;
  string revision = 3;
  string timestamp = 4;