yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] vsa:
Hi

->SOLVED :good:

You are absolutely right, sorry my fault. There is an option somewhere to disable mediascanner in my slitly modded custom rom (dr. ketan v14 for GalaxyNote2 on 4.4.2). Thank you for helping. The first scan worked. Delete - worked. A new triggered scan worked too. Seems to work now ;) Thanks for your support. I will test this module and report in a few weeks...

vsa
[Xposed Framework Modules] HorstiG:
Don't work on Galaxy S5 with Liqiud Smooth ROM 3.2 Milestone KK 4.4.4

HGT - Galaxy S3 - S5 - Tesla TTL7 any AOSP ROM
[Xposed Framework Modules] amit.bagaria:
Thanks. Working fine now. However, see exceptions in Xposed log, every few minutes.

http://pastebin.com/eg2niV66
[Xposed Framework Modules] Haldi4803:
Again... is it a Bug or a Feature that the Notification does NOT show up when you take out the microSD card and plug it back in?

[YOUTUBE]Plm3XdQVoXM[/YOUTUBE]
[Xposed Framework Modules] itandy:
Sorry to inform you that the latest version 1.2.1 has the same problem again (incomplete scan). I had to fall back to 1.1.3 which works so far.
[Xposed Framework Modules] gabberhans:
Stuck on external memory?

So, on my internal memory it seems to work fine and ends in 1sec. Nothing much on there anyway. On my external memory it shows the very first directory in the notification, that doesn't change. I even set all to . nomedia - still.
[Xposed Framework Modules] thomashofmann:
Please provide the Xposed Log. Check Xposed Loggin in XMSO first.
[Xposed Framework Modules] thomashofmann:
Found the bug and will be fixed with upcoming version 1.3
[Xposed Framework Modules] thomashofmann:
Please provide Xposed Log (Enable logging to Xposed Log in XMSO first) and if possible logcat too.
[Xposed Framework Modules] thomashofmann:
I havn't tried this yet but I would expect a notification. Please provide XPosed Log (enable Xposed Logging in XMSO first).
[Xposed Framework Modules] thomashofmann:
Version 1.3 is out

Please provide feedback for version 1.3. You can now disable automatic scanning for the external volume if you wish.
[Xposed Framework Modules] Droidphilev:
Thomas, can you tell me: in the earlier version the scanner only scanned right after boot and that it's, correct?
[Xposed Framework Modules] thomashofmann:
No it scanned whenver requested by the system to do so. This is the case after booting and when any volumes are mounted / remounted (which I would expect to happen when an SD Card is inserted for example).

Actually, it is more complicated. An application can always tell the scanner to scan a single file. This is useful and should always be allowed. The time consuming scans are the ones where everything is scanned.
[Xposed Framework Modules] Droidphilev:
Ok, so the new disabling feature works for all these "triggers"? or only after boot?
[Xposed Framework Modules] thomashofmann:
Everthing except the scan for a single file should not occur if you uncheck "Run automatically" and of course user triggered scan from withing XMSO app.
[Xposed Framework Modules] thomashofmann:
Yes it seems that HTC has used a different method signature in there code. It is difficult to determine what it would be the correct one to use. I'll think about what can be done. Can I download that ROM from somewhere?
[Xposed Framework Modules] fastcx:
http://venomroms.com/htc-one-m7/ get version 7.0.1
[Xposed Framework Modules] psaico:
I want to scan only the folder /storage/emulated/0/DCIM/Camera with the file .scanMedia but at reboot the process the process "android.process.media" has stopped unexpectedly and the gallery shows pictures also of other directories in DCIM (including WAPP, facebook, screenshots etc ...)
[Xposed Framework Modules] bonny_k-9:
I want to say that Cm11 M8 when loading media scanner encounters an error.
[Xposed Framework Modules] thomashofmann:
Without a description and logs I am unable to do anything. Please enable Xposed Logging in XMSO app reboot, go to Xposed Installer Log section and provide the log. Please also include your ROM and device and the XMSO version.
[Xposed Framework Modules] mak381:
Hello,

manually triggering a media scan does not work on my S5 (stock rom) with latest versions of media scanner optimizer.

I reinstalled v1.0 and it works fine.
[Xposed Framework Modules] thomashofmann:
I had a quick look at the HTC implementation. It is very different to the others (AOSP, CM). I will need more time to think about what would be the best to do.
[Xposed Framework Modules] thomashofmann:
Looks good the image from WhatsApp is not scanned as desired.

Also looks good. Only /storage/emulated/0/DCIM/Camera is being scanned.

I can see no problems in this log.

You will see all other stuff in gallery because it is already stored in the media store. To get rid of it you will need to delete the media store contents from within the XMSO app first and then let the scanner run again. Then only the contents of /storage/emulated/0/DCIM/Camera will be in the Gallery.

You also said that the process was crashing. For this I seem to need a logcat as the Xposed Log does not contain anything suspicious.
[Xposed Framework Modules] fastcx:
Perhaps you can study how they implement it, if it is efficient(compares to other current ways, cm, aosp) , do let me know.
[Xposed Framework Modules] freeza:
Hi. Great module. However, I'm a bit confused by this option. It says repetitive scans but under it says prevent repetitive scans. Does unchecking this prevent repetitive scans or leaving it checked?
[Xposed Framework Modules] Droidphilev:
selected=prevent :)
[Xposed Framework Modules] thomashofmann:
That's correct. This only has an effect on some (maybe older) ROMs.
[Xposed Framework Modules] inscythe:
Hi, this media scanner control issue is the main reason why I avoid using Play Music, so I was really excited when I found this thread (Android Wear music player can only be controlled using Play Music). However, I did find certain complications.

First, as I said earlier, I'm using Android Wear (LG G Watch R), which somehow rely on media scanner too (perhaps for apps and music). With this module activated, my watch goes into extremely frequent reboots (like 2-3 in 10 minutes or so). Also, whenever I tried to trigger the media scanner or delete the media cache, the android.process.media process FC-ed. I can't find anything in the Xposed log (the module runs fine), haven't looked into catlog yet (I'm at office now).
[Xposed Framework Modules] nicesoni_ash:
When triggering media scanner manually, Media process fc for me. Xposes log is here.

https://www.dropbox.com/s/pqaqnwovy2r2tfe/xposed_error_20141127_115522.log?dl=0

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] thomashofmann:
There are lots of execptions in the log from a different module. XMSO only the last view lines. For FC I need logcat I guess.
[Xposed Framework Modules] nicesoni_ash:
Here is the Logcat for you.

https://www.dropbox.com/s/j5xj53jpkqewa9o/Log_2014-11-27_14-29-01.txt?dl=0

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] kruga:
Hi, sorry for replying so late. Seems the error was related to my system, it worked fine after factory reset. Will use the module and reply back. Thanks.
[Xposed Framework Modules] thomashofmann:
That makes it clear but this bug should be fixed already. Which version are you using?
[Xposed Framework Modules] nicesoni_ash:
I am on latest v1.3 from xposed repository.

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] thomashofmann:
That's interesting.
[Xposed Framework Modules] nicesoni_ash:
Anything else I can provide to narrow down the culprit?

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] thomashofmann:
Hi there, I uploaded version 1.3.1. It is marked as experimental in the Xposed Repo. Please try that and post results / logs.
[Xposed Framework Modules] thomashofmann:
I uploaded version 1.3.1. It is marked as experimental in the Xposed Repo. Please try that and post results / logs.
[Xposed Framework Modules] thomashofmann:
This sound like no media provider is installed or functional in this ROM. Does anything media related like stock Gallery work at all?
[Xposed Framework Modules] fastcx:
Waiting for repo to sync, still not showing in experiment
[Xposed Framework Modules] thomashofmann:
Try again please
[Xposed Framework Modules] nicesoni_ash:
Didn't help, fc still. Here's logcat.

https://www.dropbox.com/s/i96kixbb2xybgul/Log_2014-11-28_16-25-37.txt?dl=0

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] fastcx:
This should do it, seems working
[Xposed Framework Modules] RedDemon:
Yes, it looks like you're right. I've frozen a heap of apps to try to identify and hopefully tune startup delays (the reason I was attracted to this mod), and I can see that when I unfreeze media storage, I'm getting "the process android.process.media has stopped". Can this be resolved?

I've attached the logs this time if it helps, as they're too long for a message thread.
[Xposed Framework Modules] thomashofmann:
Yes it can be solved I'm sure. It comes down to the same problem where the icon resource for the notification cannot be loaded. Some people are reporting this. What I don't understand is you are using stock ROM on the same phone (SGS 4) as I am according to your signature and that is strange or is it a problem with which device and ROM?
[Xposed Framework Modules] thomashofmann:
Besides from the verbose output in XposedLog all is working now?
[Xposed Framework Modules] HorstiG:
Same Problem as always. Galaxy S5,Liquid Smooth KK 4.4.4 Milestone

HGT - Galaxy S3 - S5 - Tesla TTL7 any AOSP ROM
[Xposed Framework Modules] thomashofmann:
Well it seems like I have written above that the only problem left seems to be with the notification icon. I cannot quite explain why this is happening. It is not related to android.process.media in the sense that it would be the fault of that package. In the module I am using my own icon for the notification and that can under some circumstances not be found by android.process.media. It works on all my phones so it is a little bit tricky to fix but I will do.

`

I guess that will not be enough. When you disable notifications only the notification about the scan result should be disabled. You will still get the foreground notification which I expect that you have turned of also?

Thanks for your input!
[Xposed Framework Modules] The_Steph:
I just turned turned off the android.process.media package notification and I am not getting any XMSO notification.

Is com.android.providers.mediauser supposed to be XMSO?
[Xposed Framework Modules] fastcx:
Only one problem left, after delete media library, go for a new scan comes up with this
[Xposed Framework Modules] thomashofmann:
I guess you tapped twice on Trigger a Scan.
[Xposed Framework Modules] thomashofmann:
I see you turned off the notifications for android.process.media in the Android settings. Yes that will help. I thought about turning them off in XMSO app.

Since XMSO hooks the media scanner the notifications from XMSO will have android.process.media as source.
[Xposed Framework Modules] thomashofmann:
The log still shows a problem I did not fix for HTC yet. Will do.
[Xposed Framework Modules] fastcx:
I'm pretty sure I pressed once [emoji28]
[Xposed Framework Modules] RedDemon:
It works ok on my GS4. In facing issues on my TF700T using a CM11 based ROM, the logs are from that device.
[Xposed Framework Modules] Haldi4803:
So, about the Bug when you take out your SD card and Replug it ......... on v1.3 with Sony Stock 4.4.4 Rom .167

Xposed log and Logcat

Grah -.- 512kb txt files -.-

https://robertsspaceindustries.com/media/8sbzbbussd8ver/source/Carrack_side_view_final_Gurmukh.png
[Xposed Framework Modules] thomashofmann:
Please also provide a logcat.
[Xposed Framework Modules] mak381:
build.board: MSM8974

build.bootloader: G900FXXU1ANG2

build.brand: samsung

build.cpu_abi: armeabi-v7a

build.cpu_abi2: armeabi

build.device: klte

build.display: KOT49H.G900FXXU1ANG2

build.fingerprint: samsung/kltexx/klte:4.4.2/KOT49H/G900FXXU1ANG2:user/release-keys

build.hardware: qcom

build.host: SWDD5709

build.id: KOT49H

build.manufacturer: samsung

build.model: SM-G900F

build.product: kltexx

build.radio: unknown

build.serial: 147a9a25

build.tags: release-keys

build.time: 1404364126000

build.type: user

build.user: dpi

version.codename: REL

version.incremental: G900FXXU1ANG2

version.release: 4.4.2

version.sdk_int: 19

11-29 16:21:37.364 V/ApplicationPolicy(925): isApplicationStateBlocked userId 0 pkgname com.thomashofmann.xposed.mediascanneroptimizer

11-29 16:21:37.374 D/XMSO (925): handleInitPackageResources called for com.thomashofmann.xposed.mediascanneroptimizer

11-29 16:21:37.424 E/dalvikvm(7496): >>>>> com.thomashofmann.xposed.mediascanneroptimizer [ userId:0 | appId:10380 ]

11-29 16:21:37.494 V/SmartFaceService - 3rd party pause(925): onReceive [android.intent.action.ACTIVITY_STATE/com.thomashofmann.xposed.mediascanneroptimizer/create]

11-29 16:21:37.564 D/XMSO (7496): handleInitPackageResources called for com.thomashofmann.xposed.mediascanneroptimizer

11-29 16:22:01.094 V/SmartFaceService - 3rd party pause(925): onReceive [android.intent.action.ACTIVITY_STATE/com.thomashofmann.xposed.mediascanneroptimizer/pause]
[Xposed Framework Modules] Chaladino:
Hi, and thank you for this useful module.

Maybe this was pointed out before somewhere it this support thread, (sorry then) , but I've found what seems to be a bug.

this bug occurs after I delete the mediastore, then trigger a manual scan.

after this process, any custom ringtone setting is lost, either for sms or call custom ringtones. (i.e. the custom ringtone setting is reset to its default, losing any change done before)

I believe the manual media-scan should include custom ringtones paths.

This behaviour is annoying, as I have to re-enter the custom ringtones settings everytime I need to delete the mediastore.

Hoping for a fix soon.....Thanks

I run Xposed Media Scanner Optimizer v. 1.3 on a NOTE 3 N-9005
[Xposed Framework Modules] thomashofmann:
Hi thanks for the info. Custom Ringtones are handled differently on all the different devices. I will keep this for the upcoming feature list. Currently I am trying to fix FCs ppl are having still on some ROMs so that at least the module does not crash on these devices.

Just one question. Where do you have your custom ringtones stored?
[Xposed Framework Modules] thomashofmann:
Hi there, I just uploaded version 1.3.2 to the repo.

This version should now fix the one problem still reported for the HTC M7 ROM.

I am still unsure why the media scanner process FCs for some users. I now added some more debug logging so the people with FCs (when notifications are ENABLED) please provide me logs once more.
[Xposed Framework Modules] Spere:
Ringtone / notification sound relys on your device to media store. If you don't have marker file (.scanmedia or .scanmusic) on your ringtones folder, system can't find that file and thus use it (this is why it sets back defaults after deleting media store contents). Add marker file to your ringtone directory and redo manual scan, then it should become ok (it might need you to set your ringtone again after this, if it wont start working itself).
[Xposed Framework Modules] Chaladino:
Thank you for the fast reply.

my custom ringtones are in /storage/emulated/0/Sounds/1

...Maybe then I should move them in a more "standard" path (the default ringtones path ?)

I have not tried it yet, but this might be a fast solution to workaround this anoyance...

anyway I understand your priorities

thanks again :)

---------- Post added at 09:50 PM ---------- Previous post was at 09:10 PM ----------

I just tried this : ticking "media types" in the module menu, + adding .scanMusic to the directory, hoping it would help solve my problem.

but nope !.... it doesn't.

still the setting of custom ringtones / notifications are not retained after a Mediastore delete, and are not restored after a subsequent re-scan, either manual or auto after a reboot.

maybe the ringtones path are in another sqlLite database, relying on the mediastore database content itself ???

So when the mediastore is deleted, any custom entry in the "custom ringtone database" is flushed as well ...???

just wondering....

Thanks anyway
[Xposed Framework Modules] Spere:
I had this same problem with disappearing ringtone (module version 1.0 or 1.1*, cant remember) I run also on v1.3 now on my Note 3 SM-N9005 TouchWiz 4.4.2 with custom ringtone working.

Have my ringtones at /storage/emulated/0/Ringtones/ but why would it matter :o

I got .mp3 ringtone and .scanmedia marker file in there.
[Xposed Framework Modules] thomashofmann:
Add a .scanmedia file if you are restricting the directories to scan. I will look into this when I find time.
[Xposed Framework Modules] Chaladino:
Ok, I tried to move my custom ringtones to the path you specified + a .scanMedia file there, I tried with "directories" ticked and unticked in the module menu, .........no way !

it doesn't work.

Did you tap like I did "Delete Media Store Content" in the module menu, followed by a tap to "Trigger Media Scanner" ?? (this is what triggers the "bug")

for me, any contact's custom ringtone is lost (only the link to the ringtone) after the above operations processed.

Can you try it on your side, and tell me if contact custom ringtone and notification are still as entered before ?

but beware if you have many contact's custom ringtones : on my side, it deletes any personalization so you may have to re-enter all of them. You've been warned

in short, here's how to trigger "my" "bug" :

- choose one of your phone contacts, and edit the lines "Ringtone" and "Message Alert"

change default values to any custom ringtones (not the default ones)

you may optionally check that these custom ringtones are working. (asking your contact to call / sms you)

2 - Go to Xposed Media Scanner Optimizer menu, and tap "Delete Media Store Content" in the module menu, followed by a tap to "Trigger Media Scanner"

after that, go to the phone contact you edited in part 1- and look at the "Ringtone" and "Message Alert" entries : they have been reset, the values edited in part 1 are flushed !!

well, I'm curious if the bug is really triggered or not on your side. I see that you have a N9005 just like me. maybe it depends on the Rom ?

I am on X-NOTE V15 based ND5 4.4.2 + Kernel 3.4.104 AEL v.7.9
[Xposed Framework Modules] HorstiG:
Same Problem, Galaxy S5 Liquid Smooth KK 4.4.4 Milestone

HGT - Galaxy S3 - S5 - Tesla TTL7 any AOSP ROM
[Xposed Framework Modules] Chaladino:
thanks,

No, I am not restricting neither media types neither directories in the module menu.

But I've tried what you said, : to add a .scanmedia, .scanMedia (don't know if the name is case sensitive), .scanMusic,

and with or without ticking "Media types" or/and "Directories" in the module menu.

the bug is still triggered, see my previous post replying to Spere for details of how to trigger the bug.

---------- Post added at 11:54 PM ---------- Previous post was at 11:48 PM ----------

Thanks !! You're Great !
[Xposed Framework Modules] fastcx:
Log for 1.3.2,some noticeable difference n errors in hooking
[Xposed Framework Modules] fastcx:
Still this after delete database n do rescan. It still shows I request to scan twice while I only did once. The scan didn't do anything as it only scan external, not internal. M7 don't have any sdcard slot
[Xposed Framework Modules] Haldi4803:
Guys please!

Either use [HIDE /HIDE] oder [CODE /CODE] tags!

THIS!

OR THIS!

but don't paste more than 15 lines of Log in a post!
[Xposed Framework Modules] thomashofmann:
Could you please provide xposed log and logcat when booting and xmso enabled to scan automatically?
[Xposed Framework Modules] thomashofmann:
External is not only SD card. It is also internal SD card / partition. I know the naming is confusing but it's that from Android. Internal is basically your system partition.
[Xposed Framework Modules] Droidphilev:
I reported the same before but as i see it this is not a bug. If storage gets deleted i guess it is normall that your system doesnt find custom ringtones anymore and that they get replaced by a standard ringtone.
[Xposed Framework Modules] thomashofmann:
Another round of fixes for your ROM in version 1.3.3. Please report back.
[Xposed Framework Modules] fastcx:
It's perfect now ? great job! Any ways for us to donate?
[Xposed Framework Modules] thomashofmann:
Sure use the donate button here in the forum or the donate buttons in the notification or the xmso app. Only PayPal currently though...
[Xposed Framework Modules] fastcx:
Any plans for alternative donate method? PayPal charging policy is kind of sad
[Xposed Framework Modules] nicesoni_ash:
Installed latest version yet still getting fc on manual run. I remember one of your post where u said this could be because of the icon it's trying to show on notification:confused: area and couldn't find it so it fc. In Logcat, "

W/StatusBarIconView( 3072): Icon not found in 2130902785: 7f02ff01

W/StatusBarIconView( 3072): No icon for slot com.android.providers.media/0x1"

seems to point to the same issue I guess. Anyways complete logcat is attached. Thanks.

https://www.dropbox.com/s/9xa0g1ybtfnmega/Log_2014-11-30_20-14-09.txt?dl=0
[Xposed Framework Modules] thomashofmann:
Not at the moment. Paypal charges the recipient only as far as I know. Play store takes 30%. Any other suggestions?
[Xposed Framework Modules] thomashofmann:
That's an interesting log exactly what I was looking for. Can't make any sense of it yet altough. Darn...
[Xposed Framework Modules] nicesoni_ash:
Hopefully something can be done about this. :rolleyes:

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] thomashofmann:
Can you provide me with a link where I can download that exact ROM?
[Xposed Framework Modules] thomashofmann:
Free

Please have a look if Xposed Log contains the log entries that begin with "handleInitPackageResources called for".

And what version of xposed framework are you using?

Does it only happen when you trigger the manual scan? Do you see a notification when the device boots?
[Xposed Framework Modules] nicesoni_ash:
I use the latest stable version of xposed, I guess it's 2.6.1 and no, I don't get any notification and yes, it only happens when I try to run it manually.

There is no handleInitPackageResources in the log I provided.

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] Chaladino:
Ok, if that's so, maybe a setting in the Module menu could somehow protect and prevent the deletion of the ringtones path stored in phone contacts. (or just use backup / restore dialer storage data)

I understand it would somehow make the module a bit more complicated, but ....why not, it this is worth it....
[Xposed Framework Modules] :
My device keeps getting stuck at /sdcard1/Android/ and won't move on (Xposed Media Scanner Optimizer says there's a scan running), and when the result notifications are enabled, the results show with 00:00 on all values. Is this a bug, and is it also the reason for my battery drain?