Explicitly chmod() for compatibility.

am: 46ed6f4bd6

* commit '46ed6f4bd6d28a1319a90eb7c58dca5c20b36670':
  Explicitly chmod() for compatibility.
This commit is contained in:
Jeff Sharkey
2016-02-15 21:27:06 +00:00
committed by android-build-merger

View File

@@ -492,6 +492,7 @@ class ContextImpl extends Context {
if (!file.exists()) {
try {
Os.mkdir(file.getAbsolutePath(), 0771);
Os.chmod(file.getAbsolutePath(), 0771);
} catch (ErrnoException e) {
if (e.errno == OsConstants.EEXIST) {
// We must have raced with someone; that's okay