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.Introduction
Description: Basically AI2 wrapper of Storage Access Framework. Using this extension, you can get read and/or write access to a single document or tree document (and all of its children recursively).
Latest Version: 1.3
Released: 2021-09-16T18:30:00Z (UTC)
Last Updated: 2023-11-15T18:30:00Z (UTC)
2.Blocks
[image]
[image]
[image]
[image]
[image]
[image]
[image]
[image]
[image]
3.Documentation
EventsErrorOccurredEvent indicating error/exception …
1 Like
Have you read this @bodymindpower guide?
Access to non-media files on Android 11+
On Android 11+, non-media files (like txt, pdf, csv, …) can be accessed
if and only if
the text files are in the → ASD or in the → Private dir (i.e. were saved there), or
the text files are in one of the Shared folders /Documents or /Download and
these files were created by the app itself, or
SAF is used, or
MANAGE_EXTERNAL_STORAGE* permission is requested and granted.
*` This is not really an option, because an app that requests this permission w…
or this tiny extn?
This extension is designed to quickly and briefly select a folder or file on android 11+, get read and write permissions in the folder, and return the folder path if possible from the uri link.
all blocks:
for convenience, I attach the full MIMEType table:
[Screenshot_1]
File Type
MIME Type
Example Extensions
All files
*/*
All extensions
Text files
text/plain
.txt
CSV files
text/csv
.csv
HTML files
text/html
.html, .htm
PDF files
application/pdf
.pdf
Images (all)
image/*
.…
vknow360
(Sunny Gupta)
June 18, 2025, 1:10pm
3
Please mention the source.
It was more of a hack/workaround, than an official method.
Taifun
June 18, 2025, 1:23pm
4
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.
Taifun
June 19, 2025, 11:07am
6
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
In this guide I show you, how to request and grant → MANAGE_EXTERNAL_STORAGE on devices with Android 11+. Be aware that this permission is usually not granted by Google. However, let’s assume the app is only intended for private use or for special users or for other app stores .
This permission must be declared in the Manifest ( since it is not declared the Companion app you can’t test this with Companion):
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
Here is a…
Taifun