Music and media library
Reads the person's own music library and listening history.
In one line
Can see your own music library and play your songs once you tap Allow
Reads the person's own music library and listening history.
Reveals taste, play counts and playlists; on iOS it also gates Apple Music playback control.
What it can and can't do
What the user does: You tap Allow when a music or player app asks for your library
It can
- List songs and playlists in your music library
- Play your music inside the app
- Use Apple Music playback on iPhone after the Media and Apple Music prompt
- Use your audio files on Android after the music and audio prompt
It cannot
- Open Spotify or YouTube Music libraries; no phone wide access exists
- See your listening history on Android, which does not keep it for apps
- Use MusicKit or the media library on iPhone without the prompt
- See photos or videos with this permission
How it differs between platforms: iPhone uses the Media and Apple Music prompt. Android uses the music and audio prompt on Android 13 and newer.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 13 (API 33) | iOS 9.3 |
| Permission or entitlement | READ_MEDIA_AUDIO (API 33); READ_EXTERNAL_STORAGE earlier | NSAppleMusicUsageDescription |
| Protection level | dangerous | prompt |
| How access is granted | prompt | prompt |
| What the user sees | Allow or Don't allow music and audio | Allow or Don't Allow access to Media and Apple Music |
| How long it lasts | Until revoked | Until revoked |
| How to take it back | Settings > Apps > Permissions > Music and audio | Settings > Privacy & Security > Media & Apple Music |
| Store policy | None listed | None listed |
| API | MediaStore.Audio | MPMediaLibrary.requestAuthorization, MusicKit (MusicAuthorization) |
| Notes | No Spotify or YouTube Music library API exists at the OS level | Required for MPMediaLibrary and MusicKit playback |
Data you get
What comes back: Tracks, playlists, play counts
Shape: list
How often: on request
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
items | list | tracks | 0 to library size | Not listed |
Technical limits
- Streaming service libraries are not exposed through the OS
The story
What it is
Lets an app see your own music library and what you have listened to.
For you
A pop up asks to access your music library. If you say yes, the app can see your songs, playlists and play counts. On iPhone it can also control Apple Music playback.
For makers
Makers use it to build playlists, show your history and suggest songs. It gives a rich picture of your taste, so permission matters.
Where you see it
| Type | Example | Apps |
|---|---|---|
| music | A music player shows your whole library and lets you pick songs from it. | None named |
| fitness | A running app builds a playlist that matches your pace from songs you already own. | None named |
| games | A rhythm game turns songs in your library into playable levels. | None named |
| creative | A DJ app mixes tracks from your library on a virtual deck. | djay |
| social | A social app shows your top songs on your profile. | None named |
| ads | An ad firm could read your taste to guess age, mood and interests. | None named |
| automotive | A car app lets you pick a song by voice from your own library. | CarPlay |
Risks
- Reveals your taste
- Play history is personal
Android and iPhone in short
- Android: Reads audio files with READ_MEDIA_AUDIO on newer Android.
- iPhone: Needs the Media Library permission and also gates Apple Music playback control.
What the platform says
- Apple: MusicKit. Developer pitch: let apps play Apple Music and read a person's music library with their permission.
Good uses and abuse
Legitimate uses
- Music players
- DJ apps
Known abuse
- Taste profiling
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 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
- 2016-03, iPhone iOS 9.3: Media library usage key and prompt introduced
- 2022-02, Android 13 (API 33): Audio files moved under READ_MEDIA_AUDIO
Related capabilities
Related
- Photo library, full access. Can see and change every photo and video in your library once you allow full access
Sources
- Apple: Requesting access to Apple Music library
- Apple: Protected resources keys
- Android: Granular media permissions
How well checked: Based on official documentation.