commit | 9c9ee953e65e0246533884a2c76fdeb05dcfa0b0 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Fri Mar 22 17:18:38 2019 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Fri Mar 22 17:18:40 2019 -0600 |
tree | 89e481b215d73ef7eb15cf5def955d6724b6ef74 | |
parent | b8d4c59b089cb302759a77584c2a5ee1583e6852 [diff] |
Translate paths before leaving app sandbox. When sending the ACTION_MEDIA_SCANNER_SCAN_FILE broadcast, an app provides a raw filesystem path, which might be inside of their sandbox. Once the broadcast is delivered, we don't know where it came from, so we need to translate the path before leaving the app process. Bug: 117909601 Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore* Change-Id: Ibddd72a2d85e1f6541e0d6209e539fe6b5c4bde0