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

Commit 6eaa0f91 authored by Kelvin Zhang's avatar Kelvin Zhang
Browse files

Add update_engine prefs dir to bugreport

During OTA update, update_engine will cache some states, such as buffer
offset, to prefs dir. These states are used to pause/resume an OTA
update. Add these prefs to bugreport for debugging purposes.


Test: th
Bug: 245549982

Change-Id: I9b36f418eb26c76bc9538a167a0bec7c253dfc49
parent 3bb81137
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@ void add_mountinfo();
#define RECOVERY_DIR "/cache/recovery"
#define RECOVERY_DATA_DIR "/data/misc/recovery"
#define UPDATE_ENGINE_LOG_DIR "/data/misc/update_engine_log"
#define UPDATE_ENGINE_PREF_DIR "/data/misc/update_engine/prefs"
#define LOGPERSIST_DATA_DIR "/data/misc/logd"
#define PREREBOOT_DATA_DIR "/data/misc/prereboot"
#define PROFILE_DATA_DIR_CUR "/data/misc/profiles/cur"
@@ -1827,6 +1828,7 @@ Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() {
    ds.AddDir(RECOVERY_DIR, true);
    ds.AddDir(RECOVERY_DATA_DIR, true);
    ds.AddDir(UPDATE_ENGINE_LOG_DIR, true);
    ds.AddDir(UPDATE_ENGINE_PREF_DIR, true);
    ds.AddDir(LOGPERSIST_DATA_DIR, false);
    if (!PropertiesHelper::IsUserBuild()) {
        ds.AddDir(PROFILE_DATA_DIR_CUR, true);