Fix file manager access on Android 10

This commit is contained in:
Mark Qvist 2024-09-23 17:54:43 +02:00
parent 210163de0a
commit 88e03340cf
3 changed files with 3 additions and 3 deletions

View File

@ -649,7 +649,8 @@ class MDFileManager(MDRelativeLayout):
return dirs, files return dirs, files
except OSError: except OSError as e:
print("Filemanager OSError: "+str(e))
return None, None return None, None
def close(self) -> None: def close(self) -> None:

View File

@ -1677,8 +1677,6 @@ class SidebandApp(MDApp):
ate_dialog.open() ate_dialog.open()
else: else:
self.sideband.config["map_storage_path"] = None
self.sideband.save_configuration()
if RNS.vendor.platformutils.get_platform() == "android": if RNS.vendor.platformutils.get_platform() == "android":
toast("No file access, check permissions!") toast("No file access, check permissions!")
else: else:

View File

@ -54,6 +54,7 @@
{{ args.extra_manifest_application_arguments }} {{ args.extra_manifest_application_arguments }}
android:theme="{{args.android_apptheme}}{% if not args.window %}.Fullscreen{% endif %}" android:theme="{{args.android_apptheme}}{% if not args.window %}.Fullscreen{% endif %}"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"
android:requestLegacyExternalStorage="true"
> >
{% for l in args.android_used_libs %} {% for l in args.android_used_libs %}
<uses-library android:name="{{ l }}" /> <uses-library android:name="{{ l }}" />