Android Errors

How to Fix “android.process.media has stopped” on Android

android.process.media has stoppedPlain English: the background process that scans and indexes your photos, videos, and downloads has crashed. Your Gallery and file apps may close or misbehave until it’s fixed — but your actual files are safe.
Quick answer: “android.process.media has stopped” means the Media Storage process crashed, usually because of a corrupted media database, nearly full storage, a bad downloaded file, or a dying SD card. Restart the phone, clear the Media Storage cache and data, free up at least 1 GB of space, and work through the steps below — most people are fixed by step 2.

What “android.process.media has stopped” means

Android keeps a behind-the-scenes service called Media Storage, which runs inside the android.process.media process. Its job is to scan your storage and build an index of every photo, video, song, and downloaded file so your Gallery, file manager, and music apps can find things instantly. When you see the “android.process.media has stopped” pop-up, that indexing process has crashed — Android kills it, tries to restart it, and the message can return again and again.

In practice, the crash hits you where you feel it: you open the Gallery and it closes immediately, newly taken photos don’t show up, music files vanish from your player, or the pop-up appears every few minutes for no obvious reason. Some people first notice it after a system update, after moving media to an SD card, or after downloading a large file that got interrupted halfway.

The reassuring part is that your files themselves are almost never damaged — the index is what broke, not the photos. Media Storage is unusually fragile in exactly one way: its thumbnail and media database corrupts easily when storage runs low or an interrupted download leaves a half-written file behind. That’s why clearing the Media Storage cache and data fixes the error outright in the majority of cases, and why the steps below are ordered from the quickest, most likely fix to the last-resort nuclear option.

Common causes

How to fix “android.process.media has stopped” — step by step

Start with steps 1 and 2 — a restart plus clearing the Media Storage cache and data fixes the great majority of cases.

  1. Restart the phone normally. Hold the Power button, tap Restart, and wait for the phone to come back up. A simple restart ends the crashed android.process.media process and clears temporary memory buildup. If the pop-up was a one-time crash, it never comes back — you’re done in a minute.
  2. Clear the Media Storage cache and data. Go to Settings > Apps, tap the three-dot menu, and choose Show system apps (Media Storage is hidden by default). Find Media Storage and open it. Tap Storage & cache, then tap Clear cache. If the error comes back, return to the same screen and tap Clear storage (Clear data) — this resets the media index to a blank slate. Your photos and videos are NOT deleted; the system simply rescans your storage and rebuilds the index, which can take a few minutes. A corrupted media database is the single most common cause of this crash, and this step fixes it for most people.
  3. Clear Google Services Framework and Download Manager, and pause Google Sync. In the same Settings > Apps > Show system apps list, open Google Services Framework, tap Storage & cache, and tap Clear cache. Do the same for Download Manager and Google Play Services. Then go to Settings > Accounts, open your Google account, and temporarily turn off all sync toggles for two or three minutes before turning them back on. The media process leans on these services, and corrupted sync data can keep crashing it on a loop even after step 2.
  4. Free up storage space and check your SD card. Open Settings > Storage and make sure at least 1 GB is free — the media scanner fails when storage is nearly full. Delete large downloads you no longer need, clear the cache of heavy apps like your browser or social apps, and move old photos and videos to cloud backup or a computer. If your media lives on an SD card, unmount it from Settings > Storage, pop it out, and inspect it for damage; a corrupted or dying SD card is a classic cause of repeated media process crashes. Try running the phone for a day without the card — if the error vanishes, the card was the problem.
  5. Reset app preferences, then test in safe mode. Go to Settings > Apps, open the menu, and tap Reset app preferences — this restores default permissions and re-enables disabled system services without deleting any of your data. If the crash persists, boot into safe mode: hold the Power button, then long-press the “Power off” option until the “Reboot to safe mode” prompt appears and tap OK. Safe mode disables every third-party app you installed. If the error stops here, a downloaded app — often one that accesses or modifies media files, like a gallery replacement or file manager — is the culprit. Restart normally and uninstall recent apps, beginning with the newest one.
  6. Wipe the cache partition — factory reset as a last resort. Power the phone off completely. Then hold Power + Volume Up to enter recovery mode (on newer Samsung phones, hold the same buttons while the phone is connected to a charger or USB device). Use the volume buttons to highlight “Wipe cache partition” and press Power to select it — this clears corrupted system temp files without touching your data. If the crash still returns daily after everything above, back up your photos, messages, and files, then use Erase all data (factory reset) from Settings > System > Reset options. A clean system ends the error, but only take this step when nothing else worked.

Did this fix it? Quick checklist

If the pop-up appears only when you open the Gallery or file manager, a corrupted media database or a damaged file is the prime suspect — repeat step 2 and free up space. If it started right after inserting an SD card, unmount and test without the card before buying a replacement. And if everything above failed, check Settings > System > Software update — a pending system update may contain the manufacturer’s fix for this exact crash.

Frequently asked questions

What is android.process.media?

android.process.media is the Android system process behind Media Storage. It scans and indexes your photos, videos, music, and downloads so apps like Gallery, the file manager, and music players can find them. When it crashes, those apps may close or show the error pop-up until the process restarts.

Will clearing Media Storage data delete my photos and videos?

No. Clearing the Media Storage cache or data only deletes the system’s index of your media files, not the files themselves. Your photos, videos, and music stay on the device, and Android rebuilds the index the next time it scans your storage.

Why does the error come back every time I open the Gallery?

Opening the Gallery triggers a fresh media scan, which crashes again if the media database is corrupted, storage is nearly full, or a damaged file or SD card keeps tripping the scanner. Clearing the Media Storage data and freeing at least 1 GB of space usually breaks the loop.

Does “android.process.media has stopped” mean my phone’s storage is failing?

Usually not — it is almost always a software issue like a corrupted media database or full storage. But if the error keeps returning after a cache wipe and a factory reset, especially with SD card errors, the internal storage or the SD card itself may be failing, and a replacement card or service check is worth considering.