No matter what I try, the app does not ask for permission, and the app did not list permissions when I long-pressed and selected App Info to view permissions.
MANAGE_EXTERNAL_STORAGE
READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE
android.permission.MANAGE_EXTERNAL_STORAGE
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
I put these in Build Settings > Android > Configuration (second panel) > Permissions
None of these three attempts seems to trigger a request for these permissions.
Those permissions are all written to the manifest in my tests.
FWIW, WRITE_EXTERNAL_STORAGE is added automatically for all apps.
According to Google, you should not be requesting android.permission.MANAGE_EXTERNAL_STORAGE unless you have a very specific type of app.
Also according to Google, android.permission.READ_EXTERNAL_STORAGE has no effect starting with API 33.
Depending on what you are doing, you should just create the file in SpecialFolder.Documents and use it from there. Or if it was copied in with a build step, copy the file using SpecialFolder.Resource to SpecialFolder.Documents to modify it.
Now that explains everything, thank you!
What is the proper format for other permissions?
- I will be looking into using a Bluetooth barcode reader for people to check out documents / case files for review in one of my apps, so I anticipate the need for Bluetooth data *
The format is to just put one permission name per line, but you only need the constant name, which is like android.permission.READ_EXTERNAL_STORAGE.