summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2016-06-03 14:40:44 +0100
committerDavid Brazdil <dbrazdil@google.com>2016-06-08 15:02:52 +0100
commit0faf2b870f934c1cdd883d29642fd84da3b352e2 (patch)
treedc49c70a93fc31158a0617e0e37030c82debcd8c
parentb2dcc3a1220ea5ef6acb5a63659da3c34b1a295a (diff)
downloadnative-0faf2b870f934c1cdd883d29642fd84da3b352e2.tar.gz
Attach profiles to bug reports
Includes the entire '/data/misc/profiles' folder in the bug report ZIP file if not user build. Bug: 28610953 Change-Id: I99d46f024e5557cf94e6045a51c46a605a00c52b
-rw-r--r--cmds/dumpstate/dumpstate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 1add3469c0..1a6c70972e 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -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. */
@@ -1288,6 +1290,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()) {