commit | dc9593e79101012821a03ed5786cef41fc89387f | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Mon Jan 09 18:04:43 2017 -0800 |
committer | Garfield Tan <xutan@google.com> | Mon Jan 09 18:11:34 2017 -0800 |
tree | 1efbf89aeec9e845055085c6d72579f64f1f0fa9 | |
parent | e7e4998784f6ca4ad8b50ba766e10a2aefaf0ddb [diff] |
Check visible paths as well when generate docId from file system path. getDocumentUri(String, List<UriPermission>) needs it because MediaStore can only provide path under visible paths for external SD cards. Test: Manual test w/ SD card. Relative CTS tests pass. Happy to add automated tests for SD card cases if somebody shows me how. Bug: 33819522 Change-Id: I15cdd60a2d2c94275dd661f20b5b0deb0d80d258