1

I want to know what the purpose of the system app "Media Storage" and the media scanner is for and why for any reason a user would choose to not scan media on boot.

2

1 Answer 1

4

Media Storage, package name com.android.providers.media, is an implementation of MediaStore:

The Media provider contains meta data for all available media on both internal and external storage devices.

It scans and stores media file info for quick access, and provides secure (content:/// scheme, as with all other providers) URIs pointing to the files for access by other apps.

By default, Media Storage has a broadcast receiver MediaScannerReceiver that listens for android.intent.action.BOOT_COMPLETED, so media scanner will launch on boot. Such receivers are unlikely to be disabled by end users unless with root permissions.

8
  • Can you explain the purpose of either. You explained the function, what it does, but not its purpose, what it is used for in a utilitarian sense.
    – Narcotixs
    Apr 28, 2017 at 6:46
  • "It scans and stores media file info for quick access" - so that individual media apps would not need to scan folders manually for an up-to-date library (e.g. painful if you have a lot of music / adds music often); "provides secure URIs" - so as to comply with the overall security mechanism of recent Android versions.
    – Andy Yan
    Apr 28, 2017 at 7:14
  • I thought you were asking the question from a power-user perspective, since you asked "why users would skip scanning".
    – Andy Yan
    Apr 28, 2017 at 7:14
  • "It scans and stores media file info for quick access" (function) "so that individual media apps would not need to scan folders manually for an up-to-date library" (purpose) . When you add why it's needed, it makes a lot more sense (e.g., A car goes from A-B (function) to minimize time and effort needed to travel (purpose)). I don't have any perspective of how to ask a question if I don't know how something operates. You still have yet to explain the purpose of Media Scanner.
    – Narcotixs
    Apr 29, 2017 at 1:56
  • Yeah, guess I was still quite stuck in the "developer" sense I acquired last summer in internship. The stuff I wrote are mostly from memory back then too.
    – Andy Yan
    Apr 29, 2017 at 1:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .