DroidScript does not offer a way to request MANAGE_EXTERNAL_STORAGE permission because DroidScript itself does not fit the extremely tight restrictions for requesting that permission, for instance the "Core use" requirement
Personally I cannot currently see any way to offer use of that permission restricted to a small number of uses that would be likely to pass Google's strict (but inflexible) testing requirements
It is possible to access a separate external drive using SAF as in the DroidScript sample 'Sdcard_Access' but in my own apps I have given up using shared main storage for Android 11+ apps and am only using folders under the DroidScript folder "/Storage/" which point to shared main storage on traditional devices and restricted main storage on Scoped storage devices
"
I believe that if an app is installed on an old version of Android without scoped storage,
then Android is updated to a new version, the app can continue without scoped storage.
When your app runs under DS (or the WiFi IDE) then it runs with DS settings (including default folders) and DS access.
When you build/install/run then it runs with your settings and access.
AFAIK DS 2.51a1 is still in beta testing, it includes
- Added support for /Internal/* and /External/* SAF paths.
- app.GetPermission() now supports 'external' and 'internal' keywords.
- Replaced 'Sdcard Access' sample with 'Storage Access' sample.
- Improved permissions detection for file:///android_asset paths.
Regards, ah