Some basics on Android storage system

That won't be a Windows or Apple Computer then :wink:

4 Likes

Me2.

Yes, but the wind is changing right now (also for Windows, Apple & Co) and wonderful times of freedom are coming (without lies, electoral fraud, oppression, C-restrictions, opinion terrorism, ...) - I've been very confident for a long time ... (many will be very surprised).

It all depends on the US election and this has already been decided.
Does anyone want to bet for whom?

1 Like

Very Helpful! Thank you!
But shame on Google for scoped storage...

2 Likes

I think Windows is less restrictive when it comes to file systems and accessing them, installing applications, etc.
Google is moving towards controlling its users and wants to be present even where it is not needed. Well, but you know - money and masking for the "good of users".

1 Like

By the way, does anybody know when will AI2 target API 30? Is there any announcement about this?

Yes, AI2 has to target API 30 before August 2021, because targetSdkVersion=30 is required for

  • new apps from → August 2021 and
  • updates from → November 2021

You must also publish apps with the (new) Android App Bundle ( AAB ) format.

Thank you, but i'm curious about the AI2 team plan to implement it, not the deadline, but never mind, i'm starting to prepare my apps for this change.
One more question.

The ASD can only be accessed by your app and is automatically removed when the app is uninstalled.

What about reinstall without uninstall? Logically it is stays in case of app update, but i ask to be sure.

Yes, but how about trying it yourself?

That maybe, but Apps that circumvent the new security measures will be rejected for distribution via Google Play Store.

I don't have android 11 so I can't really get to know all the new limitations and features. But I think if there are still file manager applications in the Play Store, it will be possible. Unless all file manager applications are gone?

How do you access these filepaths on your android?

See e.g. here:

I use AndExplorer on my Android 11 device, see and actions everything it did back on Android 7, just can't access some files in the ASDs of compiled apps from my memory.

I understand. Can this file explorer move files, folders, rename, edit text files?

Yes, it does use the default text editor though.

I think the question here should be, how to save and access files from the (AI2) app when AI2 is targeting API 30 (targetSdkVersion = 30).

2 Likes

Hello,
Before the update we used to use the following paths:

  1. Companion: file:///mnt/sdcard/AppInventor/assets/
  2. APK: file:///android_asset/
    Now, what paths do we need to use? I actually did not understand much. So if anybody could help....
    I need to use those paths to show a HTML File that's already uploaded in the app inventor

Thanks

1 Like

I've added a full overview of the Android storage system - Scoped / Shared Storage (targetSdk=30, Aug 2021) - at the end of my guide.

5 Likes

I have added another detail to my overview (top right, see pink box) and thus completed the overview.
( I hope. :wink:)

14 Likes
File Export to csv
Files Acces with file component
SAF: App Inventor implementation of Storage Access Framework
Permissions problems again
File not found with new version of App Inventor
Files file path (yet again)
Save or storage pdf
Download a file to ASD and replacing a file already there
EFile extension works with Companion but not with the compiled app
I want to open a pdf file in app inventor
Question about Files, Scopes and Android Levels (US and EU)
Best method for storing and reading a folder that contains around 11k images with total of 1Gbyte
Εrror 2101:Τhe file/filename.txt coult not be found
How do I create a separate folder in external storage?
Time to RESET Forum / Documentation
Storing a simple file outside of the application specific directory (ASD)
Canvas are not saved
Android 11 issue related to cordova
File - readfrom filename dont work
Taifun FileList method not showing all the files in shared storage
Image is not save in phone
Taifun FileList method not showing all the files in shared storage
Save issue on samsung s20
Sharing csv file
Illegal Character In Path At Index... How to save canvas
How do you copy file (taifunfile copyasync) to folder in internal storage (android 11)?
List Documents folder with android 11
No guarda el archivo TXT
Illegal Character In Path At Index... How to save canvas
How do you save in gallery?
No guarda el archivo TXT
How can i convert a jpg file to pdf file?
No se puede compartir archivos, Error 908: The permission WRITE_EXTERNAL_STORAGE has been denied
Read file from phone memory
File and Directories
SAF: App Inventor implementation of Storage Access Framework
Ask for permission
How do you copy non media files from the Download folder to the app folder?
Reading fields from a csv file
Files Acces with file component
Changes in APK?
La aplicacion no permite guardar imagenes (Canvas.SaveAs issue)
Non riesco più a far caricare il file CSV dalla mia app
Error 908: Permission Denied
Problem to save Canvas as Image and Upload it to server with SDK > 30
Error 908: The permission read_external_storage has been denied
Create My App Album
Reading CSV in App Inventor
CloudDB.StoreValue Block not accepting file from Shared folder
Activity Starter pdf open failed
Rejection of license
Taifun File extension still works?
How to request and grant MANAGE_EXTERNAL_STORAGE permission
MFile - a modified version of Sunny's `EFile` extension - Shared folders - storage permissions - Android 11+
How do you choose files from ASD and export them?
How do you import data from file on API30, API31?
Copy to shared Folder "Download" when using TaifunFile not works
TableView Extension Versions 3 and 4 by @Ken