yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] this-is-me:
[MENTION=5292510]XspeedPL[/MENTION], would you please add a feature to simply send a media button instead of (I'm assuming what you're doing is) sending an intent? I ask because I don't like having to choose between apps to send the play/pause function to. If I choose "-" as the app to send messages to, 3 apps start trying to play music on my phone. On the other hand, if I specify one and another is already running when I press play/pause or next, then the wrong app gets the notification. For example, let's say I'm offline most of the time (which is true), and my offline music app is Apollo. Then, sometimes, I am online and like to listen to music through Pandora, Spotify, or Google Play Music (which is also true). If I set Apollo as my default app, then when I try to change tracks with my phone off, GPM or Spotify or Pandora get bumped off for Apollo. If I set the default app as "-", then multiple apps respond, and nothing works properly.

All of this could be solved by sending the default media keys. For example, in CyanogenMod, or with GravityBox, I can enable long press for media next/previous from the volume buttons. This function emulates the media buttons from an attached keyboard. In all circumstances, this works properly. If no music is playing, then one app gets the signal and runs with it.

It is the same if I use a physical bluetooth keyboard with my phone. If there is no music app running, and I press play, music starts playing from ONE of my apps (Apollo). If there was already one running like GPM, then that app is paused and resumed as it's supposed to be.

If you would do this, multiple problems would be solved for me. Thanks.
[Xposed Framework Modules] Xspeed:
What you're talking about basically is an ordered intent broadcast, which can be enabled via setting '-' as receiver and turning on alternative signal sending method.
[Xposed Framework Modules] this-is-me:
[MENTION=5292510]XspeedPL[/MENTION], Sorry, it's not the same. When I use the method you mentioned, I have ArmAmp and Apollo both trying to play at the same time. However, when I use a bluetooth keyboard's media play key, it only plays Apollo (as intended).
[Xposed Framework Modules] Rom:
The lasted version won't work on my CyanogenMod 10.2 :(

With an old version, it worked but nope now, can you fix it it please ?

(For french traduction, i will update it Monday or Tuesday) ;)
[Xposed Framework Modules] :
hello xspeed. I have a bug/problem that I just wanted to report. my ace 3 works with your program and the stock Samsung music player. I assigned skip/back/Pause to volup/voldown/home, everything works. then with the screen off I use the buttons like normal, but after 3 or 4 presses the thing stops working, sometimes. about 50% of the time it works normally, when it doesn't, it just vibrates, then does nothing and the music stops. then I press the Home button and when the screen comes it'll immediately do whatever command (play/pause/skip) I gave it.

For example I listen to a song, the screen is off. then I press volup. it vibrates, nothing happens. then I press home to bring the lockscreen up, then you can see for a fraction of a second on the lockscreenmusicwidget the song that played last when the last command was issued, then it executes the command that was given before it 'froze' and the next track will play and i turn the screen back off. only to have it happen again after 2 or 3 or even the next track skip.

somehow the command gets "stuck". it feels like it has to do with either the stock Samsung music player being stupid (i guess i could install another music app, it's just that you can't delete the stock app not even with root uninstaller, and i don't like having 2 apps that do the same), or somehow android being stupid and giving the music app a lower priority or moving it to the background after a while or something, because as I said the first 3 or 4, or sometimes 7 or 8 commands it does flawlessly, then afterwards it only works sporadically and I have to turn the screen on and off again to make it do the command. it is not a very big issue because I can still do everything in my pants without taking the phone out, but it is annoying.

I use the latest pbmc 2.5.1 and android 4.2.2

oh and also i tested whether the command would issue after a while after getting stuck, and yes, sometimes, after 30 seconds, or even a minute, it will play the next track. maybe you know why it is thinking so long.
[Xposed Framework Modules] Xspeed:
If you just say "it doesn't work" I still have no idea what's wrong.

I need debug logs (refer to the first post).

Most people face this problem, more or less. In my case the delay takes up to ~2 seconds.

It's just the way Android works while "asleep". Apps get killed/update less frequently to save battery.

Some ondemand/smartass baseed CPU governors heavily reduce CPU speed while the screen is off.

Also, if your device has a small amount of RAM, it can take longer to process the signals.

But, you can force your music player to stay in memory:

http://xdaforums.com/showthread.php?t=1012330

http://www.themobimag.com/how-to-keep-an-app-in-memory-on-android/

I might implement this as a feature for older devices, I think ^^
[Xposed Framework Modules] :
I was looking far and wide for apps in the Play Store called 'task', 'process', 'priority' etc etc to keep Music player 'active' but didn't find anything like that, exactly what I was looking for! Thank you very much.

well I hope at least.gotta try it out.
[Xposed Framework Modules] Rom:
Ouppppsss :P

Sorry i will put my log ;)
[Xposed Framework Modules] Milandas01:
sir can use it on my micromax a116 :)
[Xposed Framework Modules] Xspeed:
Every device with Android from 2.3 to 4.4 with Xposed installed will work ;)
[Xposed Framework Modules] :
hmm couldn't get it to work.first solution with the gscript, gscript throws an couldn't create directory error although it has all su etc rights and second solution didn't work either, although I put the music app and layer the music process and everything with music in the local file. reboot, no difference.oh well.
[Xposed Framework Modules] Xspeed:
Try setting the oom_adj in Terminal Emulator:

su
pidof {your_player_package_name}
echo -17 > /proc/{pid_of_process}/oom_adj

...or you could wait for the new version that will include this as a feature ;)
[Xposed Framework Modules] Thekungfosing:
Upgraded to 2.5, excellent stuff. Might be pushing my luck, but it'd be easier perfect if that if the phone calls whole listening to music, the headset button answers or hangs up instead of controlling the audio.

Too much?
[Xposed Framework Modules] Xspeed:
So, if there's an incoming call, the original key functions should be restored?

Good idea, added to THE TODO LIST ;)
[Xposed Framework Modules] onesolo:
I've been using this module for a long time, but since 2.5 there is a lot of bugs showing up...

Until Saturday I was on 2.3, no problems at all... then I updated directly to 2.5.

My main use of this app is when I plug any cord on the headset jack, to start immediately playing a music, using Google Music.

But with 2.5, when I entered my car, immediately they both connected via Bluetooth (without plug in the cable on the 3.5mm jack) it starts the music!!! At first I didn't knew what was happening, but then I remembered that maybe it was due to PBMC latest update!!! I entered to see if there was any option for that, after connecting to a bluetooth headset or something similar... I couldn't find anything on the options for that. I decided to disable the module, and there it was, no more the music started after my N5 connnect via bluetooth to my car!!!

Also, there is some conflict with Gravitybox... when I touch the wifi statusbar quicksetting tile, it immediately paused the music...

Also, the latest 2.5.1 does not appear os the versions of PBMC...

Anyone??
[Xposed Framework Modules] Xspeed:
Well, I can assure you that nothing changed about Plug & Play feature since 2.0, but I never thought about handling wired and wireless headsets diffrently. Maybe I should start :P

About the GravityBox... well, I know there are problems when you enable button overrides in GB when also using PBMC, but WiFi quicksetting tile shouldn't have anything to do with PBMC. Sounds like a GB bug, does it stop also when PBMC is disabled?

And finally, you say that you can't download 2.5.1? Somehow I see that others can download it, since the download counter increases. Try downloading it manually from Xposed site then, as it fixes a serious issue with 2.5.
[Xposed Framework Modules] Rom:
I have full update the french traduction and find why it won't work on my phone :laugh:
[Xposed Framework Modules] Thekungfosing:
Yep, that's it...
[Xposed Framework Modules] onesolo:
The 2.5.1 does not appear on the version on the module download list... only the 2.5

Of course, going to the http repository page, I downloaded the 2.5.1 apk.

Yesterday I truly made the test to see if those problems above appear or not.

First, I downgrade PBMC to 2.3, this last saturday (12 of July) was the version that I had installed before upgaraded to 2.5.1.

I first uninstalled the 2.5.1, then installed 2.3 and rebooted. I reconfigured everything again and then I start my car and after the phone connected to the bluetooth (it connects automatically) no more it started the music on google music.

I then did the same for the 2.4 and 2.5 version. always with rebootings, uninstallings and setting up the settings on PBMC. On both version, the moment my phone connected with my car via bluetooth, the music start it again.

I also uninstalled the apps that I had installed over the last days... but that didn't affect anything...

About the Gravitybox, on the 2.3, if I plugin the cord on the phone and then I pull the notification bar and touch on the wifi quicksetting (it turns on or off), right away pauses the music. But not always happens that...sometimes after a few seconds stop happening that. This is a minor problem, cause most of the time I don't go and turn on or off wifi. Also, I think this doesn't happen on 2.5.x

I'm now stuck on 2.3, but that's ok to me... as long as 2.3 keeps working... too bad that you don't think there's a problem (the BT bug) with the module. something as changed for sure... sometimes there's weird conflicts, this is one of them, and I know that it doesn't happen with everyone even if there's a person with the same setup like me... but it sure happens with me...
[Xposed Framework Modules] tobbbie:
First let me say thanks for this great module and its versatile setting options. Still there is room for more though...

My current problem is with the initial activation of the music player. It seems that the first signal "play/pause" when headset is plugged in is swallowed and does not reach my player - as also the activity has to be started first. Could you please introduce a configurable delay between start of activity and sending the play/pause? This could be asked for at the pop-up where the starting of activity is set, e.g. like: "delay sending play/pause after activity start.

Like requested earlier already, I would also like to see different handling between headset triggers, at least between physical and bluetooth. Optionally it could also depend on the BT connected device, so to handle Stereo Headset different from the car.

P.S.: I also lost the button settings when upgrading to 2.5.1 from 2.3 - but this is no major thing if it does not repeat with each update.

---------- Post added at 12:17 AM ---------- Previous post was at 12:10 AM ----------

One more thing: I noticed that your module's icon is enlarged in the Settings when using the "Xposed Preferences Injector". Looks a little weird there, but is not creating problems otherwise. - just to let you know. After some time and scrolling in the list it looks normal again - not sure what is the reason for this.
[Xposed Framework Modules] Johnny Broccoli:
Tried looking and haven't seen anyone else bring it up yet, so here's something I noticed with the latest update: when you enable the PBMC button configurations to work all the time (i.e. even when the screen isn't off), it deactivates the ability to take a screenshot via stock Android method (hold volume down and power button simultaneously).

Great module though, still using it.
[Xposed Framework Modules] sithjedi333:
Hi Xspeed,

Thanks for a great module here.

I'm running a Note 2 on Verizon with the debloated/deknox/deodexed 4.4.2 from here

http://xdaforums.com/showthread.php?t=2765021

Also I'm running Wanam but without the longpress button mod checked.

One issue I've run into is with Google Play music, I set volume up to fast forward, and down to play/pause. If I pause, I can hear a hiss indicating the app is active for a few seconds. Then it turns off and the hiss disappears as the app goes inactive. After that, I when I press play/pause, it doesn't get recognized. I've tried several signal send option/alternative signal sending mode combinations, but none have worked.

Just wondering if anyone else has faced a similar issue or has a recommendation.

Thank you.
[Xposed Framework Modules] Xspeed:
2.6

Sorry for the EPIC delay with this update ppl, I have been too busy and then lazy last week :P

This update introduces some requested nice features:

Enjoy!
[Xposed Framework Modules] Rom:
Hey, thirst, thanks for update :good:

But now i can't open the settings menu of PBMC :crying: (apps crash..)

Any solutions?

EDIT: After my S3 Mini crash (reboot 2 times..), i have uninstall the app and re-download/install lasted version from xposed repository and its fully working ! :)

EDIT 2: I have finish update the french translation :)
[Xposed Framework Modules] Xspeed:
Thanks for the report, I've overlooked a bug related to the conversion from checkbox preferences to checklists.

Fixed 2.6.1 also contains your updated translation, thanks mate!
[Xposed Framework Modules] Rom:
Ahhh ok i see :cowboy:

Last update fix bug, i deepen french translation :D

EDIT: I have finish update french translation :)
[Xposed Framework Modules] Blizzard22:
Somehow 'send play/pause signal when un/plugging headphones/headset' doesn't work anymore. I've already deleted data and cache of the module and tried several options out but it still does not work. Here is my Xposed log and my logcat.

Hope it helps:

http://dl.dropboxusercontent.com/1/view/t4v8k2on2cggupz/Public/PBMC2014-07-26-22-31-18.txt

http://dl.dropboxusercontent.com/1/view/p8fkkv93pwhnq0x/Public/xposed_error_20140726_222903.log
[Xposed Framework Modules] Xspeed:
Thanks for the report! I was able to quickly fix that.

Man, I hate when something doesn't work literally just because there was a '1' instead of '0' in one place :eek:
[Xposed Framework Modules] Rom:
Thanks for update, now french translation is perfect :angel::cowboy:
[Xposed Framework Modules] Blizzard22:
Newest update fixed the problem.

Thank you based XspeedPL!
[Xposed Framework Modules] babydown:
I tried it on Z2 with Walkman (single press focus key to go to next song) but it didn't work, how about config for Z2, thanks !!!

My config are :

Mapping : Focus Key - Single press : next media

Setting :

- Capture mode : Screen off + lookscreen

- Signal receiver : Walkman

Did I config wrong something ???

Also I tried other config but it still didn't work.

P/S : In log of xposed, it show

PBMC : Processing key FOCUS down

PBMC : Processing key FOCUS up
[Xposed Framework Modules] Xspeed:
Xperias have a "special" camera button which sends "FOCUS" key on half-press and "CAMERA" key on full press.

So, if only "FOCUS" shows up, it can possibly mean that:

a) You're not pressing the camera button strong enough

b) Your camera button is broken/doesn't respond

Can you take pictures using that button? If not, then it's broken. But if you do, then I have a serious problem.

A possible temporary workaround could be to set the FOCUS mapping instead of CAMERA.
[Xposed Framework Modules] jacklul:
Oh man, I just updated from early versions and it's crazy, on earlier versions setting "do nothing" worked fine, now even when I set it my device still uses it's primary function, same issue, holding to make a track change changes track and rapidly changes volume. Checked up the logs and they are no different from my previous sent ones, multiple entries for same event on button hold and then multiple "creating delay event" for same key. Seems like key remapping doesnt work on my device (already tried other modules).
[Xposed Framework Modules] JorgeRamirez_P:
2.6.2 Bug

Hi man, today i updated the app to the 2.6.2 version and when i plug the headphone my phone (Nexus 5 - KK 4.4.4) restarts.

I downloaded the 2.6.1 version and works great. That's a good application, I had searched for a long since I changed my old phone with cyanogen. Thank you :good:
[Xposed Framework Modules] rorwal:
Borked

The module was working fine when I first installed it earlier this week. That was probably 2.5.1. Not sure if the update killed it or it was dead already, but now the buttons do nothing.

Running stock 4.4.4, set volume buttons to run Google Play Music with holding the buttons triggering next or previous track with headphone plugged in and screen off.

I can't post links to pastebin yet (too few posts), so here's the log file:

-----------------
Jul 28, 2014 12:01:20 AM UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'KTU84P' with fingerprint 'google/hammerhead/hammerhead:4.4.4/KTU84P/1227136:user/release-keys'
Loading modules from /data/app/com.haoutil.xposed.xled-1.apk
Loading class com.haoutil.xposed.xled.XposedMod
Loading modules from /data/app/tw.fatminmin.xposed.minminguard-1.apk
Loading class tw.fatminmin.xposed.minminguard.Main
Loading modules from /data/app/ma.wanam.youtubeadaway-1.apk
Loading class ma.wanam.youtubeadaway.Xposed
Loading modules from /data/app/com.ceco.gm2.gravitybox.volumepanel-1.apk
Loading class com.ceco.gm2.gravitybox.volumepanel.ModVolumePanel
Loading modules from /data/app/xeed.xposed.cbppmod-1.apk
Loading class xeed.xposed.cbppmod.PhysicalButtonMod
PBMC: Android version 19
PBMC: PWM init
PBMC: ABC intent
PBMC: Processing key VOLUME UP down
PBMC: Processing key VOLUME UP up

EDIT: Turns out if I downgrade to 2.5.1, it works again.
[Xposed Framework Modules] babydown:
I understand what your mean but focus camera button is exactly button I want use (not camera button) :laugh: . And my focus button and camera button are still work normal.

Sorry for my bad English :(
[Xposed Framework Modules] RogerBlack:
after updating to 2.6.2, i plugged in my headphone and the phone rebooted. it went on a bootloop until i removed the headphone

proceeded to reinstall the app and it didnt work at all. none of the older versions are working

please help

xperia SP 4.3 stock

Sent from my C5303

E: for some odd reason, 2.6.2 works fine now...i am confuse but oh well, it works
[Xposed Framework Modules] rkdku:
Would it be possible to play/pause media by holding the volume up and down buttons simultaneously?

It's just that I have my power button configured to start/stop the flashlight whenever I hold it, so it would be awesome to be able to play/pause media through some other physical means (and as holding the individual volume buttons triggers track changing), whilst the screen is off of course.
[Xposed Framework Modules] smfazel:
Sorry poor EN

Great module! But it cause some lags on system

When I play a music and do other works, the player exit
[Xposed Framework Modules] Xspeed:
Could you provide LogCat/Xposed logs? It would help me fix the problem.

Could be related to the new telephony feature, I'll look into it.

EDIT: Check your 'Device Selector' preference in 2.6.2, it might have been reset and cause the problem.

Then why don't you remap the FOCUS key instead of the CAMERA key? :P

That's something I have in plans, but those plans don't really have any ETA.

To allow combined keypresses I'd need to rewrite the whole app again.

LogCat/Xposed logs, if you could.
[Xposed Framework Modules] smfazel:
Give me an email address.
[Xposed Framework Modules] Xspeed:
If you don't want to post them here, send me a private message.
[Xposed Framework Modules] smfazel:
I tried to send here, but It's too long
[Xposed Framework Modules] smfazel:
Sorry, the issue is not for this module
[Xposed Framework Modules] Thekungfosing:
Updated... The app is now perfect! Well done mate!
[Xposed Framework Modules] evilmastr:
2.5.1 is the latest version that works for me for some reason. Later versions do nothing regardless of what I choose in settings. (logs show that the key is captured but nothing happens in new version)

Was something changed or is it just some random bug?

Skickat från min HTC One via Tapatalk
[Xposed Framework Modules] tobbbie:
Uninstall and reinstall to get a fresh start with 2.6+
[Xposed Framework Modules] Adtrix:
Hi there!

When I update to 2.6.1 or 2.6.2 every function of the PBMC does not work anymore. 2.5.1 is completely fine. My device is Note II with ARHD 4.4.2.

Wysłane z mojego GT-N7100 przy użyciu Tapatalka
[Xposed Framework Modules] Xspeed:
This may be related to the bug in settings conversion from 2.5 to 2.6: check the 'Device selector' preference, if it doesn't have anything selected, it won't work.

Well, this way also works ^^
[Xposed Framework Modules] :
Not working here, I selected the volume up button to play/pause media, I've restarted and it just changes the volume up. Please help me, Moto X 4.4.3 Stock. Here is the log:

https://www.dropbox.com/s/pihm138yaevninl/error.log

Thanks.
[Xposed Framework Modules] Xspeed:
Check the 'Device selector' preference.
[Xposed Framework Modules] :
It's working now. Thanks a lot [emoji1]
[Xposed Framework Modules] TopperHarvey:
Love the mod. Only thing is it doesn't work when the screen is off. Works fine when its off+locked and always so not sure what's going on.

'Device Selector' is checked. Reinstalled and rebooted.

Running android 4.4.2 btw
[Xposed Framework Modules] oroboros74:
Bug (?): Duplicates under 'Signal Receiver'

Under "Signal receiver" I have duplicates, even triplicates, of some apps showing up in the list. Is this a bug?
[Xposed Framework Modules] Xspeed:
Turn in the settings debugging on, switch to the 'screen off', then try to use the keys.

After that send me the log from Xposed (read first post).

This will help me fix the problem.

I never considered that possibility. It's not a bug, it's just that apps can have "mamy" media players built in.

I will add a distinction method soon ;)
[Xposed Framework Modules] babydown:
How can I disable vibration when press button ???
[Xposed Framework Modules] barnabydog:
Settings>Duration of Vibrations>set to 0 milliseconds
[Xposed Framework Modules] babydown:
I found it, but it was in "Pick an action -> Use vibration"
[Xposed Framework Modules] NExUS-97:
?

WHAT ABOUT SUPPORT OF KITKAT?:confused:
[Xposed Framework Modules] HorNy555:
Like zik Zak even I'm facing the same issue.. Phone restarts the sec I plug in the earphones.. Sony Xperia SP...
[Xposed Framework Modules] zik-zak:
Try previous version

Uninstall Physical Button Music Control from your applications.

It will fix the problem.

Try using the previous versions, Not sure whether it will work or not.

After this problem i am not able to use this app either in latest version or the previous version.

:(
[Xposed Framework Modules] Xspeed:
As far as I know, it is supported.

If you could, provide LogCat logs, so I may be able to investigate the issue.
[Xposed Framework Modules] zik-zak:
I have pasted the xposed log above this post.

How can i give you the logCat ? i have no option to paste link in my post :(

and unable to attach log file, because it exceeds maximum upload limit of 512kb :(
[Xposed Framework Modules] Xspeed:
Either trim the begging of the file (since I only need the last ~200 lines anyway) or upload it to some kind of storage service like MEGA.