DevK2S/Study_Partner

Migrate the project from Android 10 storage to Android 11 storage and above

Closed this issue · 9 comments

Starting from Android 11, a new storage structure has been introduced citing privacy concerns. The application uses a legacy storage structure. Only try solving this issue if you have a lot of time on hand.

In this, You want that your app should store all the user files directly in the Internal Storage with a folder named StudyPartner instead of the folder inside Android->data->com.studypartner. This is the thing that we have to implement naa. I just wanted to confirm.

The application currently stores the file in the Internal Storage in a folder names StudyPartner for Android 10 devices and in Android->data->com.studypartner for Android 11 devices.

Starting from Android 11, Google changed the way filesystem access for Android works due to security concerns. The application uses a tag in the Manifest file called android:requestLegacyExternalStorage="true". It allows us to use the application with Android 11 and use the legacy storage structure. The application would stop working on any device having Android 12 and onwards. This is what we want to solve.

You can read about it further on Android Developer's Guide

Ok I got it, that means you want to upgrade your app to use Scoped Storage concept

Yeah. I know it's a difficult task. Would you be up for it?

Currently I am not that much expert in this field. But in future I will let you know.

I want to work on this issue.

How will you go about solving this issue @codeDamon?

We have to use scoped storage to make app's storage model compatible with android 11 and above.

For reference will follow this:
https://developer.android.com/about/versions/11/privacy/storage

Hello, @codeDamon I'm really sorry but this issue can't be worked on right now. I apologize for any inconvenience caused.