libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.23k stars 1.83k forks source link

[Android] Android 11/12 Scoped Storage updates prevent RA from using USB or network directories #13493

Open sage2050 opened 2 years ago

sage2050 commented 2 years ago

Description

I'm not an android dev but fix looks pretty simple https://developer.android.com/about/versions/11/privacy/storage

Expected behavior

User should be able to set directories outside of RA app - USB, mapped network drives, samba shares included here

Actual behavior

User can't use directories outside of RA app

Steps to reproduce the bug

  1. Launch RA
  2. Try to change a folder directory. Scoped storage only allowed the app to see its own files without special permissions.

Bisect Results

started happening immediately after android 11 update.

Version/Commit

You can find this information under Information/System Information

Environment information

janlugt commented 2 years ago

I think this has been fixed by https://github.com/libretro/RetroArch/pull/13615.

LuanVSO commented 1 year ago

Not fixed, the path to the drive will be listed but retroarch will not see the files inside it Screenshot_20230417_124509_ZArchiver.png

xTMODx commented 1 year ago

I can confirm the issue, I can see the storage (external SSD) but when I open it in RetroArch no subfolder are shown. Total Commander show the drive and I can see the content

seanstardev commented 10 months ago

Accessing local NAS SMB through RA on Android would be amazing. I think some Android VLC player apps support this. Would involve setting up SMB credentials in RA... then storing & mapping network paths throughout RA's config writing, etc.

Not trivial stuff.