How to request for permission to read storage folders using manifest.xml?

Original post:

I have 0 experience on manifest.
I have close to 0 knowledge on xml format.
My project currently does not have a Assets/Android/Plugins/manifest.xml file.
I am clueless on where to begin.

I’ve found the following manifest file regarding permissions, with no further documentation.
https://developer.android.com/samples/PermissionRequest/AndroidManifest.html

I was also unable to find any non-paid tutorials that target this specific question:
How to request for permission to access directory using manifest.xml?

I only need to retrieve the files in the directory, I don’t need to write to it.

Thanks,
RAWEGames

What sort of permission do you need? you can start with the basic manifest found here: Unity - Manual: Create and use plug-ins in Android

I need the permission to retrieve the files in a directory.

Right now, I get an UnauthorizedAccessException when I run the following code:
Directory.GetFiles(“/storage/sdcard0/Pictures”);

I’ve read up this:

I’m rather confused.

Here’s a piece of code I found:

<manifest . . . >
    <permissionandroid:name="com.example.project.DEBIT_ACCT" . . . />
    <uses-permissionandroid:name="com.example.project.DEBIT_ACCT"/>
    . . .
    <application . . .>
        <activityandroid:name="com.example.project.FreneticActivity"
                  android:permission="com.example.project.DEBIT_ACCT"
                  . . . >
            . . .
        </activity>
    </application></manifest>

I’ve found “android.permission.READ_EXTERNAL_STORAGE” permission, which I supposes should allow me to read external storage.
I replaced all “com.example.project.DEBIT_ACCT” with “android.permission.READ_EXTERNAL_STORAGE”, removed all " . . . ", because I don’t know what to put there, and got this:

<manifest>
    <permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <application>
        <activityandroid:name="com.MyCompanyName.MyProjectName.???"
                  android:permission="android.permission.READ_EXTERNAL_STORAGE">
        </activity>
    </application>
</manifest>

Am I using manifest correctly?

Will using READ_EXTERNAL_STORAGE allow me to read every single folder in the external storage?

1 month bump.

Bump.