Skip to Content
Platform.Ontology

Music and media library

Reads the person's own music library and listening history.

Asks you firstFiles and storagePhotos and mediaAndroid and iPhoneWhile you use it

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

AndroidiPhone
StatusSupportedSupported
First versionAndroid 13 (API 33)iOS 9.3
Permission or entitlementREAD_MEDIA_AUDIO (API 33); READ_EXTERNAL_STORAGE earlierNSAppleMusicUsageDescription
Protection leveldangerousprompt
How access is grantedpromptprompt
What the user seesAllow or Don't allow music and audioAllow or Don't Allow access to Media and Apple Music
How long it lastsUntil revokedUntil revoked
How to take it backSettings > Apps > Permissions > Music and audioSettings > Privacy & Security > Media & Apple Music
Store policyNone listedNone listed
APIMediaStore.AudioMPMediaLibrary.requestAuthorization, MusicKit (MusicAuthorization)
NotesNo Spotify or YouTube Music library API exists at the OS levelRequired for MPMediaLibrary and MusicKit playback

Data you get

What comes back: Tracks, playlists, play counts
Shape: list
How often: on request

FieldTypeUnitRangePrecision
itemslisttracks0 to library sizeNot 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

TypeExampleApps
musicA music player shows your whole library and lets you pick songs from it.None named
fitnessA running app builds a playlist that matches your pace from songs you already own.None named
gamesA rhythm game turns songs in your library into playable levels.None named
creativeA DJ app mixes tracks from your library on a virtual deck.djay
socialA social app shows your top songs on your profile.None named
adsAn ad firm could read your taste to guess age, mood and interests.None named
automotiveA 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

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 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

  • 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

Sources

How well checked: Based on official documentation.

On this page