diff options
author | 2024-09-23 16:31:07 +0000 | |
---|---|---|
committer | 2024-09-23 16:31:07 +0000 | |
commit | daa348c072c8454966f67f430e83c6774c59d8e6 (patch) | |
tree | fcd00309cc38209a9c3bb2e0cc7347b1ccac4ce4 | |
parent | 754febbb578b09abf29ceb0fd273b8b9ba392b77 (diff) | |
parent | f6d61b844397acca58d8fa50289b4ef2402aef69 (diff) |
Merge "Read from aflags in dumpstate" into main
-rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 6576ffdc54..c407f486f0 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -170,6 +170,7 @@ void add_mountinfo(); #define ALT_PSTORE_LAST_KMSG "/sys/fs/pstore/console-ramoops-0" #define BLK_DEV_SYS_DIR "/sys/block" +#define AFLAGS "/system/bin/aflags" #define RECOVERY_DIR "/cache/recovery" #define RECOVERY_DATA_DIR "/data/misc/recovery" #define UPDATE_ENGINE_LOG_DIR "/data/misc/update_engine_log" @@ -1785,6 +1786,10 @@ Dumpstate::RunStatus Dumpstate::dumpstate() { RunCommand("ACONFIG FLAGS", {PRINT_FLAGS}, CommandOptions::WithTimeout(10).Always().DropRoot().Build()); + RunCommand("ACONFIG FLAGS DUMP", {AFLAGS, "list"}, + CommandOptions::WithTimeout(10).Always().AsRootIfAvailable().Build()); + RunCommand("WHICH ACONFIG FLAG STORAGE", {AFLAGS, "which-backing"}, + CommandOptions::WithTimeout(10).Always().AsRootIfAvailable().Build()); RunCommand("STORAGED IO INFO", {"storaged", "-u", "-p"}); |