summaryrefslogtreecommitdiff
path: root/perfprofd/perfprofdcore.cc
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2015-05-04 16:08:00 -0700
committerDehao Chen <dehao@google.com>2015-05-04 16:08:00 -0700
commitadc45b2517a336e152aaa8ffbf19a505547f7d77 (patch)
treef7239286e40a976e204caebd95cd2a0a5735de1e /perfprofd/perfprofdcore.cc
parent1352b82d4aed6b5dd64cffaa2aefec0cfd45aeaa (diff)
downloadextras-adc45b2517a336e152aaa8ffbf19a505547f7d77.tar.gz
Change the encoded file's mode to be readable by GMS core.
Bug: 19483574 Change-Id: Iee89138520a657df9a02bc98217c311d8c5a9262
Diffstat (limited to 'perfprofd/perfprofdcore.cc')
-rw-r--r--perfprofd/perfprofdcore.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/perfprofd/perfprofdcore.cc b/perfprofd/perfprofdcore.cc
index 69db2088..f77fa578 100644
--- a/perfprofd/perfprofdcore.cc
+++ b/perfprofd/perfprofdcore.cc
@@ -555,6 +555,8 @@ PROFILE_RESULT encode_to_proto(const std::string &data_file_path,
return ERR_WRITE_ENCODED_FILE_FAILED;
}
fclose(fp);
+ chmod(encoded_file_path.c_str(),
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
return OK_PROFILE_COLLECTION;
}