diff options
| author | Zim <zezeozue@google.com> | 2021-01-19 02:11:02 +0000 |
|---|---|---|
| committer | Zimuzo Ezeozue <zezeozue@google.com> | 2021-01-19 08:48:09 +0000 |
| commit | 94a7b819fe7ee1dc8637dc93b79729479cf1db65 (patch) | |
| tree | bcd86698020182de2f3165b6c622650ae099c865 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
| parent | bfcc7e5f4f0a18471f5493c4dcae9d54347474f0 (diff) | |
Fix convertToModernFd to support /mnt/user paths
Since I72f39d3e35b975f0a386c055cbb10b4d21c21c86, the MediaProvider
now always opens FUSE paths when transcoding is required. Those paths
start with /mnt/user/ but apps can't access those paths directly so we
make the following changes:
1. Call readlink(2) directly (without stat as
ParcelFileDescriptor#getFile currently does).
2. Replace /mnt/user/<userid> with /storage paths and use the new
/storage path for scanning
This also fixes some failing CTS
Test: Apps don't ANR when calling MediaMetadataRetriever#setDataSource
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testMediaNone29
Bug: 174655855
Fixes: 177860000
Change-Id: Iec48dcb714a47b147e16eae39df783de748960f4
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions
