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

Commit 3945e1bc authored by Yifan Hong's avatar Yifan Hong
Browse files

Bugreport includes /metadata/ota

/metadata/ota contains debugging information for Virtual
A/B that illustrates states of snapshots.

It does not contain any user information.

Test: bugreport
Fixes: 137757435
Change-Id: I0d09fa59528423e0f16131f3841948832fa70b4a
parent 45f75b71
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ void add_mountinfo();
#define XFRM_STAT_PROC_FILE "/proc/net/xfrm_stat"
#define WLUTIL "/vendor/xbin/wlutil"
#define WMTRACE_DATA_DIR "/data/misc/wmtrace"
#define OTA_METADATA_DIR "/metadata/ota"

// TODO(narayan): Since this information has to be kept in sync
// with tombstoned, we should just put it in a common header.
@@ -1524,6 +1525,7 @@ static Dumpstate::RunStatus DumpstateDefault() {
    add_mountinfo();
    DumpIpTablesAsRoot();
    DumpDynamicPartitionInfo();
    ds.AddDir(OTA_METADATA_DIR, true);

    // Capture any IPSec policies in play. No keys are exposed here.
    RunCommand("IP XFRM POLICY", {"ip", "xfrm", "policy"}, CommandOptions::WithTimeout(10).Build());