Project

General

Profile

Actions

Emulator Issues #12764

open

[Android] [Scoped Storage] Consider moving the user folder from Android/data/org.dolphinemu.dolphinemu to Android/media/org.dolphinemu.dolphinemu

Added by mbc07 about 3 years ago. Updated about 2 years ago.

Status:
Work started
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Android
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Since version 5.0-15348, Dolphin complies with Scoped Storage requirements by storing the user folder under Internal Storage => Android => data => org.dolphinemu.dolphinemu. That folder, however, has restricted access and the transition hasn't been exactly smooth (we've seen phones that deny access to the folder even when accessed on a computer via USB, phones that hides the only system app that still has full access to the folder, among other related issues).

I've been watching how other apps that used to store content in bare folders at the root of the internal storage reacted since the Scoped Storage enforcement went live on the Play Store and noticed that a few opted to use Android => media instead of Android => data (e.g. WhatsApp). At first I thought only media files could be stored there but those apps are storing all kinds of files there. The most important benefit, however, is that the media folder doesn't have the same access restrictions of the data subfolder: any app can read/write files there, even in the folder of other apps and using that directory seems sufficient to comply with the Scoped Storage requirements.

I haven't investigated if there are other implications in using the Android\media folder that might affect Dolphin, but given the benefits it might be worth considering the switch, if feasible?

Actions

Also available in: Atom PDF