commit | 53a9ac376ccd5572ee9c8eb9fc85b4308f9ab441 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Jun 16 10:05:32 2020 +0100 |
committer | Narayan Kamath <narayan@google.com> | Tue Jun 16 15:06:52 2020 +0100 |
tree | d73e54283cf8ddde83bcab605e43a8dfacec4715 | |
parent | 0bf2f37a156993b39000b3500671416566121ffe [diff] |
MediaProvider: Change owners on legacy app creates If a legacy app creates a file at a path that has an entry in the files db with the same path (_data), we transfer ownership to the legacy app to prevent the original owner from being able to observe the contents. Note that creates from non-legacy apps will fail. Test: atest LegacyStorageHostTest Bug: 150507736 Change-Id: Ic6186c3e84a09222db09300b8baec0e698e1e0ba