124

I have LG L5 (e610 model) device with Cyanogenmod 10. When I connect the phone to a computer with Linux (I have mtpfs installed), I can see both internal storage and the SD card. However when I navigate inside them, I can't see some of the files.

For example, if I open file manager app on the phone, I can see several files in the Internal storage/Notifications directory, however the directory on the computer only shows one of those files.

If I switch USB connection type to PTP (camera) - as OS X doesn't support MTP natively - Image Capture sees the phone as a camera, however it can only see about a third of all the images present on the phone.

I don't have a Windows machine to try, but I suspect the results would be similar.

I tried upgrading Cyanogenmod to the latest nightly, clearing and reinstalling it - same results. Any idea as to what is going on? How can I make all files appear on the host computer?

Firelord
  • 25,084
  • 20
  • 124
  • 286
Aleks G
  • 1,353
  • 3
  • 12
  • 12

9 Answers9

78

This is apparently a known bug in Android which is not even acknowledged by Google since Oct 2012, bug #2 — depending on the method of creating files on the Android device, these files may remain invisible when accessing the device using MTP, until the device is rebooted.

Known workarounds include:

  • Use USB storage mode instead of MTP, if it is supported by the phone. This is apparently not an option for LG Optimus L5 (e610), because this phone has unified internal storage (file storage is in /data/media on the same ext4 filesystem as /data), which cannot be exported as an USB storage device.

  • Clear data of the “Media Storage” app, then use the SDrescan app to rebuild the media database (discussed here).

  • Share files over the network using third-party apps such as AirDroid or one of Samba server apps (in the latter case you will need to have root to make the server reachable from most clients, including Windows).

cweiske
  • 203
  • 2
  • 13
Sergey Vlasov
  • 2,759
  • 19
  • 27
  • 1
    While it might not work for the internal SDCard, there might be a solution for the external SDCard enabling UMS :) – Izzy May 29 '13 at 15:58
  • On my Nexus 5 was enough to reboot after clearing data of the “Media Storage” app. Thank You. – eapo Dec 14 '16 at 23:14
  • 1
    As I don't have enough reputation yet, I'd like to add another option that worked for me: copying the files via "adb pull". Basically, this means that I quit trying to use MTP, it does work well, but the problem is that it seems to work well, but I can't trust it anymore. – Charles Roberto Canato Dec 17 '16 at 12:21
  • 1
    The best workaround I found is to install SSHelper (an Android ssh server) and rsync from the Linux (or windows) computer. Use USB tethering for fast connection. Explained in detail in this answer. – Organic Addict Dec 25 '16 at 12:56
  • Had a mini heart attack when I though that clearing data of the media storage app had deleted my images. The index of images didn't appear in the gallery or via windows explorer. Rebooting did rescan and allow me to access files via windows explorer once more. SDrescan was garbage and crashed when I opened it. – iyrin Sep 26 '17 at 03:13
  • 1
    Reboot worked, and this apparently did a rescan. (Acer T07 phone with Android 6.0). No additional app or clear-data needed. – Roland Jan 01 '18 at 14:48
  • 2
    Current bug report: https://issuetracker.google.com/issues/37071807 – tuxayo May 10 '19 at 16:24
  • 1
    Seems they fixed it last year ^^^^^ - finally.... Android 11 should not have the bug then – Edw590 May 05 '21 at 15:57
36

Go to settings > apps > all applications > media storage > tap 'clear data' ...

Reboot and everything will appear in Windows Explorer once again.

ScoobyDo
  • 361
  • 3
  • 2
  • 1
    Thanks for your answer. Note however that (1) you did not add anything new that wasn't already in another answer; (2) there's no need to clear data in media storage at all; a simple reboot does the trick. – Aleks G Dec 24 '13 at 15:31
  • 5
    @Aleks G actually this was the best and most direct (quick) instructions that worked for me. It's a good answer :). I didn't need to use SDrescan as said in the other answer, (thank goodness), and I DID need to do the exact thing this answer said - rebooting did not work in my case. –  Mar 28 '14 at 05:30
  • 6
    On my nexus 5 latest update the Media Storage is app is hidden, You must select "Show System Apps" from the menu in the apps screen in order to find the media storage app. YMMV. – Nir Levy Feb 10 '16 at 20:23
  • I'd just like to add that (at least, on the Marshamallow ROM I'm using), clearing Media Storage data does work for redisplaying most files, but still there are files which don't get displayed. Yes, it's almost 2017, these are already old question and answers, and this problem still exists. – Charles Roberto Canato Dec 17 '16 at 12:17
17

Similar to ScoobyDo's answer

  1. Disconnect the USB cable from phone.
  2. Click 'Clear data' on the Media Storage application.
  3. Then 'Force stop'.
  4. Reconnect the USB cable to phone.
  5. The Media Storage application is restarted and rebuilds the media list.
  6. Missing files are now available.
  7. This avoids rebooting, which was important for me.

Your mileage may vary

mtopley
  • 271
  • 2
  • 2
  • 4
    My mileage varies :) On my Xperia Z1 with Android 4.3, the Media Storage app restarts after reconnecting USB, but doesn't start rebuilding the media list. The phone appears on my desktop, but shows no files. I have to actually reboot the phone in order to rebuild the database. It would sound like the quickest solution though, for those devices on which it works! – Daniel Saner Jul 22 '15 at 09:24
  • Nomu S30 mini has no "Media Storage" app, yet same problem occurs. – Engineer Jan 26 '21 at 09:04
5

I'm running a Galaxy Note 3.

The solution to the problem I found was by using the Android file browser and moving the folder/file i had downloaded to another directory that wasn't as cluttered.

This enabled me to see the 50mb .rar file I had downloaded and pulled it onto my PC.

I don't know if this solution will help anyone, but it worked for me.

Thanks all :)

End Anti-Semitic Hate
  • 4,400
  • 23
  • 61
  • 100
WideG3cko
  • 51
  • 1
  • 1
2
  1. Disconnect your device from PC
  2. Movie file To other directory like "Playlist" via file manager
  3. Now, connect again your device and do your stuff with your files :)
2

Go to Menu > System Settings > Storage

  1. Unmount SD card and press "OK"
  2. Mount SD card

You will see Scanning media files on SD card... in the notification bar. This means you are fine and the stuff in SD card is rescanned so you can see them now :)

Ilo
  • 86
  • 3
1

Tried the "Media Rescanner" app @georgiecasey linked to, but it did nothing. However, simply renaming the folder that was missing using a File Explorer app on my phone from "Music" to "Music1" did the trick - it showed up immediately in Android File Transfer. Simple, quick, dirty :)

The folder can easily be renamed back when you're done transferring. Easy solution for those one-off transfers, perhaps not the best one for often recurring ones though.

Magnus
  • 621
  • 3
  • 9
  • 24
0

All I had to do is restart the android device. In my case a lenovo tablet, model A10-70F, Android version 6.0.

AlikElzin-kilaka
  • 532
  • 2
  • 7
  • 12
0

This is how I solved this problem on my Galaxy Note-3:

  • Install FTP File Server Application on your android device
  • In your computer: Map network drive -> Add network location -> Choose FTP site -> enter the ip address of the FTP server
  • Connect (unanimously or by ID) to the "Server" and you'll be able to access ALL folders and files in the android device.
  • Thanks for the answer, but that's not going to help in my circumstances, as (1) I don't have a windows machine; and (2) the policies on our desktops explicitly block outgoing ftp connections. – Aleks G Aug 31 '14 at 09:01