Scoped storage and shared files
Android apps see their own folder and shared media through MediaStore; all files access needs a special grant.
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
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 10 (API 29) | iOS 2.0 |
| Permission or entitlement | READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO (API 33), READ_MEDIA_VISUAL_USER_SELECTED (API 34), MANAGE_EXTERNAL_STORAGE | NSPhotoLibraryUsageDescription for photos; none for sandbox |
| Protection level | dangerous | prompt |
| How access is granted | prompt | prompt |
| What the user sees | Allow selected or all photos; All files access in Settings | Photos permission prompt with limited access |
| How long it lasts | Persistent until revoked; selected photos grant is session limited | Sandbox is private by default; photo access persists until revoked |
| How to take it back | Settings > Permissions | Settings > Privacy > Photos |
| Store policy | Play: all files access needs declaration; photo picker preferred | App Review 5.1.1 |
| API | MediaStore, Storage Access Framework, Photo Picker | App sandbox, UIDocumentPicker, PHPickerViewController |
| Notes | Enforced for target 11 (API 30); MANAGE_EXTERNAL_STORAGE restricted by Play | No 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
| Type | Example | Apps |
|---|---|---|
| media | A music player reads songs through the system media store, not by browsing folders. | None named |
| social | A photo app saves edited pictures to a shared pictures folder through the system. | None named |
| games | A game keeps its save files inside its private folder, safe from other apps. | None named |
| utilities | A file manager asks for All files access to see every folder. | Files by Google |
| security | A bad app can no longer read other apps' downloads without permission. | None named |
| productivity | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough 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
Related capabilities
Related
- Cache and temporary storage eviction. Can store temporary files that the system may delete when your storage runs low
- File data protection classes. Can keep files locked until you unlock the phone, depending on how they are protected
Same idea on the web
- Origin Private File System. Can keep fast private files in the browser that count against its storage limit
Sources
- Android: Scoped storage
- Apple: Accessing files from the iOS and iPadOS Files app
- Google Play: All files access policy
How well checked: Based on official documentation.