Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 166400b0 authored by Martijn Coenen's avatar Martijn Coenen Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Fixup app-private dirs that are not writable.""" into sc-dev

parents 0a332985 d6b7b6b3
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -3273,6 +3273,13 @@ class ContextImpl extends Context {
                    dir = null;
                    dir = null;
                }
                }
            }
            }
            if (dir != null && !dir.canWrite()) {
                // Older versions of the MediaProvider mainline module had a rare early boot race
                // condition where app-private dirs could be created with the wrong permissions;
                // fix this up here. This check should be very fast, because dir.exists() above
                // will already have loaded the dentry in the cache.
                sm.fixupAppDir(dir);
            }
            result[i] = dir;
            result[i] = dir;
        }
        }
        return result;
        return result;