From: Dehao Chen Date: Mon, 4 May 2015 23:08:00 +0000 (-0700) Subject: Change the encoded file's mode to be readable by GMS core. X-Git-Tag: android-x86-7.1-r1~441^2~13^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=adc45b2517a336e152aaa8ffbf19a505547f7d77;p=android-x86%2Fsystem-extras.git Change the encoded file's mode to be readable by GMS core. Bug: 19483574 Change-Id: Iee89138520a657df9a02bc98217c311d8c5a9262 --- 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; }