VISHAL VERMA

UID
3251228

Moderator

Candy
42280

Gold ideaCommunity moderatorBeta 5.0

「ColorOS Skills」Know more about Scoped Storage

 View:13502    Reply:21 | Posted at 27-11-2020 16:10:32 | Display all floors | Copy
Hello ColorOS Fans,

Hope you all are enjoying the new ColorOS 11 "Make Life Flow”.
So today I am here to tell you about Scoped Storage.

Cellphones have became a major part of our live and all our personal data, study and business documents, legal documents are stored in our devices. Andriod developers have created many apps to help us.
Storage access have now evolved to ensure apps get exactly what is required and nothing more than that.
This has been possible with what we called as Scoped Storage.

photo_2020-11-30_21-05-04.jpg

Introduction of Scoped Storage came with Andriod 10.
The idea was to organise storage space into seperate collection and limit access to overall storage.

These were some of the changes targeted for apps in Andriod 10:-
1) Unrestricted access to your own app storage.
2) Unrestricted media and downloads contributions.
3) Runtime permission only gives read access to media.
4) User confirmation required for modifying media.
5) Location metadata gated by new permission.

After taking feedback from all developers they did some update to
- make the transition easier.

Now scoped storage has become mandatory for all app targeting Andriod 11.

Features for andriod 11:-
1) Enabled file path APIs
2) Bulk media modification APIs
3) All files Access
4) Private app Storage

photo_2020-11-27_16-17-45.jpg

Q) What is scoped Storage?
It is the way in which the apps could access the files and folders in phone's external storage (things like photos that you or other apps placed in the /data/media folder).
This change is known as Scoped Storage, and its purpose was to kill the abuse of the READ_EXTERNAL_STORAGE permissions that so many apps and developers like to request.

1 y2-XqyIRjxi7ES5HRzAJ3Q.png

These changes of Scoped Storage are for those apps that target Android API level 29, which is Android 10. But with Android 11 Scoped Storage is back.

       Android-11-generic-one.jpg            
     
Q) What was the problem with earlier storage?
photo_2020-11-30_20-03-44.jpg

Limited access: Most of the apps do not need the access of whole storage since their use case are limited to certain types of files or files they own. One such use case can be a grocery app or an e-commerce app which needs storage access only to ask user to upload their profile picture.


Security: With storage access, an app can access a document as vulnerable as your bank statement or personal files.


Data organisation: Data/Files related to an app was scattered at multiple places in Shared Storage. If you have to uninstall the app and you want to clear all the corresponding data. So it was difficult in previous storage option.


Q) How it is solved now?


photo_2020-11-30_20-13-21.jpg


In scoped storage whole storage is divided into multiple blocks. An app would be provided access to the storage blocks which has relevant data for the app. System will bind storage to owner apps so that it becomes easier for the system to locate relevant files, corresponding to an app. This would also help to remove app specific data once app is uninstalled unless user does not want to.




Q) Changes to File Access Permissions

1_tKvVVA8jCbhGEJgL_lj0nA.png


  • Unrestricted access to its individual app storage: An app will have unlimited access to internal and external storage for both read and write operations. With Android 10, you don’t need to provide storage permission to write files to your own app directory on the SD card.

  • Unrestricted access to media files and download collections (contributed): You have unrestricted access to contribute files to the media collections and downloads of your own app. There’s no need to have permission if you want to save any image, video, or any other media file in the media collection (as long as the file is stored in the organised collection.

  • Non-media files contributed by other apps will need storage access framework APIs for reading, as well as for write operation








All-things-privacy-in-Android-11-6-50-screenshot-1024x576.jpg




---------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------

I am @Vishal_Verma , I hope you like this article
Give your valuable feedback in the comment section below

Follow me

#ColorOS FAMILY
PEACE OUT




VISHAL VERMA

Oswald

UID
3302672

Lv7.Gold

Candy
79843

Beta 5.0For the master

Posted at 3-12-2020 11:00:46 FromCPH1911Mobile phone | Display all floors
UID
3768598

Lv3.Crystal

Candy
640

Beta 5.0

Posted at 3-12-2020 12:13:31 FromCPH1969Mobile phone | Display all floors
UID
2953183

Lv2.Plastic

Candy
220
Posted at 3-12-2020 19:56:25 FromCPH1969Mobile phone | Display all floors
thank you coloros December 14th
UID
3774426

Lv2.Plastic

Candy
4
Posted at 3-12-2020 21:26:04 FromCPH1933Mobile phone | Display all floors
Hang
UID
3774459

Lv2.Plastic

Candy
3
Posted at 3-12-2020 22:30:54 FromCPH2025Mobile phone | Display all floors
Screenshot_2020-12-04-00-55-20-51.jpg

Comments

Vishal_Verma: Thanks for your feedback. But I request you to generate a log and give feedback in the Feedback section. For reference:- https://community.coloros.com/forum.php?mod=viewthread&tid=38 visit this thre   Posted at 3-12-2020 23:49
UID
3774459

Lv2.Plastic

Candy
3
Posted at 3-12-2020 22:31:11 FromCPH2025Mobile phone | Display all floors
same problem of this
UID
3774582

Lv2.Plastic

Candy
2
Posted at 4-12-2020 07:44:28 FromCPH2015Mobile phone | Display all floors
Some time my mobile start to hank
UID
3559218

Lv3.Crystal

Candy
1007

Beta 5.0

Posted at 4-12-2020 08:54:59 FromCPH1937Mobile phone | Display all floors
O
UID
3559218

Lv3.Crystal

Candy
1007

Beta 5.0

Posted at 4-12-2020 08:55:12 FromCPH1937Mobile phone | Display all floors
K
123>
Return to list
You cannot reply without login Login | Register Now!

Point rules of this section

ColorOS Home/ColorOS Twitter/ColorOS Facebook/OPPO Home
2005-2021 OPPO copyright (Copyright@2013-2019 coloros.com, All Rights Reserved)
回复 Return to list Back to top