android-file-chooser icon indicating copy to clipboard operation
android-file-chooser copied to clipboard

Can't list SD card content at all

Open binhminh79 opened this issue 5 years ago • 3 comments

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

binhminh79 avatar Oct 15 '19 09:10 binhminh79

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

hedzr avatar Oct 15 '19 10:10 hedzr

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.

hedzr avatar Oct 16 '19 07:10 hedzr

Any better solution on this?

sidtact avatar Jan 14 '20 18:01 sidtact