I've been having some uber strange issue with MTP since I've cleared the MediaStorage.apk's data.
I've used several apps for media rescan and so on, the phone itself finds the media (even some extra...), but when I connect it to my PC/laptop in MTP or PTP mode, I get most of the directories on the /sdcard looking like an unknown file rather than a directory.
Here's a screenshot so you can see what I'm talking about.
I can't access these directories by any means on a computer (tried with several).On the other hand I got no issues accessing them on the phone itself by any file manager.
I've also ran fsck.f2fs on /dev/block/platform/msm_sdcc.1/by-name/userdata
and just in case e2fsck on /dev/block/platform/msm_sdcc.1/by-name/system
in CWM via ADB.
Any ideas how to fix this?