summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2019-01-22 13:19:40 -0700
committerJeff Sharkey <jsharkey@android.com>2019-01-22 13:55:25 -0700
commit3f64ec57ddc4a6be7c4fc64b1654fb5a569d072f (patch)
tree8ee7473c48bbf4d299a8c1231cadff65a0782a3c /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentce476415ac36eea0446fba89ffa48894992052e8 (diff)
Sanity check raw paths against requested volume.
When callers are inserting or updating raw "_data" paths, we need to sanity check them to make sure they're not "crossing the streams" between storage devices. For example, it would be really broken to insert a file on the SD card into the "internal" storage volume. This also enforces that callers don't "cross the streams" between multiple storage volumes on devices that support them, since otherwise they'd end up with very confusing behavior, such as the same underlying file being inserted into multiple databases. Also, the "internal" storage volume should really only be used for common media (such as ringtones), and it shouldn't be allowed to point into private app data directories, since MODE_WORLD_READABLE has been deprecated for many years now. Bug: 117932814 Test: atest MediaProviderTests Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner* Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore* Change-Id: I267eacd45bbd270b8ce9b28de9d6e209f780f31a
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions