Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Can't list SD card content at all #83

Open
binhminh79 opened this issue Oct 15, 2019 · 3 comments
Open

Can't list SD card content at all #83

binhminh79 opened this issue Oct 15, 2019 · 3 comments

Comments

@binhminh79
Copy link

I run on virtual device API 26, the SD card content is not listed. please help.

@hedzr
Copy link
Owner

hedzr commented Oct 15, 2019

seems our FileUtil.getStoragePath() broken, I need more time to check it and others

@hedzr
Copy link
Owner

hedzr commented Oct 16, 2019

sorry to late reply.

About this issue, there are three points:

  1. FileUtil.getStoragePath() broken on some devices (virtual or physical). see also https://stackoverflow.com/questions/14796931/illegalargumentexception-in-statfs-in-webviewcore-internal-thread and more...
  2. In newer Android SDKs, external storage volume directory is non-readable and non-listable on some devices (most of emulators).
  3. afc library v1.2.0 has targetSDK >= 28, see also android-9.0-changes-28#per-app-selinux, this might disallow one app access the folders outside its scope.

It should be useful to downgrade to android-file-chooser v1.1.x.

@sidtact
Copy link

sidtact commented Jan 14, 2020

Any better solution on this?

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

No branches or pull requests

3 participants