[ FREE ] StorageAccess Extension

*[ FREE ] StorageAccess Extension

:earth_americas: Released on : 4 November 2023

:earth_americas: Updated on : 4 November 2023

:gear: Latest Version : 1.0

  • Starting from Android 11 (SDK level 30), Google introduced scoped storage which limits access to external storage by apps for better privacy.

  • For non-media files, apps need to use the Storage Access Framework (SAF) to interact with files. This allows users to select specific files or directories that your app can access

:ballot_box_with_check: All Blocks

Screenshot 2023-11-27 130038

:mailbox_with_mail: Documentation

component_event (1)

  • PermissionChecked

event is triggered within the StorageAccess extension to notify the app when the permissions have been checked. It provides the app with information about whether the required storage permission is granted or not,

  • Storage Permission Check

this method is used to check the storage permissions of the app. If the app has the necessary permission to manage external storage on Android devices with SDK version 30 or above, it triggers the OnManageExternalStoragePermissionGranted() event and reports that the permission has been checked and granted through the true event. Otherwise,
it triggers the false event to indicate that the permission is not granted or the device’s SDK version is below 30.

component_method (2)

GetSdkVersion method is used to retrieve the Android SDK version of the device.

Storage Permission Request

This method is used to request storage permissions from the user. If the Android SDK version is below 30, it requests the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions using ActivityCompat.requestPermissions() . If the Android SDK version is 30 or above and the app does not have the necessary permission to manage external storage, it opens the system settings page for the user to grant the permission.

StoragePermissionGranted

Event is triggered within the StorageAccess extension to notify the app when the user grants the manage external storage permission.

:page_with_curl: How to Use

blocks (1)

:open_file_folder: Download

:earth_americas: Released on : 4 November 2023

:earth_americas: Updated on : 4 November 2023

:gear: Latest Version : 1.0

com.r2store.storageaccess.aix (9.1 KB)

See my feedback here

Could you please explain what exactly is the advantage compared to the built in AskForPermission / PermissionGranted / PermissionDenied blocks? Does the extension consider the different permissions needed for different Android versions?

Taifun

Will work on any version

May I know why my topic is closed?

It looks like you did not learn anything from your last post... do we really have to explain everything again and again?

I asked some simple questions. You did not answer them. . And edit your first post to provide all information there... thank you. .

Could you please explain what exactly is the advantage compared to the built in AskForPermission / PermissionGranted / PermissionDenied blocks? Does the extension consider the different permissions needed for different Android versions?

Taifun

PS: Please do not send PM, keep the discussion in this thread

2 Likes

@Taifun I edited my post is there any mistakes in my post now?

Please let me know if there are any mistakes

You now additionally added some detailed technical documentation... it looks like you asked ChatGPT to write a technical documentation for you... however a user of your extension is not interested in the technical details ...

Please only have one documentation which explains each method and event in a way, a user of your extension will be able to understand it

So now we can see, the extension is about manage external storage permission... why should we use the extension? When should we use it? When should we NOT use it? Can we still publish our app in Google Play after using it?

Please follow the guidelines
πŸŸ₯ ##PLEASE READ FIRST## Posting a new extension to the community

Taifun

1 Like

@Taifun I edited my post is there any mistakes in my post now?

Please let me know if there are any mistakes :slightly_smiling_face:

LOL...do you understand yourself, what you or ChatGPT is writing?

Also you again forgot to answer the questions...

I will have to take some vacations from this thread. .

Taifun

2 Likes

I would consider this as a "spam".

Again... your description of your blocks are ChatGPT generated...
You also fail to answer some questions Taifun asked

Read this and then question the necessity, usefulness, applicability and understandability of your extension.

Also ask yourself whether it is enough to just talk about storage permissions or whether it is not necessary to explicitly refer to WRITE and READ permissions.

1 Like

I'm sorry I uploaded too soon without much thought, I'll definitely try to upload documentation from now on

@Taifun

  • Starting from Android 11 (SDK level 30), Google introduced scoped storage which limits access to external storage by apps for better privacy.

@Taifun

Storage Access Framework is solution to that issue, not Manage_External_Storage permission.

Yes, MANAGE_EXTERNAL_STORAGE permission is only required if you want unrestricted access to the entire external storage on Android 11+, especially to the

  • root directory of the external storage and the
  • /Download directory.
1 Like

Please tell me what is the problem here

Please tell me what is wrong with my extension

Will you activate my post?

@Taifun

No

It looks like you do not really understand what you are doing. . You needed ChatGPT to write the documentation, you probably also needed ChatGPT to write the extension...

You failed to provide answers to my questions... it looks like you do not understand, what the permission manage external storage is about.

.

Taifun

Of course you can upload google play store

Screenshot 2023-11-27 233435