Android 10: fetch the gallery via MediaStore with location information
问题 Looking at the storage access changes introduced in Android 10 here, location informations are now redacted by default. Google asks us to call setRequireOriginal() on the "MediaStore" object with the media's uri as a parameter. This works when you fetch medias one by one, but what about when we query the ContentResolver for the whole gallery? See this sample: String[] projection = { MediaStore.Files.FileColumns._ID, MediaStore.Files.FileColumns.DATA, MediaStore.Files.FileColumns.MEDIA_TYPE,