summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2020-02-08 16:52:02 -0800
committer Yifan Hong <elsk@google.com> 2020-03-06 17:21:12 -0800
commitd90cc65d74b26b7346d4a55704606a54b6956b34 (patch)
tree6574f9aee50e3761bb6bfef03ae9f17e54ab78e1
parent57cabaca38fd527acdec5fb92c7c5189214ba2b1 (diff)
dumpstate: collect snapshotctl logs without root.
Test: bugreport Bug: 148818798 Change-Id: I83e394420225bd9543e013e8ed71b37850d07314 Merged-In: I83e394420225bd9543e013e8ed71b37850d07314
-rw-r--r--cmds/dumpstate/dumpstate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 814a4edafd..e0ed9fea10 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1459,6 +1459,8 @@ static Dumpstate::RunStatus dumpstate() {
ds.AddDir(WMTRACE_DATA_DIR, false);
}
+ ds.AddDir(SNAPSHOTCTL_LOG_DIR, false);
+
RUN_SLOW_FUNCTION_WITH_CONSENT_CHECK(ds.DumpstateBoard);
/* Migrate the ril_dumpstate to a device specific dumpstate? */
@@ -1587,7 +1589,6 @@ Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() {
ds.AddDir(RECOVERY_DATA_DIR, true);
ds.AddDir(UPDATE_ENGINE_LOG_DIR, true);
ds.AddDir(LOGPERSIST_DATA_DIR, false);
- ds.AddDir(SNAPSHOTCTL_LOG_DIR, false);
if (!PropertiesHelper::IsUserBuild()) {
ds.AddDir(PROFILE_DATA_DIR_CUR, true);
ds.AddDir(PROFILE_DATA_DIR_REF, true);