Update Android storage path to use user-accessible external storage instead of the app's private files directory.
This commit is contained in:
@@ -37,8 +37,8 @@ class StorageManager:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if os.name == "posix" and "ANDROID_ROOT" in os.environ:
|
if os.name == "posix" and "ANDROID_ROOT" in os.environ:
|
||||||
# Android - use app's private files directory
|
# Android - use user-accessible external storage
|
||||||
storage_dir = pathlib.Path("/data/data/com.ren_browser/files")
|
storage_dir = pathlib.Path("/storage/emulated/0/Documents/ren_browser")
|
||||||
elif hasattr(os, "uname") and "iOS" in str(
|
elif hasattr(os, "uname") and "iOS" in str(
|
||||||
getattr(os, "uname", lambda: "")()
|
getattr(os, "uname", lambda: "")()
|
||||||
).replace("iPhone", "iOS"):
|
).replace("iPhone", "iOS"):
|
||||||
|
|||||||
Reference in New Issue
Block a user