commit | 1e8271b78959917ff1ef5f0fd70077fee53e6333 | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Fri Apr 03 14:01:08 2020 +0100 |
committer | Sahana Rao <sahanas@google.com> | Wed Apr 15 12:17:36 2020 +0100 |
tree | 22858a0616291dd4a699446a3da0345394985059 | |
parent | b18be080b7804b1c20b2b51126580d4cc7aab7fe [diff] |
Support renaming files with no database row Allow renaming files with no database row for apps that bypass scoped storage restrictions. When oldPath is renamed to newPath, if newPath exists in the database, and caller is not the owner of the file, owner package is set to null. This prevents previous owner of newPath from accessing renamed file. Test: atest FuseDaemonHostTest#testCanRenameAFileWithNoDBRow_hasRW Bug: 151076202 Change-Id: I8b9f2458a2e80cacc2b851741723ef4615fe2340