Loading cmds/dumpstate/dumpstate.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -68,6 +68,7 @@ static bool add_zip_entry_from_fd(const std::string& entry_name, int fd); #define RAFT_DIR "/data/misc/raft/" #define RAFT_DIR "/data/misc/raft/" #define RECOVERY_DIR "/cache/recovery" #define RECOVERY_DIR "/cache/recovery" #define RECOVERY_DATA_DIR "/data/misc/recovery" #define TOMBSTONE_DIR "/data/tombstones" #define TOMBSTONE_DIR "/data/tombstones" #define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" #define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" /* Can accomodate a tombstone number up to 9999. */ /* Can accomodate a tombstone number up to 9999. */ Loading Loading @@ -1259,6 +1260,7 @@ int main(int argc, char *argv[]) { /* Get the tombstone fds, recovery files, and mount info here while we are running as root. */ /* Get the tombstone fds, recovery files, and mount info here while we are running as root. */ get_tombstone_fds(tombstone_data); get_tombstone_fds(tombstone_data); add_dir(RECOVERY_DIR, true); add_dir(RECOVERY_DIR, true); add_dir(RECOVERY_DATA_DIR, true); add_mountinfo(); add_mountinfo(); if (!drop_root_user()) { if (!drop_root_user()) { Loading Loading
cmds/dumpstate/dumpstate.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -68,6 +68,7 @@ static bool add_zip_entry_from_fd(const std::string& entry_name, int fd); #define RAFT_DIR "/data/misc/raft/" #define RAFT_DIR "/data/misc/raft/" #define RECOVERY_DIR "/cache/recovery" #define RECOVERY_DIR "/cache/recovery" #define RECOVERY_DATA_DIR "/data/misc/recovery" #define TOMBSTONE_DIR "/data/tombstones" #define TOMBSTONE_DIR "/data/tombstones" #define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" #define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" /* Can accomodate a tombstone number up to 9999. */ /* Can accomodate a tombstone number up to 9999. */ Loading Loading @@ -1259,6 +1260,7 @@ int main(int argc, char *argv[]) { /* Get the tombstone fds, recovery files, and mount info here while we are running as root. */ /* Get the tombstone fds, recovery files, and mount info here while we are running as root. */ get_tombstone_fds(tombstone_data); get_tombstone_fds(tombstone_data); add_dir(RECOVERY_DIR, true); add_dir(RECOVERY_DIR, true); add_dir(RECOVERY_DATA_DIR, true); add_mountinfo(); add_mountinfo(); if (!drop_root_user()) { if (!drop_root_user()) { Loading