yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Dj Telo:
I understand that, but that does not explain the fact that the first single press is not detected. It is weird because this is only happening with the power button. I have single click and triple click actions assigned to the headset hook and it works flawlessly.

As a workaround, I have mapped both single and double press actions of the power button to the power button itself when the screen is off (so I don't lose the default action) and the triple click and hold to the torch toggling. It seems that the single press action is more reliable when the double press is also defined. Do not know exactly why...

I am almost there! :P

---------- Post added at 11:31 AM ---------- Previous post was at 11:07 AM ----------

I see that now the previous app function is available but I cannot find the kill app one. Is it available?

Also, it would be great to assign chains according to the app we are on. For instance, with Xposed Additions I have a triple click on the back key to kill an app when the screen is on, but this combination is disabled when my alarm is ringing so I don't kill the app accidentally when trying to snooze it.

Thanks!
[Xposed Framework Modules] onesolo:
Hi there, I just use this module to start play a music, from Play Music, when I plug my earphones on my phone.

Everytime I reboot the phone or I install a new version of Play Music, after I plug the earphones, Play Music refuses to start playing music. I have to manually open Play Music and start the music. After that everything works fine, consequent plugins work just fine, until I reboot the phone, kill or install a new version of Play Music.

Is this a bug or what ?! Can you make it to start playing music no matter what state is Play Music ?!
[Xposed Framework Modules] Xspeed:
I'll try to tweak it a bit for the next release.

I'll add the function, no problem

I assume you enabled the Plug & Play function in settings, set a media receiver and it doesn't work.

Could you send Xposed logs? (see my signature below)

It will help me a lot.
[Xposed Framework Modules] aLexzkter:
Still no luck with the pulse light.

Stupid touchwiz? Maybe it's a kernel thing. I don't know
[Xposed Framework Modules] haax:
Hello,

I would like to add shorctut to add tasks in some app, shortcut works well, it even wakes up my device if it's locked, but I wonder if there could be an option to give PBMC acces to our lockscreen password to avoid entering pin? It would be lovely if keypress would lead me directly to app, without entering pin and unlocking the device.

Cheers!
[Xposed Framework Modules] onesolo:
as I said, it works fine but if I reboot (soft or normal reboot) or install a new version of Play Music, it stops to work when I introduce the earbuds on the phone. I have to enter Play Music and touch play again. From then on, it works normal, until I reboot the phone or install new version of Play Music...

get it??

what I think is that PBMC only works when Play Music is opened in background or foreground. Is that right?! If the app is not running PBMC can't use it, right?!
[Xposed Framework Modules] techdog:
Are you supporting Marshmallow 6.0.1? I am running Vanir 6.0.050216 on a Samsung Gal;axy S3 with the dkp 6.x kernel. Headsethook key does not seem to be able to recognize double and triple presses nor press and hold.

If you're supporting 6.0.1, or if no one else is having an issue with it, I will get you debug logs.

Thanks.

Edit: Never mind. I figured it out... i was not putting the delays in correctly. Very nice job, by the way.
[Xposed Framework Modules] aLexzkter:
You have to enter play music and touch play again (or use play button from a widget, if there's any for such player) everytime you reboot your phone.

There isn't any "last used player" anymore when you reboot your phone.
[Xposed Framework Modules] nonobio:
Hi,

It works. Thanks :)
[Xposed Framework Modules] jimi-m:
Hi, after update to version 4, i lost my previous settings from 3.4 :(((. Is any option to export and import settings?

Odesláno z mého JY-G4S pomocí Tapatalk
[Xposed Framework Modules] Xspeed:
Not between major releases (like 2.x -> 3.x), sorry.
[Xposed Framework Modules] jimi-m:
OK, i go to my previous version. The settings is back :) I dont need newer app, for me ist older good enough.

Odesláno z mého JY-G4S pomocí Tapatalk
[Xposed Framework Modules] xk0niR:
I don´t know if this would be possible but if, it would be so awesome!

Can you make an option for a key which (If pressed) blocks every other key action (maybe black- and whitelist?) except the key which is bind to unlock all keys again.

Little Example to be better understandable:

bind Home longpress blockallkeys

bind Home doublepress unlockallkeys

So if Home is long pressed no key function works except the unlockallkeys option.

Would this be possible?
[Xposed Framework Modules] Xspeed:
I guess I could add something like that. Seems useful enough.
[Xposed Framework Modules] lbssousa:
When I set a press-and-hold behaviour in pre-Marshmallow PBMC versions (e.g. to increase volume), I was able to set the repeat rate when I keep the button pressed (e.g. increase volume 1 step each 300ms until I release the button). However, in latest PBMC, I can't find an option to set how fast or how slow the action will be repeated. All I can find is the amount of repeats for the desired action (e.g. repeat the action up to 3 times or keep it repeating until button is released).

Is that option still available?
[Xposed Framework Modules] Xspeed:
Completely forgot about that. It's not available at the moment, but I'll bring it back with beta7, no worries.
[Xposed Framework Modules] Xspeed:
[MENTION=6933685]lbssousa[/MENTION]

About that feature earlier, should it be per-mapping or global in the settings?

What do you guys think?
[Xposed Framework Modules] Alexey71:
@XspeedPL

Hello. Good module!

If in my headphones, volume button - one press of the increase in volume, long press the next track. After a long press switches the track and volume increases by one point, it's not nice

I'm trying to set up only the buttons on the headset. But it is impossible, they set up everywhere on the smartphone

For the headset button responds ACCDET.kl file that is located in the \system\usr\keylayout\

key 122 ENDCALL
key 163 MEDIA_NEXT
key 164 HEADSETHOOK
key 165 MEDIA_PREVIOUS
key 114 VOLUME_DOWN
key 115 VOLUME_UP

In the module I have not found these buttons
[Xposed Framework Modules] Xspeed:
PBMC lists all keycodes from the KeyEvent class on your Android system.

Info about KeyEvent class here: https://developer.android.com/reference/android/view/KeyEvent.html

In example KEYCODE_ENDCALL is there, but under value 6.

If the values you provided are decimal, then that 122 refers to KEYCODE_MOVE_HOME, for some reason.

Still. if you can't get it to work normally, the only option you have is to edit the preferences file manually. Drop me a PM if you need help with that.

If more people will report this problem, I'll try to implement these custom hardware keycodes.

EDIT: Did you try the key testing tool in the app? DIdn't it catch those keys?
[Xposed Framework Modules] lbssousa:
I vote for per-mapping config (or just a global default config that could be overriden in a per-mapping base).
[Xposed Framework Modules] Dj Telo:
Yes, as long as we have the choice to set it on a per-mapping basis, it will be fine. Doesn't matter if it is active by default and deactivated in each mapping or the other way round. Choice is the key!
[Xposed Framework Modules] sanakess:
Hello, Im change the volume button to media vloume. And than im press them, there are no volume trigger displayed, but volume is changing. Can u fix it, or say how i can controll media volume (not ring) by keys? sry for my english
[Xposed Framework Modules] Xspeed:
If you really need that, use keypress action instead.
[Xposed Framework Modules] sanakess:
in keypress action there are not media volume controll (vol up and down changing ring and notification vloume), im talking about changing media volume, like games, music ,etc. There's an app Rocker Locker do what i need, but it is always active. And CM has the same option.
[Xposed Framework Modules] Xspeed:
Are you sure you are using the latest beta6 version?

I remembered that I fixed that in one of the betas. After testing, I found that the UI is showing when using 'Music volume up' from 'Media controls'.

Either you're using an outdated version of PBMC, or I am going to need debug logs from you to check it for errors.
[Xposed Framework Modules] sanakess:
the version is latest. i make some logs
[Xposed Framework Modules] kos25k:
a veeeery big THANKS to the developer of this great app.one of the best rooted apps.congrats bro
[Xposed Framework Modules] victor2k:
Congrats, it's a excellent module!

Can you add the option for streaming?. I use Chromecast Audio and it doesn't work with it when the screen is off. It's turn up or down the media volume of the music only on the phone.
[Xposed Framework Modules] Xspeed:
I'll see what can be done.

Sure.

Also, a quick heads-up. I've wanted to release beta7 for the past while, but as I started packing more and more new features, testing got things delayed.

Next beta should have all the features requested recently, so stay tuned in ;)
[Xposed Framework Modules] Dj Telo:
Great to see that the wait will be worth it! :)
[Xposed Framework Modules] kos25k:
excellent work!!!I don't know if is only me,but sometimes (rarelly) it happens the same thing as was happening with much earlier versions!I press power for pause,it stops normally,then I press again nothing happens.I press again it starts again but pauses in one second.and finally I press again and starts normally!

Also is it possible to add option to:with button press of bluetooth headset to take picture?I know I ask mich...but just in case!!!
[Xposed Framework Modules] Xspeed:
If it doesn't start right away, it means your device is aggressively forcing itself to "deep sleep". If should try making sure your player app stays in memory and is not killed.

As for the picture, you might need to find an app that can take a picture with a shortcut, then make PBMC launch that shortcut ;)
[Xposed Framework Modules] Elendiar:
awful settings, in old version you just enter and make all u want in few clicks, now is too confusing and difficult and dont work as you wish.
[Xposed Framework Modules] Xspeed:
It's called BETA for a reason. You use it only if you want to help with testing of the new version.

The final version will contain a help section and a guide.

If you want something simple, go for Xposed Additions.

If you want something more customizable and complex, use this.
[Xposed Framework Modules] ytheekshana:
This app is really useful
[Xposed Framework Modules] aLexzkter:
I don't know if I requested this before, or anyone else did, but I'd like to have the ability to choose the notification sound per chain, because sometimes when I'm listening to podcasts I can't tell whether I'm fastforwarding or rewinding. Thanks
[Xposed Framework Modules] kos25k:
one request please!is it possible to add play-pause function when touching ambient light sensor?THANKS!!!!!
[Xposed Framework Modules] Cavernerg:
This one "Support the idea of adding more controls to Spotify" is outdated, isn't it?

Great app anyway! <3

// is it possible for you , to hook on connecting headphones? so spotify can start automatically?
[Xposed Framework Modules] DevXen:
Home key not mapping?

Hello,

In previous versions I was able to map my home key with the screen off to turn the flashlight on and off. In this 4.0 beta 6. When I open the chain I guess it's called now. It doesn't pick up the home button being pressed. And instead exists back to my home screen. - but in the button test tab. It picks it up fine. Is there a way to move that over to the actual chain I'm trying to setup?

In the chain, when I click on keys. It asks for the type of press (1, 2, long, etc.) then where it says what key, it says unknown. I can press my menu, or back Capacitive keys. And it picks those up. But when I press home. My one goes to the home screen. Everytime. Is there maybe a place to manually your in 'Home Key' or something? (my home key is an actual button, not capacitive like the menu/back keys are on either side of it.)

I have the Samsung Galaxy Note edge.

Thanks,

-Dev
[Xposed Framework Modules] Cavernerg:
I'm also having problems mapping the home key properly.

I'd like to overwrite the long-press google-search start with the URI "#Intent;action=android.intent.action.MAIN;component=com.google.android.googlequicksearchbox/com.google.android.apps.gsa.queryentry.QueryEntryActivity;end" (so the keyboard pops up instantly). But until now, it doesn't really work for me. (URI is working)
[Xposed Framework Modules] hackerpower:
I've been using this mod since the beggining and it's awesome and very handy.

Been sticking too older builds on LP because i couldn't get it to work properly with latest builds.

Now i'm on MM and the older build doesn't work, no matter what i do when i try to map a button it always shows the volume panel, i have to change to latest build.

Can someone please tell me how to map these simple commands:

- 1 click volume up or down (this one gets confused with the double click)

- double click to play/pause ( this is the difficult one, already tried advanced chain, etc)

- long press to skip media (the only one that i managed to get properly working)

Thanks in advance.
[Xposed Framework Modules] hackerpower:
[MENTION=5292510]XspeedPL[/MENTION]

In the 4.X version i only have problems mapping the double press! The command always gets confused with the single press! How to solve this???
[Xposed Framework Modules] hackerpower:
When you're in the chain at the bottom do you have the option "cancel original key functions" checked?

Use gravitybox mod, you have the pre assigned option of holding home key in the lockscreen to turn flashlight on.
[Xposed Framework Modules] Errik512:
it does not work when the screen is off

Hello. I have a problem(( on my samsung A3 2016

sometimes it does not work the volume buttons up/down when the screen is off.

in the log this clicks are not visible at all!!!(( but sometimes it works ok with the screen off...

no matter what action maped on volume button. eg. just flashlight.

But home button is no such problem.

on the other phone (philips w3568) its working properly.

Thanks.
[Xposed Framework Modules] duh_org:
PBMC on devices <6.0 crashing when editing actions

XspeedPL: Thanks for all your work on this - it's made the physical buttons so much more flexible! This is a minor bug, so I've already filed a github issue with the fix. 4.0b6 and 4.0b5 are affected, haven't tested them all to see when the change was added.

Everyone else: If you're experiencing this (tap an action to edit, PBMC instantly crashes), it's a code change in the Xposed support library used by PBMC., and hopefully XspeedPL will put out a new build with this fixed soon.
[Xposed Framework Modules] Dant3s:
How can I set single and double click button and make it so it won't react to single click when I want use double click?
[Xposed Framework Modules] jacklul:
Just came by to say that newer versions of this module are again broken for me, last working is 2.10.1 and I'm currently using it, any new version is simply not working.
[Xposed Framework Modules] rorwal:
I get this all the time. I've had to use earlier versions to get them to work (beta 2 in this case). But I just flashed a fresh OS install, and now even beta 2 doesn't work. However, other similar features -- such as Xposed Additions and the built-in CM button media controls -- work reliably. For now, I'm relying on Xposed Additions to control my media player.

Whatever is with this app, it is notoriously unreliable.
[Xposed Framework Modules] Antitype:
Any chance you could add per app handling? This is the feature I really need so Chrome for me can have it's own button usage. I'm using a DualShock 4 and tried remapping buttons for it and it does work. But sometimes I need R1 and L1 just to be it's native function in Chrome to switch tabs.
[Xposed Framework Modules] Dj Telo:
This is something I miss from Xposed Additions. Good idea!
[Xposed Framework Modules] Wxcafe:
Controls won't work in podcast addict?

Hey, I've been using this mod for about a week (I've always been on CM before, which doesn't need this kind of things) and it works great with vanilla music but not with podcast addict for some reason. Since the CM music controls work fine with podcast addict afaict, I probably made a configuration change somewhere that broke something but I can't figure out what for the life of me.

Here's a bit of log to show that the action is sent to podcast addict, afaict :

07-23 02:16:13.366 I/Xposed ( 1209): PBMC: Delay handler - Started
07-23 02:16:13.366 I/Xposed ( 1209): PBMC: Delay handler - Sleeping 500ms before Next track
07-23 02:16:13.407 I/Xposed ( 1209): PBMC: Delay handler - Interrupted
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Processing key Volume Down down mode 1 (audio 1, play 1, tele 1)
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Checking next chain: Next track
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Checking next chain: Original vol-up
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Checking next chain: Previous track
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Action of chain Previous track enqueued
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Checking next chain: Original vol-dn
07-23 02:16:13.411 I/Xposed ( 1209): PBMC: Checking next chain: Play / Pause
07-23 02:16:13.412 I/Xposed ( 1209): PBMC: Cancelling original key Volume Down
07-23 02:16:13.413 I/Xposed ( 1209): PBMC: Processing function of chain Play / Pause
07-23 02:16:13.414 I/Xposed ( 1209): PBMC: Got 11 recent tasks
07-23 02:16:13.414 I/Xposed ( 1209): PBMC: Delay handler - Started
07-23 02:16:13.415 I/Xposed ( 1209): PBMC: Recent player: com.bambuna.podcastaddict.activity.PodcastListActivity
07-23 02:16:13.415 I/Xposed ( 1209): PBMC: Delay handler - Finished

I activated the "remote commands" tickbox in podcast addict (settings -> player -> remote control) but I have no idea what other settings might help.

Thanks for your help
[Xposed Framework Modules] aLexzkter:
Both Podcast addict and playerfm work perfectly for me. Touchwiz Marshmallow here. Same thing on aosp roms too.

-Media signal receiver: use last media player.

-The actions I use are "keypress (media next, media play/pause, etc) " not "media controls" The latter has never worked for me.
[Xposed Framework Modules] Wxcafe:
I switched to the key press media actions and it works perfectly! Thanks a lot. I should do a bug report I guess, is there a tracker?
[Xposed Framework Modules] Errik512:
Plz help! Dont work volume buttons when screen off (((

Samsung A3 2016
[Xposed Framework Modules] Errik512:
depending on the wifi on/off

Plz, make different actions depending on the wifi on/off

Or profile switch ex Home/Home out
[Xposed Framework Modules] rodgoe:
Executing mapping causes soft reboot on One Plus 3

Hi, I hope this is the right place to put this report. I've been using PBMC for a long time without issue on my galaxy s4 running 4.4. So when I recently upgraded to a One Plus 3 running 6.0 I was glad to see PBMC was compatible.

Unfortunately, whenever I execute a mapping it causes my phone to crash and do a soft reboot. I've tried uninstalling/reinstalling enabling/disabling the module etc. with no luck fixing the issue. Below is the Xposed log right up until the crash, hopefully it can be of some use.

Phone specs

- One Plus 3, Android 6.0.1, OxygenOS 3.2.2

07-30 05:10:23.294 I/Xposed (13703): PBMC: Android version 23, module version 58
07-30 05:10:23.304 I/Xposed (13703): PBMC: Debug log is enabled
07-30 05:10:23.305 I/Xposed (13703): PBMC: Sound URI: content://settings/system/notification_sound
07-30 05:10:23.305 I/Xposed (13703): PBMC: Light: ffffff for 100ms
07-30 05:10:23.306 I/Xposed (13703): PBMC: Keychain mappings: 6, maxlen: 3
07-30 05:10:30.715 I/Xposed (13703): PBMC: IM instance acquired
07-30 05:10:30.784 I/Xposed (13703): PBMC: PWM init
07-30 05:10:31.292 I/Xposed (13703): PBMC: NMS light acquired
07-30 05:10:44.053 I/Xposed (13703): PBMC: ABC intent
07-30 05:10:44.056 I/Xposed (13703): PBMC: Found 10 media players
[Xposed Framework Modules] Errik512:
all the while with the 21.43.22 to 21.44.06 I pressed the button several times, but nothing happened((

Samsung A3 2016, I try install android 6.0 but same...
[Xposed Framework Modules] slater_g:
Awesome app! I use it to override my volume buttons and always change media volume.

Would it be possible to show the volume slider then? Currently the volume is changed corretly, but no slider is shown (as before when media volume was changed while playing media content).
[Xposed Framework Modules] ZeroTheSavior:
The app works for the most part, but a few issues:

- I can't figure out how to delete a keychain.

- Volume buttons when screen off no longer work normally if I add a hold keychain for screen off
[Xposed Framework Modules] ValeV008:
Hey,

I have a problem with this module since I updated firmware to newest one (23.5.A.1.291). I forgot to make backup of my apps, so I had to re-download them, including xposed and all modues (PBCM included). Before update this module worked perfectly fine, with no problems. After update, nothing works. Yes, I have rooted device, xposed installed and PBCM enabled. Tried restarting 3 times. The problem is, NOTHING works now. For instance, "hide app icon" doesn't do anything (icon is not shown regardless if checkbox is checked or not). Debug logging doesn't work as well (nothing shows up in log file).

Is there a way to completely erase this module, including all settings? I have a feeling this might work, since settings weren't erased after firmware update, which might make module nonworking.
[Xposed Framework Modules] Dj Telo:
How is the further development of this MOD coming along?

---------- Post added at 10:34 AM ---------- Previous post was at 10:31 AM ----------

You need to remap the key to its original function also.

For deleting... I cannot figure it out myself either... :S
[Xposed Framework Modules] 20degrees:
This was my exact problem after updating my rom. Thanks a lot.
[Xposed Framework Modules] helpplease123:
keypress camera doesnt work using the camera button. I programmed it for pause/play and it works, but when holding the button, the original camera keychain doesn't work. If I am right, it used to work correctly without the module in a Z1, but I tried this because the default automatically directs to the superior auto mode.
[Xposed Framework Modules] helpplease123:
I forgot to add and clear it up,

Keypress Camera doesnt work. It cant be used as the shutter button anymore. But if you turn off the module, it works fine. Even if I turn off the quick launch option (which I dont think isnt necessary because the module can cancel functions) it doesnt work. The volume keys has two functions as well but it works, unlike the camera. I think its the keypress, it has a different executable.

Edit: I got the camera app to open by selecting it in the other options. However, it wont launch on lockscreen. Cant use the button as a shutter either
[Xposed Framework Modules] Spookymyo:
For those having issues, go back to version 3.1, it's a lot better IMHO. It is a lot simpler. All original button functions work automatically without having to remap them and any function can be deleted easily. The camera works on the lock screen, volume buttons work normally, etc... I've tried every version 4 update and keep going back to version 3.1.
[Xposed Framework Modules] illwafer:
Latest version working awesomely on LG v10 with MM when all the other apps did not work.

Thank you!
[Xposed Framework Modules] Blizzard22:
Upgraded from 3.1 to 4.0 b6 and my previous profile seems to be working fine except for my "press and press hold" volume button to pause the track does not work anymore no matter how I configure it.

It worked in 3.1 so I guess this is a bug?

Just tried out 3.1 to confirm it's working there.

The native hold up/down to skip seems to be disabled im 4.0 b6?

Logcat:

https://drive.google.com/file/d/0BzhcK4DLVxsNRkxQUkhsVmlXMVU/view?usp=drivesdk