Bug 515132

Summary: Add support for .nomedia files
Product: [Applications] Elisa Reporter: GerbilSoft <gerbilsoft>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.08.3   
Target Milestone: ---   
Platform: Android   
OS: Android 14.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description GerbilSoft 2026-01-26 20:48:16 UTC
SUMMARY
On Android, there's a convention to add .nomedia files to directories that should not be indexed by media players. Elisa does not seem to support this, which means it's not possible to exclude non-media files from the automatic indexing. (I grepped the source tree for "nomedia" and found no matches.)

STEPS TO REPRODUCE
1. Add music files to a folder that also contains a .nomedia file.
2. Run Elisa.

OBSERVED RESULT
The folder with .nomedia is indexed.

EXPECTED RESULT
The folder with .nomedia should not be indexed.

SOFTWARE/OS VERSIONS
Android 16 (Pixel 8 Pro, BP4A.260105.004.E1)
Elisa 25.08.3 via F-Droid

[Android 16.x isn't listed in the OS dropdown so I selected the latest version listed.]

ADDITIONAL INFORMATION
I also removed all paths from "Music folders" in Settings and added just /sdcard/Music/, but it's still indexing other directories in /sdcard/. It seems this is related to the Music and Audio permission; denying it seems to prevent Elisa from indexing everything, even though I granted permission to /sdcard/Music/ separately.