yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] El Porcharo:
MTP

For quickly copy/move files from the device to the PC or the other way round! ;)

OPPO Find 7 QHD (X9076) on ColorOS 2.1.2i Beta (Lollipop 5.0.2).

I get my MTP ****ed up as well: been blaming xposed for the last 2 months, while found out just now that this problem is usally given by modules. Well, your module is not actually the only one breaking my MTP but those other 3 or 4 are forget on version 1.0 which is around 1 year old and seem to be abandoned project. I can leave without!

But yours is quite a bit more important than those, so here is a complete LOG of the system booting after enabling the module, grabbed with Oppo LogKit method.

The strange thing is that if the module is enabled, my Find 7 is not shown at all in Windows, while if I just disable it, the device appears under My Computer but it is empty. If I uninstall the module, all comes back to normal, with the Find 7 appearing in My Computer as a media device with both internal and external storage inside it.

Hope it helps.

SEE YA!!! :cowboy:
[Xposed Framework Modules] xdax1:
Using Samba instead of MTP

I am root on my LG G3, how do I run a samba server on my Android Kitkat, so I dont have to use MTP again? What app to use?

Thanks guys
[Xposed Framework Modules] tapa_t:
http://xdaforums.com/android/apps-games/app-samba-filesharing-server-android-t2803452/post53869540#post53869540
[Xposed Framework Modules] xdax1:
got it thanks
[Xposed Framework Modules] bladecgn:
Same here... please fix those two problems as I really like this module very much.

Lollipop 5.1 / Cyanogen 12.1
[Xposed Framework Modules] daniu:
Hi,

I do not have this problem and gotta say: for me personal, besides Xprivacy, this module is the most usefull available for xposed. My scantime is less than half a minute whereas it felt like my phone was being slow for the first 5min after booting before using this module.

Thank you Thomas!

regards
[Xposed Framework Modules] falubazowo:
App works awesome. But IT would be better with widget that could trigger media scan.
[Xposed Framework Modules] Mau669:
hello, i dont know if anyone can help me, ive been using this module for about 3 weeks and everything was fine, but today when i connected my phone to my laptop, it didnt show up at all, i figured it was the module because i disabled it and then i was able to connect to my laptop. Am i doing something wrong here? i have it set up so it only scans .mediafiles on certain folders.
[Xposed Framework Modules] daniu:
Commeon ... just read a bit before posting
[Xposed Framework Modules] Mau669:
thanks that really helped me solve my problem
[Xposed Framework Modules] Curious Boy:
It makes Media tranfer protocol(MTP) cant connect to PC.please fix this!
[Xposed Framework Modules] Zeuszoos:
Hi,

I tried this module before and had to stop using it, because since it doesn't require Root, it won't scan;

/system/media/audio/<sub-folders>

And since some of the functions of the devices (at least mine, anyway) use sounds from there and they're no longer scanned (and without Root access for the app you can't tell it to scan there), some functions lose their sound altogether and sometimes crash because of it.

I'd like to try it again, as other than that the benefit was easy to see, but has that been addressed yet???

Thank You
[Xposed Framework Modules] daniu:
Hi

Just checked ... indeed - there are audio files in that folder and I do use them. But I would not want these files to be scanned in my library and they never were scanned even before I used this module - I am pretty sure cause I often listen to music randomly across my whole library ...

Which apps cause the problems? Is it possible that you need to/can choose the audio files in another way? I mean: before you chose them through the library but maybe there is another way? When I set the ringtone I can chose the sound from library or from ringtones ...

Do you get what I mean? Still no idea why your phone would scan those directories without that module

Regards
[Xposed Framework Modules] Zeuszoos:
Daniu,

Sorry about the lack of quoting. I'm using the web site (mobile view) and for some reason (and yes, I do know how to use it), it has recently just stopped quoting when I tell it to quote the poster. Weird! :)

Anyway, I sould respectfully disagree with you and say that from the default factory setup, gour device was scanning them. If it weren't, then your device couldn't use them.

The reason they're there, is because (at least with Samsung) they are the sounds used for the required factory apps, like when your phone rings, etc.. Again, I'm talking "Day 1, out of the box", not after you've changed them.

They're put there, so that they'll be safe from noob users deleting sound files they think they don't want and ending up with an error and no ring sound when someone calls. Remember, phones don't come Rooted, with user access there. :)

And remember, everything the factory gives you gets installed into the System area. Even apps, because that's where a ROM installs stuff. And so, "Flipboard" becomes a System app. :)

As for me, beford I changed my phones default ringtone, I had tried this app and when someone called, I had a problem!

So I disabled this app, rebooted and looked at what the ringtone was. But when I went into my Ringtone & Notification folders, I did not see that sound file. So I did a search and that's how I found out that there is a "Media" folder there, with Ringtone/Notification folders under it and guess what? The sound file was in its "Ringtone" sub-folder!

I then reenabled this app and tried to include that System Media folder (since I'm obviously Rooted), but it didn't see it.

That's when I stopped using this app. Not because I couldn't pick different ringtones, etc., but because for some weird, strange reason, every "once in a blue moon", my ringtone would revert back to the factory default, which was guess where? :)

But I did really like this app! And I really want to use it! So it'd be nice if it could be set to scan there too. :)

But it may be doing that now, because I've been running it for a few days now and I put a ".ScanMedia" file there and it has been fine, but I have no clue what will happen if my ringtone reverts back again.

What people often don't realize, is that (at least on Samsung) if a ringtone/notification was not part of the scan, then pointing something to it won't work. It has to be included in the scan.

TTYL
[Xposed Framework Modules] dario_pet:
I had the same problem with MTP and this module, and what I did was to went back to version 1.3 and the problem was solved, now I can have this module enabled and use the MTP on Windows 7. I hope this is useful for you :)
[Xposed Framework Modules] JCDentonMale:
I just found that this module was preventing me to use MTP... Took me a few hours before I realized that problem was not computer side. I had the idea to use aLogCat to see what's going on, and it lead me there. I was using version 1.4.0. Uninstalled it for now as long as this bug is not fixed.
[Xposed Framework Modules] xuefer:
Unfortunately the author wont fix this bug
[Xposed Framework Modules] -Jonny-:
Is there much difference with 1.3? I cannot find a change log.
[Xposed Framework Modules] dario_pet:
Honestly, I haven't found any differences between them. Go ahead with the downgrade :good:
[Xposed Framework Modules] dimm0k:
is there any way to get a list of directories and maybe files of what was scanned? I don't know what happened, but my scan times jumped from 4 mins to over 10!! help!

I am using FolderMount to mount /storage/extSdCard/DCIM under /sdcard/DCIM, but I told FolderMount to exclude the second folder from scans... wondering if that option is broken or not.

EDIT: looks like the best thing for me to do is to use the .scanMedia option... but this raises a few questions.

1. does .nomedia still work if .scanMedia is enabled? from what I see it does and they both cancel each other out?

2. what actually makes it into the Media Store Contents? is it only a list of media files (pictures, videos, movies)? do non-media files get scanned as well?
[Xposed Framework Modules] pathologo:
On my system Media Scanner Optimizer very often forgets its settings and so Android scans the whole SDcard again instead of only the folders with a .scanMedia file.

As a last resort I now had to disable the automatic scanning.

Is development of this Xposed module still in work?
[Xposed Framework Modules] xuefer:
Will you make it open source?
[Xposed Framework Modules] CanMan1:
1.37 is working on my Note5 LL 5.1.1 with Xposed 78.0. I haven't tried MTP, or the customized scanning options though. I only use it to control when to scan.
[Xposed Framework Modules] xuefer:
can you please add support for adding custom scan path so i can add folders hide deep in without scanning its parents?
[Xposed Framework Modules] Portgas D. Ace:
You can use .noMedia, .scanMedia and so on as described in the OP. This way you can manually control which pathes to scan and which not.
[Xposed Framework Modules] xuefer:
yeah i know. that's what i do for now. but it's hard

apps tends to make new folders (for new version need it?), it's hard for us users to keep an eyes on what sub folders it created or will create in the future.
[Xposed Framework Modules] xuefer:
unexpected behavior

enabled .scanMedia restrict and MediaType

problem 1: i have no idea on how to scan a directory with only limited media is scanned

\Music\.scanMedia

\Music\.scanPictures

\Music\test.mp3

after delete+scan, test.mp3 still appears in Music Player

\Music\.scanMusic

\Music\test.mp3

after delete+scan, test.mp3 is not in Music Player

===============

problem 2: .nomedia (or .noMedia) works but folders is scanned

no way to scan a folder except some sub folder

root@pisces:/sdcard # find Music

Music

Music/.scanMedia

Music/sub

Music/sub/ringtone.mp3

Music/sub/.nomedia

after delete+scan, test.mp3 is excluded from media player correctly, but when i delete again, XMSO says 6 files which means all files is scanned under Music/ folder, it just won't "recognize" sub/* as media file

and yes this is android behavior when .nomedia comes in play, but it's some directories contains huge amount of files, scanning it would be slow

actually what i want is to scan some deep sub folder but not its siblings, so here comes the 3rd problem

=============

problem 3:

test/a/b/c/d/

test/a/b/c/e/

test/a/b/c/f/

i'd like to scan everything under folder d, but not everything else under test

it's impossible in current version

proposed fix:

write "a/b/c/d" in test/.scanMedia, and XMSO pick it

Version: this is 1.4.0

[MENTION=3542212]thomashofmann[/MENTION], please take a look
[Xposed Framework Modules] maz-1:
I am unable to get mtp to work with this module enabled(tried both 1.3 and 1.4).

My phone is xperia z1 compact with stock lollipop.
[Xposed Framework Modules] cybernetus:
Mtp is a know issue.

Enviado de meu LG-D805 usando Tapatalk
[Xposed Framework Modules] trivita:
this module is broken with latest xposed framework v81. tested on cm13.
[Xposed Framework Modules] Portgas D. Ace:
Works fine for me. Xposed v81, AOKP (CM13-based). A log file as well as information about your device would be helpful.
[Xposed Framework Modules] trivita:
will post the xposed log later.

what's the version of the module you're using btw?
[Xposed Framework Modules] Portgas D. Ace:
Latest one from Xposed repo (1.4.0).

But Xposed v81 is known to cause issues as it introduced a new API. Modules, that aren't designed to work with this API, might crash. So try using Xposed v80 and report back if the issue still persist.
[Xposed Framework Modules] trivita:
surprisingly

with the latest cm13, the problem is gone.
[Xposed Framework Modules] gggirlgeek:
Really sad about the MTP connection problem. :crying: I LOVE this module.

Thank you for the hard work on it. It has spoiled me with fast reboots. Now I'm determined to find another solution because my normal boot-time is unbearable. However, transferring gigabytes of movies just isn't going to happen without USB.
[Xposed Framework Modules] avi312singh:
Will this work on marshmallow?
[Xposed Framework Modules] daniu:
Well - here it does

Sent from my x-phone using brain 2.0
[Xposed Framework Modules] shaktishekhar:
View attachment 3787462 Xposed Media Scanner Optimizer v. 1.4.2 MTP FIX Tested on Android – Marshmallow 6.0.1 Cyanogen Mod 13 Latest 18th June 2016 Nightly on One Plus two

Unofficial build (OLD UI) But works Perfectly 0 error logs
[Xposed Framework Modules] daniu:
What's special about this build?

Sent from my x-phone using brain 2.0
[Xposed Framework Modules] shaktishekhar:
it works in 5.0+ with MTP
[Xposed Framework Modules] earthspiritraven:
Unfortunately I seem to be having issues with this module. I've already tried versions 1.4.0, 1.3.7 and the version in post #577 above (in that order) and I get the same behaviour. It installs correctly (i.e. no warnings or fails) and the settings are as follows (1.3.7 UI):

Repetitive scans: true

Service importance: true

Thread priority: true

Directories: true (for this I have set .scanMedia and no scan files)

Media types: False

Run automatically: False

Androig Logging: True

Xposed Log: True

Neither tapping on "Trigger MediaScanner" or "Delete Media Store Contents" elicits any action/notification. Checked in what I believe is the XMSO log (/data/data/app.name/) but I only find /cache /lib/ and /shared_prefs. First question, is XMSO located somewhere else? Have not yet pulled a logcat.

Device particulars are:

Sony Xperia SP

Android ver 4.3

Rooted

Any ideas why the module is not even triggering a scan? I know for a fact (installed previously) that Rescan Media Root works. But I would like to be able to have much more control on the MediaScanner behaviour.

Thanks
[Xposed Framework Modules] Haldi4803:
Tested on HTC10 Stock Rom 6.0.1

Does not seem to do anything at all :(
[Xposed Framework Modules] shaktishekhar:
may be media scanner is modified in htc stock bec i am on 6.0.1 CM 13 its working perfect all functions no issue

---------- Post added at 06:33 PM ---------- Previous post was at 06:30 PM ----------

XMSO is causing error in hocking with latest system or some incompatible system its a java class function which is automatically called like when remove usb cable from pc
[Xposed Framework Modules] Publiuss:
Hi

There is the device tree for my phone version. :good:
[Xposed Framework Modules] ren0.1:
Is it possible to prevent the media scanner from examining metadata? I'd rather not have it wasting time trying to parse the file content for MP3 tags, MPEG-4 tags, Ogg tags, EXIF/IPTC, etc.

Thanks for the great tool!
[Xposed Framework Modules] dimm0k:
please add this... i was hoping to stop it from scanning at boot originally
[Xposed Framework Modules] thomashofmann:
Yes I will do that. Anyway, scan times at boot can be reduced quite well. There is a reason for scanning at boot. Any files that have been removed on the filesystem are matched and the associated entries are deleted from the media store if not on the filesystem anymore.

For frequent reboots it does make sense to provide the option to disable the scan at boot although.
[Xposed Framework Modules] thomashofmann:
I will.

I am not sure. I need to have a look. I think this is done in native code.

Does it work for you?
[Xposed Framework Modules] dungeonshard:
Not work in gt-n7100 with ditto note 4 rom [emoji17]
[Xposed Framework Modules] Prasad98:
Great!

The XPERIA 2011-2012 line had a media scanning bug and this module does fix it effortlessly!

\m/
[Xposed Framework Modules] fastcx:
Log isn't showing anything, running m7 with viper 701.
[Xposed Framework Modules] HorstiG:
Don't work on Galaxy S3 with Liquid Smooth Milestone KK 4.4.4. In Developer Options I have disabled the Settings for Media Scan.

HGT - Galaxy S3 - S5 - Tesla TTL7 - any KK ROM
[Xposed Framework Modules] dimm0k:
I think you just stated why it wouldn't work...
[Xposed Framework Modules] eruben:
There is such a notification, but no diff in Gallery.
[Xposed Framework Modules] thomashofmann:
If there is no such notification deletion has not worked. Please enable Xposed logging and take a look at the log and post it. Thanks.
[Xposed Framework Modules] eruben:
I wrote there IS. Notification exists.
[Xposed Framework Modules] thomashofmann:
Please try again with version 1.1 and report back.
[Xposed Framework Modules] Droidphilev:
Installed 1.1 (on DU 4.4.4). I get 2 notifications after boot but they both seem to hang at 00:00. I waited for about 5 mins. Deleting contents fails with a popup saying a scan is in progress. I have no clue how long a scan could take on my device though.
[Xposed Framework Modules] thomashofmann:
What do the two notifications say? There is a notification while the scanner is running and one for the result with times for volume internal and volume external.

The ones that show the scanner running will disapear and will be replaced with the ones with the scan times.

If you mention a time of 00:00 that probably means that it is already the result which means that the scan has finished. But in this case deleting contents should work.
[Xposed Framework Modules] Droidphilev:
Will try to explain more in detail (can't reporduce right now, need to be in touch for work):

It starts with 1 notification (external), then the second comes (internal). If i remember correctly the first one starts small and after a while end with 3 scan times (all zero). The second nearly instantly becomes bigger (results also all 3 zero).

I also tried with "directories" enabled and only one directory with .scanmedia. But also then even after 5 minutes i cannot delete storage.
[Xposed Framework Modules] Marx2:
If i want to have scanned only one directory with music, should i create .scanMusic or also .scanMedia?
[Xposed Framework Modules] eruben:
Only .scanMusic. Creating .scanMedia will also scan directory for pictures and videos.
[Xposed Framework Modules] HorstiG:
This setting is available in my ROM (Liquid Smooth Milestone KK 4.4.4) Galaxy S3

What a should I take?

I think this Module is only for Stock ROMs???
[Xposed Framework Modules] scanner718:
does anyone know if there is a module like this as this module still seems to scan on every boot
[Xposed Framework Modules] XDA-00:
Does this work on xposed framework v85 because when I reboot with this enabled, Phone stops responding to buttons, screen does not turn on. Sometimes reboot and reboot and reboot and so on.

Sorry I forgot to take log. I am on CM13 and xposed increases the boot time.

Will post them later if they show up in logs.
[Xposed Framework Modules] daniu:
Here it does ...

Samsung Galaxy s2 with mm

Sent from my x-phone using brain 2.0
[Xposed Framework Modules] XDA-00:
HOW?
[Xposed Framework Modules] daniu:
Nothing special - just installed it

Sent from my x-phone using brain 2.0
[Xposed Framework Modules] xdax1:
new version working for MTP

thanks for sharing this new version v1.4.2, a quick test on my LG G3 running stock based ROM, it's on 6.0 MM and MTP is working.

Thanks again and hope more people will know about this
[Xposed Framework Modules] noisyriver:
Here too. Everything fine with v 1.4.2 on Note 4 Exynos with CM 13.
[Xposed Framework Modules] Mizen:
camera stopped working

Hi dev, the app does work but it causes my camera on lenovo k30-w not working after a few hours or so....I really like the app, it helps prolonged battery much longer so I am grateful if you would make it perfect.
[Xposed Framework Modules] Uriens:
v.1.4.2 solved the MTP issue on my Redmi Note 3 Pro running MIUI 8, thanks!
[Xposed Framework Modules] exec228:
T'was fun to install and watch how mediascanner runs and sniffs at a daylight :cool:

Until I realized that my SIM1 is no sim anymore. "No SIM, please insert" only.

HTC One X+ NoUSA

CM12.1 (Android 5.1.1) http://xdaforums.com/htc-one-x2/orig-development/rom-cyanogenmod-12-international-t2948462

Xposed v86 sdk22 ARM http://xdaforums.com/showthread.php?t=3034811

Disabled all Xposed modules, rebooted: no SIM

Uninstalled entire Xposed framework, rebooted: no SIM

Ought to reset and wipe entire phone, reflash CM12 from scratch... Lost 3 days (with all corresponding stuff).

Just reporting. Not complaining. :o

P.S. Double checked, really. Scanner Optimiser involved.
[Xposed Framework Modules] Spodi2290:
I have a weird problem with a custom TouchWiz rom here. Maybe someone here can help me. By default my scanner processes my internal sd and aborts scanning as soon my external sd is reached (wich is not wat should happen). However if I configure thus module to only scan in folders with .scanMedia all subfolders with this files get scanned correctly. BUT it doesn't scan the root (sdcard and extSdCard) folder, even if a scanMedia file is present there. Anybody knows whats going on, or even has a solution?

EDIT: figured out there is a corrupted file on my sd, that i cant even delete. Maybe formatting helps
[Xposed Framework Modules] GrayJack:
A very nice module, but I have a problem with it on my GT-i9300 (see signature).

The module is active in Framework and the device was rebooted, but the module does not start - no notification, nothing!

Sure manual triggering media scanning does not work also.

Any ideas how to make it work? My second device works with it like a charm.
[Xposed Framework Modules] krzych:
EDIT3: Strange, I did have results with not working mod, and then, with working one. I'll test it much more thorough before stating anything here again. Maybe it has to "settle"?
[Xposed Framework Modules] grossdm:
(I know this is three years old, but...)

It's not only you who gets confused with checkboxes that change their description when toggled!

I think that I've seen a few of these that were fairly intuitive. I.E., I understood what would happen with ON vs. OFF.

I suspect that devs have a challenge in "authoring" the text for the two descriptions.

That still leaves us with the question of __why are the descriptions changing__?

If you've gained any insight in the last a few years, please share them.

Doug®

P.S.

I have an example of a *good* checkbox.

Bold title for checkbox:

"Display aaa in the app header."

Descriptions:

ON: "aaa will be displayed."

OFF: "aaa will not be displayed."

But they are rarely that easy to understand.

?
[Xposed Framework Modules] alwynjoshy:
Is this module useful on oreo? I mean does using this on oreo make any difference
[Xposed Framework Modules] -Jonny-:
It didn't work for me on Oreo. The library want fully built unless I removed this module. It was fine on Nougat though.
[Xposed Framework Modules] imonxda:
Anyone still have v1.4.2?
[Xposed Framework Modules] MariferC:
Here:
[Xposed Framework Modules] imonxda:
@MariferC

You Rock!
[Xposed Framework Modules] thomashofmann:
That is not correct. If you choose to scan only certain directories you need to add the. scanMedia file to tell the scanner which directories should be scanned. In addition if you also choose to restrict scanning to certain media types you may add. scanPictures for example.
[Xposed Framework Modules] thomashofmann:
The first one I think.
[Xposed Framework Modules] eruben:
Oh, my mistake. Then it solves my problem too)

Thanks for a useful app mate.
[Xposed Framework Modules] marbulas:
Could you make the pro version?

Paypal doesn't accept donating paymant of my country :(
[Xposed Framework Modules] shivadow:
Any chance of another link for the mods seeing as xposed server is dead and 1.1 shows as invalid link. Xda and xposed have been acting dodgy all weekend.

Thanks.

EDIT: 1.1 link works now through tapatalk. I must have jumped on it too soon.

EDIT2: xposed_error_20141117_181640.log

https://docs.google.com/file/d/0B4vTiHTBB629OUJjblFPWXdJMG8/edit?usp=docslist_api

Media scanner crashed with 1.1. All media still appeared. I have a galaxy s3 i9300 4.3 mk6 stock rom with agni kernel.
[Xposed Framework Modules] thomashofmann:
Version 1.1.1 with less verbose logging posted. Please post logs with errors here.

I am aware that it still does not work on all ROMs. I tested on one of my other phones and I will fix it as soon as possible.