Declare Storage Permissions in the Manifest

Here is an extension, that declares storage permissions (READ & WRITE) correctly in the Manifest:
DeclareReadWrite.aix (4.7 KB)

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />

Since many components don’t declare storage permissions anymore after der 1.5.5 update, use this extension.

Even if your app doesn’t need these permissions, it’s harmless and has no disadvantages. But without declaring permissions in the Manifest, they cannot be requested (neither at runtime on Android 6+ nor at install-time on Android < 6).




How to use this extension. Please share blocks.Thanks

See above.

Drag it into the Designer. That’s all.

What about Android 11 it’s not working on it.

Shouldn’t we use blocks ? Ask permission?

1 Like

I am unable to get you. Please can you share the blocks on designer?

There is only one block:


What is not working?
On Android 11+ WRITE permission does no longer exist and therefore it cannot be granted on Android 11.

Is it only necessary to insert the extension? Don’t need to modify anything in the blocks?


There is nothing to modify!
As I said, there is only 1 block (and this helps to get the API of the device).

I inserted the extension in my project, but the bug continues, I can’t download it through the apk.

1 Like

Wondering how you defined android:maxSdkVersion="29" considering there’s no annotation member for this in App Inventor.

1 Like

Not working. Still The same issue

Post the APK.

WRITE is still declared only up to API 29 (Android 10).

Read my answers carefully

Now whats the solution?

See e.g. here:

1 Like