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

Commit 20b707d9 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "dumpstate: Log logical partition metadata in bugreports" am: 45f75b71...

Merge "dumpstate: Log logical partition metadata in bugreports" am: 45f75b71 am: ed8a1acb am: d60f0a41
am: d17dd5ed

Change-Id: I8b72b9f701b39be495c057e7997d74383348ed66
parents 7350bb20 d17dd5ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -118,6 +118,8 @@ cc_binary {
        "kill",
        "librank",
        "logcat",
        "lpdump",
        "lpdumpd",
        "lsmod",
        "lsof",
        "netstat",
+9 −0
Original line number Diff line number Diff line
@@ -929,6 +929,14 @@ static void DumpIpTablesAsRoot() {
    RunCommand("IP6TABLES RAW", {"ip6tables", "-t", "raw", "-L", "-nvx"});
}

static void DumpDynamicPartitionInfo() {
    if (!::android::base::GetBoolProperty("ro.boot.dynamic_partitions", false)) {
        return;
    }

    RunCommand("LPDUMP", {"lpdump", "--all"});
}

static void AddAnrTraceDir(const bool add_to_zip, const std::string& anr_traces_dir) {
    MYLOGD("AddAnrTraceDir(): dump_traces_file=%s, anr_traces_dir=%s\n", dump_traces_path,
           anr_traces_dir.c_str());
@@ -1515,6 +1523,7 @@ static Dumpstate::RunStatus DumpstateDefault() {
    }
    add_mountinfo();
    DumpIpTablesAsRoot();
    DumpDynamicPartitionInfo();

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