Skip to content

Commit daa348c

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Read from aflags in dumpstate" into main
2 parents 754febb + f6d61b8 commit daa348c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmds/dumpstate/dumpstate.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ void add_mountinfo();
170170
#define ALT_PSTORE_LAST_KMSG "/sys/fs/pstore/console-ramoops-0"
171171
#define BLK_DEV_SYS_DIR "/sys/block"
172172

173+
#define AFLAGS "/system/bin/aflags"
173174
#define RECOVERY_DIR "/cache/recovery"
174175
#define RECOVERY_DATA_DIR "/data/misc/recovery"
175176
#define UPDATE_ENGINE_LOG_DIR "/data/misc/update_engine_log"
@@ -1785,6 +1786,10 @@ Dumpstate::RunStatus Dumpstate::dumpstate() {
17851786

17861787
RunCommand("ACONFIG FLAGS", {PRINT_FLAGS},
17871788
CommandOptions::WithTimeout(10).Always().DropRoot().Build());
1789+
RunCommand("ACONFIG FLAGS DUMP", {AFLAGS, "list"},
1790+
CommandOptions::WithTimeout(10).Always().AsRootIfAvailable().Build());
1791+
RunCommand("WHICH ACONFIG FLAG STORAGE", {AFLAGS, "which-backing"},
1792+
CommandOptions::WithTimeout(10).Always().AsRootIfAvailable().Build());
17881793

17891794
RunCommand("STORAGED IO INFO", {"storaged", "-u", "-p"});
17901795

0 commit comments

Comments
 (0)