14 votes
Accepted

Can .nomedia be a folder?

Yes. If a folder contains another folder that is named .nomedia, the parent folder will be ignored. The relevant code is here (note to the confused: File doesn't necessarily be a regular file - in ...
iBug's user avatar
  • 7,666
5 votes
Accepted

Why does MTP show wrong directory location?

What is Content Provider? It seems to be a problem related to Media Providers. As the name suggests, they provide a database of available media in a more organized way to other apps as the Contacts ...
Irfan Latif's user avatar
  • 19.9k
5 votes

What is the purpose and function of the "Media Storage" application and the media scanner?

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 ...
Andy Yan's user avatar
  • 9,524
4 votes

Manually trigger MediaScanner to scan files on Internal Storage on Nougat/Oreo

Note: It is possible the following commands do not work out for you with just USB debugging / shell (uID 2000) user. In that case, you must have root access to make them work. Before KitKat, this ...
Firelord's user avatar
  • 24.9k
3 votes

Music stored on the External SD Card is removed from playlists at reboot

After more experimentation, I've made a breakthrough. Ultimately, this all happens cause Android's Media Scanner will scan the internal SD for media at startup. When it finds Playlist files it ...
HeyItsJono's user avatar
3 votes
Accepted

Is it possible to have a media folder inside a .nomedia folder?

Oh I get him now. If the .nomedia file exists in a folder containing the folders you have it will hide files in all those directories. For example having a .nomedia on /sdcard will definitely hide the ...
Thally Ace's user avatar
2 votes
Accepted

Making mediaserver immediately scan a file created through ADB

Okay, it seems the answer is trivial. My fingers don't have to lose the comfort of typing adb push, yet I would be able to cause media scanner scan my pushed file, automatically and immediately. Here'...
Firelord's user avatar
  • 24.9k
2 votes

Hide media on external sd card, lollipop and above

by renaming a file from filename.txt to .filename.txt (add a dot "." before the name) you will hide the file. I.e. it will not show up on any file explorer, (unless it is set to show hidden files.) ...
Abraham Murciano Benzadon's user avatar
2 votes

Force specific folder to be added to Photos?

Delete the .nomedia file to force media scanning ( restart the phone. It is then that media scanner database is re indexed ) and it should appear in Google photos folder list for sync. If you don't ...
beeshyams's user avatar
  • 40.3k
2 votes

How to permanently disable mediaserver service?

I am not a programmer by any means, but Adups might be the issue. They were in the news today for installing software on phones that dumps data from your phone regularly into a Chinese server. Heres ...
N00b's user avatar
  • 21
2 votes

Streaming audio files from SMB (or AFP, or NFS) share to DLNA receiver without resampling

If anyone else is seeking for a similar solution, I think doubleTwist player uses a combination of android's media scanner and it's own directory scanner to import music. So the method with mounting ...
mnd's user avatar
  • 163
1 vote

/system/bin/mediaserver and /system/bin/drmserver dont want these but Android disagrees

This is a really old question but I have an answer for anyone wondering.If you do not care about playing DRM-protected content, just replace /system/bin/drmserver with an executable file that does ...
Stallman's user avatar
1 vote

What are the best 3D scanning mobile apps?

In order to do true 3D scanning you'll need a phone or tablet with a depth scanning technology. Without it, the sizes and/or positions won't be correct. Google Tango (was Project Tango) delivers 3D ...
Morrison Chang's user avatar
1 vote
Accepted

Hide media on external sd card, lollipop and above

I believe SECRECY will do what you want; I haven't used it for a while, but from what I remember it encrypts files on the SD card and doesn't need root. Note: the app is no longer available on Play ...
ash's user avatar
  • 214
1 vote

.nomedia file not hiding newly created images. Solution?

I'm having the same problem in android 6.0 but only in the pictures and movies folders and subfolders. My solution is to remove a recreate the .nomedia after each new download! However if the folder ...
davidmr's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible