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

Commit c2d22ac4 authored by Kiyoung Kim's avatar Kiyoung Kim
Browse files

Add linkerconfig into dumpstate

Linker configurations will be generated on device, so this file can be
differ per devices. Getting this information into dumpstate would help
to debug any link error issues.

Bug: 148840832
Test: tested from cuttlefish
Change-Id: Ib00002cd3d179099b308bc6c71b1d42fa5f7612e
parent 65482293
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ void add_mountinfo();
#define WMTRACE_DATA_DIR "/data/misc/wmtrace"
#define OTA_METADATA_DIR "/metadata/ota"
#define SNAPSHOTCTL_LOG_DIR "/data/misc/snapshotctl_log"
#define LINKERCONFIG_DIR "/linkerconfig"

// TODO(narayan): Since this information has to be kept in sync
// with tombstoned, we should just put it in a common header.
@@ -1517,6 +1518,9 @@ static Dumpstate::RunStatus dumpstate() {
    // This differs from the usual dumpsys stats, which is the stats report data.
    RunDumpsys("STATSDSTATS", {"stats", "--metadata"});

    // Add linker configuration directory
    ds.AddDir(LINKERCONFIG_DIR, true);

    RUN_SLOW_FUNCTION_WITH_CONSENT_CHECK(DumpIncidentReport);

    return Dumpstate::RunStatus::OK;