commit | 5bcf805433fac70b520db6b2ceec093574dfbeb7 | [log] [tgz] |
---|---|---|
author | Ivan Chiang <chiangi@google.com> | Tue Dec 22 17:54:43 2020 +0800 |
committer | Ivan Chiang <chiangi@google.com> | Wed Jan 06 10:10:31 2021 +0800 |
tree | d3d605b86139d7f52ff37c82db84cb9e4effc976 | |
parent | 245a556373f760797f45531f69bfb012c5308c68 [diff] |
Fix getVolumeName with secondary volume issue in MediaStore Since this method doesn't have a context. we can't find the actual StorageVolume for the given path, so only a vague guess is returned. If the path is the path of secondary volume, try to return the uuid from the path. Test: atest MediaStore_Audio_MediaTest#testGetContentUriForPath Test: atest --test-mapping packages/providers/MediaProvider Bug: 174288420 Change-Id: I129c49d4fb8d68ad34444abe2dc5c435747a8161