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

Commit cba0a4fb authored by Yifan Hong's avatar Yifan Hong
Browse files

dumpstate: collect snapshotctl logs without root.

Test: bugreport
Bug: 148818798
Change-Id: I83e394420225bd9543e013e8ed71b37850d07314
parent 26d0eb32
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1424,6 +1424,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? */
@@ -1556,7 +1558,6 @@ static Dumpstate::RunStatus DumpstateDefault() {
    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);