summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMark Salyzyn2016-04-01 12:03:14 -0500
committerMark Salyzyn2016-04-01 13:01:16 -0500
commit4d42dea08915ccbb61ca05903af5330d02d66755 (patch)
treece5d34245721f4dc0e4d52bf1e436ffa4fa3d8da /cmds
parentd5194bd30cd8284ed65eb63e713fee65c31c9d5c (diff)
downloadframeworks-native-4d42dea08915ccbb61ca05903af5330d02d66755.tar.gz
frameworks-native-4d42dea08915ccbb61ca05903af5330d02d66755.tar.xz
frameworks-native-4d42dea08915ccbb61ca05903af5330d02d66755.zip
dumpstate: acquire /data/misc/logd/ log contents
Bug: 27965066 Change-Id: I78c7ef4b45179729f505c3fe5d84c33a22ce41bf
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index a368df88e..f486e08a2 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -69,6 +69,7 @@ static bool add_zip_entry_from_fd(const std::string& entry_name, int fd);
69#define RAFT_DIR "/data/misc/raft/" 69#define RAFT_DIR "/data/misc/raft/"
70#define RECOVERY_DIR "/cache/recovery" 70#define RECOVERY_DIR "/cache/recovery"
71#define RECOVERY_DATA_DIR "/data/misc/recovery" 71#define RECOVERY_DATA_DIR "/data/misc/recovery"
72#define LOGPERSIST_DATA_DIR "/data/misc/logd"
72#define TOMBSTONE_DIR "/data/tombstones" 73#define TOMBSTONE_DIR "/data/tombstones"
73#define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" 74#define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_"
74/* Can accomodate a tombstone number up to 9999. */ 75/* Can accomodate a tombstone number up to 9999. */
@@ -1272,6 +1273,7 @@ int main(int argc, char *argv[]) {
1272 get_tombstone_fds(tombstone_data); 1273 get_tombstone_fds(tombstone_data);
1273 add_dir(RECOVERY_DIR, true); 1274 add_dir(RECOVERY_DIR, true);
1274 add_dir(RECOVERY_DATA_DIR, true); 1275 add_dir(RECOVERY_DATA_DIR, true);
1276 add_dir(LOGPERSIST_DATA_DIR, false);
1275 add_mountinfo(); 1277 add_mountinfo();
1276 1278
1277 if (!drop_root_user()) { 1279 if (!drop_root_user()) {