commit | f47a24a158250ab960758d8a35d403ca31c6869e | [log] [tgz] |
---|---|---|
author | Omar Eissa <oeissa@google.com> | Mon Apr 15 12:04:56 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 08 21:07:06 2024 +0000 |
tree | d7d6355a1d37a5311b5a5f1d4e4a3b2e985b10e2 | |
parent | fcafcd70231d609f17b3f990ba0bf8b2ea9f7376 [diff] |
Prevent insertion in other users storage volumes Don't allow file insertion in other users storage volumes. This was already handled if DATA was explicitly set in content values, but was allowed if DATA was generated based on other values like RELATIVE_PATH and DISPLAY_NAME. Insertion of files in other users storage volumes can be used by malicious apps to get access to other users files, since the same file would exist in both users MP databases which would lead to MP falsely assuming that the user has access to this file. Bug: 294406604 Test: atest MediaProviderTests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:df39f8486b25473d0bdbeed896ad917e3c793bf9) Merged-In: Ie219bbdbe28819421040e4c083b65ab47d8ebde6 Change-Id: Ie219bbdbe28819421040e4c083b65ab47d8ebde6