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

Commit 076e22b0 authored by David Brazdil's avatar David Brazdil Committed by android-build-merger
Browse files

Merge \\"Attach profiles to bug reports\\" into nyc-dev am: 6d98bac4

am: 3f7009c3

Change-Id: Ia9184dde3122a9099c7a7ad27f2358227f58744f
parents 7feaca4a 3f7009c3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -72,6 +72,8 @@ static std::string suffix;
#define RECOVERY_DIR "/cache/recovery"
#define RECOVERY_DATA_DIR "/data/misc/recovery"
#define LOGPERSIST_DATA_DIR "/data/misc/logd"
#define PROFILE_DATA_DIR_CUR "/data/misc/profiles/cur"
#define PROFILE_DATA_DIR_REF "/data/misc/profiles/ref"
#define TOMBSTONE_DIR "/data/tombstones"
#define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_"
/* Can accomodate a tombstone number up to 9999. */
@@ -1325,6 +1327,10 @@ int main(int argc, char *argv[]) {
    add_dir(RECOVERY_DIR, true);
    add_dir(RECOVERY_DATA_DIR, true);
    add_dir(LOGPERSIST_DATA_DIR, false);
    if (!is_user_build()) {
        add_dir(PROFILE_DATA_DIR_CUR, true);
        add_dir(PROFILE_DATA_DIR_REF, true);
    }
    add_mountinfo();

    if (!drop_root_user()) {