Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a file chooser denies openInputStream on /sdcard #15

Open
GoogleCodeExporter opened this issue Aug 13, 2015 · 0 comments
Open

As a file chooser denies openInputStream on /sdcard #15

GoogleCodeExporter opened this issue Aug 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant