Allow file path access to create media under Download
Previously, MediaProvider#createFile wouldn't allow a media file to be
created under Download. This behaviour is odd and inconsistent with
MediaProvider#insert.
Now, MediaProvider#createFile allows creating media under Download.
This is done by guessing the content URI based on the file path instead
of guessing it based on MIME type.
Test: adb shell touch /sdcard/Download/foo.jpg # succeeds
Fixes: 143746283
Change-Id: I772009da6211edcd6de56fc0d86d13ea6586ecd7
1 file changed