Controlling the Global User Directory: Difference between revisions

Added information about Android and scoped storage
(Restructured the page to clearly separate each operating system, in order to prepare for adding information about Android. Also decreased the focus on past versions of Dolphin and editing the Windows registry.)
(Added information about Android and scoped storage)
Line 56: Line 56:


Dolphin will use the regular user directory path again the next time you launch Dolphin, unless you use <tt>-u</tt> again.
Dolphin will use the regular user directory path again the next time you launch Dolphin, unless you use <tt>-u</tt> again.
== Android ==
Old versions of Dolphin always use the directory <tt>dolphin-emu</tt> on shared storage as the user directory. This directory is shared between different installations of Dolphin and is not automatically deleted when you uninstall Dolphin.
Dolphin {{revision|5.0-15348}} and newer comply with Google's scoped storage policy and normally use the directory <tt>Android/data/org.dolphinemu.dolphinemu/files</tt> on shared storage as the user directory. This directory is difficult to access in most file managers on Android 11 and newer, and by default all data in the directory will be deleted when you uninstall Dolphin. However, if <b>all</b> of the following applies, the old <tt>dolphin-emu</tt> location will be used as the user directory instead:
* Scoped storage is disabled
* <tt>Android/data/org.dolphinemu.dolphinemu/files</tt> does not exist or is empty
* <tt>dolphin-emu</tt> exists
* You give Dolphin permission to access your files when asked
Scoped storage is disabled if <b>at least one</b> of the following applies:
* You were using Android 10 or older when you installed Dolphin, and you haven't uninstalled Dolphin since then
* You were using Dolphin {{revision|5.0-15341}} or older when you installed Dolphin, and you haven't uninstalled Dolphin since then
* You have manually disabled scoped storage for Dolphin using the following command (only possible if you have a rooted device or a debug version of Dolphin): <pre>adb shell cmd appops set org.dolphinemu.dolphinemu android:legacy_storage allow && adb shell am force-stop org.dolphinemu.dolphinemu</pre>


[[Category:Tutorials]]
[[Category:Tutorials]]
212

edits