From adc45b2517a336e152aaa8ffbf19a505547f7d77 Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Mon, 4 May 2015 16:08:00 -0700 Subject: [PATCH] Change the encoded file's mode to be readable by GMS core. Bug: 19483574 Change-Id: Iee89138520a657df9a02bc98217c311d8c5a9262 --- perfprofd/perfprofdcore.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.11.0