Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

MediaScanner is not triggered when modifying SDCard content

  • /e/ version: 0.14 Pie, and probably others
  • Device model(s): many

Summary

Description

What is the current behavior?

When adding media content to the SDCard (in example a music file), it is not scanned, not added to Android media database, and not visible in any app using this database (in example Music). Same when modifying, deleting.

What is the improved behavior?

SDCard content change should trigger MediaScanner, so the changes could appears in apps using Android Media database.

What does it bring?

User could use their files, in example listen to the music they put on their SDCard.

Examples

Please see here : https://community.e.foundation/t/music-app-not-detecting-newly-added-music-files/27266/12?u=smu44

Validation

Add a music file, with a supported encoding, in SDCard.

Launch Music, verify the file is here and can be listened to.

Delete the file using, in example, Files app or MTP (computer).

Check again in Music app, file should not appears again.