How Can I Access the Android/data Folder on Android 11 Using SAF in Kodular?

Hi everyone,

I’m currently working on a project in Kodular, and I’ve run into an issue I hope someone can help me understand or solve.

I want to access the Android/data folder on Android 11 and above, but I know that direct file access to that location is now restricted due to scoped storage introduced by Google. I’ve read that the only way to access this folder is by using the Storage Access Framework (SAF).

However, I’m not sure how to implement this properly in Kodular.
how can i use it

1 Like

Have you read this @bodymindpower guide?

or this tiny extn?

Please mention the source.
It was more of a hack/workaround, than an official method.

Here it has been said

SAF can give you access to 90% of the file system.
But you can’t access /Android/data and /Android/obb dir and its childs.

See also SAF: App Inventor implementation of Storage Access Framework - #116 by bodymindpower

However you might want to try SAF: App Inventor implementation of Storage Access Framework - #163 by vknow360, see also the following posts there

Taifun

I just need access to the Android/data folder, nothing else.

It is generally not possible anymore
It does not look as you read the previous answers, why?

If you do not plan to publish the app in Google Play, you also can try

Taifun

It worked for me :heart: and I request @vknow360 to give me the AIA file or just an explanation of how to do that.(but not in android 14,15)

thanks

1 Like

@vknow360
Do you have the AIA file?

1 Like

No, use InitialDir block with value like /Android/data/<pkg_name>.

1 Like

Is this block correct?



I want to show files in the list viewer, but they load in the android/media folder. I don’t know why, and is there any way to check if folderurl ispermissiongranted or not?