My application[1] uses the ACTION_GET_CONTENT intent to allow the user to
select a file. While I can select a file using Android-File-Explore, when I try
to get its contents using contentResolver.openInputStream(intent.data), a
permission denied error is thrown if that file resides on /sdcard. Reading
files outside /sdcard work.
My application doesn't need the READ_EXTERNAL_STORAGE permission, but if I
grant it I can access /sdcard via Android-File-Explore.
This issue may be related to my 4.2 -> 4.4.2 upgrade, I was able to select
files in this way prior to the upgrade. Several other file managers, but not
all are affected by the issue. OI and ES File Explorers for example work OK.
[1]
https://github.com/splondike/polipoid/blob/master/src/com/polipoid/ui/SettingsAc
tivity.xtend#L54
Original issue reported on code.google.com by splond...@gmail.com on 21 Apr 2014 at 12:16
Original issue reported on code.google.com by
splond...@gmail.com
on 21 Apr 2014 at 12:16