Skip to Content
Platform.Ontology

Scoped storage and shared files

Android apps see their own folder and shared media through MediaStore; all files access needs a special grant.

Works without askingFiles and storageStorage accessAndroid and iPhoneWhile you use it

In one line

Can open its own folder and shared media only, not everyone's files, on Android

Android apps see their own folder and shared media through MediaStore; all files access needs a special grant.

Since Android 10, apps no longer roam the whole shared storage. Photos and files come through MediaStore, document picker or the all files grant. iOS apps see only their own sandbox.

What it can and can't do

What the user does: You tap Allow on a photos prompt or pick files in the system chooser

It can

  • Use its own private folder with no permission
  • Open shared photos, videos and music after you allow them
  • Open files you pick with the system file chooser or Photo Picker
  • Ask for All files access in Settings, for apps that truly need it

It cannot

  • Open other apps' files; the sandbox blocks them
  • Use the old storage permission on Android 11 and newer
  • Get All files access without Google Play approval
  • Open iPhone files outside the sandbox without the picker

How it differs between platforms: Android scoped storage became mandatory for apps targeting Android 11. iPhone has always sandboxed apps and adds limited photo picks since iOS 14.

On Android and iPhone

AndroidiPhone
StatusSupportedSupported
First versionAndroid 10 (API 29)iOS 2.0
Permission or entitlementREAD_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO (API 33), READ_MEDIA_VISUAL_USER_SELECTED (API 34), MANAGE_EXTERNAL_STORAGENSPhotoLibraryUsageDescription for photos; none for sandbox
Protection leveldangerousprompt
How access is grantedpromptprompt
What the user seesAllow selected or all photos; All files access in SettingsPhotos permission prompt with limited access
How long it lastsPersistent until revoked; selected photos grant is session limitedSandbox is private by default; photo access persists until revoked
How to take it backSettings > PermissionsSettings > Privacy > Photos
Store policyPlay: all files access needs declaration; photo picker preferredApp Review 5.1.1
APIMediaStore, Storage Access Framework, Photo PickerApp sandbox, UIDocumentPicker, PHPickerViewController
NotesEnforced for target 11 (API 30); MANAGE_EXTERNAL_STORAGE restricted by PlayNo access to other apps' files; limited photo library selection from iOS 14

Data you get

What comes back: Granted URI
Shape: event
How often: Per grant

No individual data fields. The signal is the access itself.

Technical limits

  • No broad file read without a special grant
  • Cannot read other apps' sandboxes

The story

What it is

Android keeps each app in its own folder, and shared files go through system tools.

For you

Apps can no longer wander through your whole storage. They see their own folder, and photos and files only through the system. You may see more pickers and fewer scary pop ups.

For makers

Makers must use system tools for shared files and ask for special access for anything wider. It limits data grabs and makes file handling more uniform.

Where you see it

TypeExampleApps
mediaA music player reads songs through the system media store, not by browsing folders.None named
socialA photo app saves edited pictures to a shared pictures folder through the system.None named
gamesA game keeps its save files inside its private folder, safe from other apps.None named
utilitiesA file manager asks for All files access to see every folder.Files by Google
securityA bad app can no longer read other apps' downloads without permission.None named
productivityA notes app uses the document picker to open files from other places.None named

Risks

  • Breaks some old apps
  • Special grants widen the door

Android and iPhone in short

  • Android: Introduced in Android 10 and enforced in Android 11.
  • iPhone: iPhone apps only ever see their own sandbox.

What the platform says

  • Google: Scoped storage. Developer guide: apps see their own folder and shared media only through system APIs, to protect user privacy.

Good uses and abuse

Legitimate uses

  • Attach a photo
  • Document upload

Known abuse

  • Bulk file scraping

Scores

ScoreValueMeaning
Sensitivity4 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction2 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2019-09, Android 10 (API 29): Scoped storage introduced
  • 2020-09, Android 11 (API 30): Scoped storage enforced for target 11
  • 2020-09, iPhone iOS 14: Limited Photos access and PHPicker introduced

Same idea on the web

Sources

How well checked: Based on official documentation.

On this page