yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] andrewilley:
I did a bit more checking while testing a different Lollipop ROM, and the DeviceID values seem to vary between alternative Android variants on the same hardware - although they are at least always different between the physical device volume keys and the three-button headset's +/- buttons.

I would suggest simply adding one extra line to the 'Keys' setup page. Thus when the user taps 'Change', in addition to displaying the 'Current Key' name that has just been tapped, the page would also show the live detected value for DeviceID. Once that's visible, a simple tickbox next to it would either enable or disable a DeviceID matching requirement for that keypress. I would suggest the default should be disabled, as it wouldn't be needed 99% of the time, and forcing an unnecessary numeric match could cause problems if a firmware update later occurs and the reported DeviceID number changes.

Looking forward to having something to test whenever you get a chance to get around to coding this.

Andre
[Xposed Framework Modules] Xspeed:
I really could use some UX specialists :(

The UI is getting too complex, even for me lol.

But yeah, a toggle to check device ID or not.

Imagine making cross device keychains :eek:
[Xposed Framework Modules] Phoenix09:
could you add a "toggle do not disturb" action?

I'm using Tasker at the moment but it occasionally takes ages for the task to actually be started (not saying it's this module, it seems to be a Tasker "feature")
[Xposed Framework Modules] andrewilley:
I admit when I first installed PBMC I initially found it a bit tricky trying to work out what exactly I needed to do to set up a new 'chain', and then Save it as a live item. However once the principle had sunk in, it's pretty neat and very flexible indeed. There's always a learning curve when there are a lot of options.

I'm still trying to work out how to modify that URI to send those simple one-digit command intents (from a few posts back) to Poweramp though, I can't figure out which bits need editing and which bits are only relevant to triggering the playlist shortcut and can be dropped. Any help in understanding the syntax that PBMC uses would be very welcome.

Andre
[Xposed Framework Modules] -Rye-:
Just saying: "Thanks for this awesome app"

Most reliable tweak since 1st time I installed XPosed two years ago.

Amazingly useful
[Xposed Framework Modules] andrewilley:
So I'm guessing no one here is using this feature? Any suggestions on where I could look for some basic help in formatting these URI commands, ideally in step-by-step format?

Andre
[Xposed Framework Modules] swedespeed7:
I literally cannot live without PBMC. I freaking love this module. THANK YOU so much!!

Question - will there ever be any chance of developing it for use outside of Xposed? Will it always require Xposed to work?
[Xposed Framework Modules] andrewilley:
That is a good question actually. This module is the only thing that is forcing me to continue using Xposed, however the presence of Xposed breaks Google's SafetyNet system which it would be really nice to get back.

Andre
[Xposed Framework Modules] Xspeed:
Maybe I could help you out, but not here. I'll write you a PM soon.

To be honest I use Xposed mainly for PBMC too. Only other way of doing stuff I can think of would be to make a framework patcher or something similar, but then again that would require system modification, so no SafetyNet either way.
[Xposed Framework Modules] andrewilley:
Thanks, will continue by PM and I'll post a summary here for other users if I manage to get it doing what I want.

Using Magisk for root (which I do) it is apparently quite possible to use its Hide mode to pass SafetyNet. However it won't work if Xposed is installed too. But yes, any mods to the system folder are likely to complicate passing SafetyNet. Would it work as a Magisk module I wonder?

Andre
[Xposed Framework Modules] swedespeed7:
I too wonder if it'd work with Magisk...
[Xposed Framework Modules] Infy_AsiX:
The telephony in-call condition doesn't seem to work for me. The other two conditions; idle and ringing work fine. I'm trying to set an end call shortcut for during a call. I'm on stock Sony 6.0.1. Thanks for any help.
[Xposed Framework Modules] xmxm:
Is it possible to map a physical button to a combination of key presses? For example, map Vol- to Shift+Space or Control+J?
[Xposed Framework Modules] Xspeed:
Thanks for reporting this. Thankfully I own a Xperia myself so I can look into it. I might have overlooked something since I've never used PBMC in-call.

Not right now. Upcoming version will be able to do that and much much more :)
[Xposed Framework Modules] Antitype:
Can you add a per-app filter?
[Xposed Framework Modules] romirom:
Great app! All i can say! but with a bug...

When can we expect newer "upcomming" version - days, months, years...

I just want to use my old HTC one V as an mp3 player, but on ICS rom PBMC crashes when i want to edit the chain. Anyone found the solution to that? Will it be fixed in the next release?
[Xposed Framework Modules] Xspeed:
The feature is ready for the release, once I finish the UI the new version will be out.

About a month I suppose, and it will be out.

That being said no one ever reported chain edit crashing. Could you send me a logcat?
[Xposed Framework Modules] romirom:
It has been reported earlier https://xdaforums.com/showpost.php?p=67616343&postcount=1037

Did a bit of testing - [in beta 6] on my HTC one V (ICS) and Xperia Neo (JB - custom) when i launch the app and choose to edit/add a chain or go into settings it crashes. On one V i installed beta 5 and for me there is no issue (as opposed to duh_org (who reported earlier)). Logcat is in the attachments (first i tried to add a chain, then go into settings).
[Xposed Framework Modules] mangesh raut:
Will it work on nougat (7.1.1). I trued using it and it didn't intercept any keys that I pressed. I tried it with device keys and wired headphone keys.

Please tell me am I using it wrong.
[Xposed Framework Modules] swedespeed7:
Sorry if this has been answered, but what is required to use this module on Nougat?
[Xposed Framework Modules] Xspeed:
I am using it on my Xperia X (7.1) right now, send me your Xposed logs, maybe we can figure something out

Well, the Xposed Framework has always been, and still is, the only requirement
[Xposed Framework Modules] mangesh raut:
I have attached Xposed log with this, it will be a big help. Thank you.
[Xposed Framework Modules] Xspeed:
There's not enough information in that log.

Enable the module in Xposed Installer, reboot the device.

Then enable "Debug log" option in PBMC settings, add some key chains in PBMC, then try using them.

Export the Xposed logs after that.
[Xposed Framework Modules] swedespeed7:
When I tried it with the unofficial nougat Xposed, PBMC opened, but did not intercept buttons. Do you recommend a certain installation of Xposed nougat? I thought there were a few floating around but I could be wrong.
[Xposed Framework Modules] mangesh raut:
That's the problem! I can't map any of the buttons while creating the chains. no matter what button I press, it does not show up. I tried using headphone's buttons and mobile's volume rocker. The same is the problem with using it. I've attached a zipped video with it for clarification.

Will you explain, how to use it to me? if I'm using it wrong like I'm not sure.
[Xposed Framework Modules] Xspeed:
[MENTION=6080712]swedespeed7[/MENTION] [MENTION=6011852]mangesh raut[/MENTION]

Listen, since you can't add chains normally, you could clear PBMC app data, then after you open it back up, choose the options to add default suggested chains.

Then enable the Debug Log in options and reboot.

After your device boots and your superuser has finished initializing (about a minute or two) try pressing the volume buttons with the screen off.

Then go to the Xposed Installer and export the logs. They should have a line containing this text:

PBMC: Android version 25, module version 58

If it doesn't, something is wrong on a deeper level.
[Xposed Framework Modules] swedespeed7:
Gotcha. Nexus 5X running PureNexus ROM. I tried several different versions of PBMC but it won't recognize any of the hardware input. Must be due to Xposed hooks not working. PBMC crashed several times too.
[Xposed Framework Modules] mangesh raut:
Brother is not showing the line you mentioned, in the exposed log. I think the app doesn't do anything after restarting the phone. I tried disabling all volume button mods provided in the resurrection remix ROM and tried it while playing a song. Still no show. (And one more thing I have selinux mode as permissive but it's showing it as enforcing, will it be because of this, its not working.)
[Xposed Framework Modules] Xspeed:
[MENTION=6080712]swedespeed7[/MENTION] [MENTION=6011852]mangesh raut[/MENTION]

One thing came to my mind: after installing PBMC and activating it in the installer, try clearing cache and dalvik/art cache.

I recall having some problems with certain modules and this seemed to help sometimes. Maybe it will help you too.
[Xposed Framework Modules] swedespeed7:
Thanks that worked!
[Xposed Framework Modules] vk89bna:
I set delay time of 500 ms on every option like for skipping tracks, play/pause and for vibration, vibration delay works nicely for pause/play which set on power button

But its not working properly with skipping tracks which set on volume rocker, i mean there is no delay for vibration

As i start press key it start vibrating immediately

Hope you get me....im not good with english
[Xposed Framework Modules] Xspeed:
I see, so it doesn't delay the vibration, but the tracks are skipped after the set delay? Makes no sense to me.

Have you set more than one setting to those volume buttons? Like setting the volume up button to send volume up signals?

Also, tell me what is your phone model and Android version.
[Xposed Framework Modules] vk89bna:
I got the solution....

You are right i set more than one settings for that buttons, i set volume up and volume down signal without delay..

I just uncheck them from app and now everything works perfectly

Thanks for this feature its tell me when to stop pressing key
[Xposed Framework Modules] zerogpain:
Galaxy Note 3 bug

This is a great mod it works great on my.nexus 4 ...however I'm having an issue on the galaxy.note 3 (4.3)

The issue is with the volume buttons

Assigning commands to the.menu button (regular and delay) works fine.

Assigning any command to either of the volume buttons does not seem to work

I tried the single press and delayed long press options

When I set something for the delay press on volume down button (for example to skip media forward) it will not work no.matter how long I hold down the button...however right after if I do a regular press then the volume will decrease all the way down as if the button is stuck..likewise if I set the delay press for the volume up to play/pause it won't work but then if I single button press of the volume up then the volume will increase all the way up.

:-\
[Xposed Framework Modules] evilperro:
not working at all with poweramp

You're putting so much value out with this app! I saw something about it/a mod of it working with pandora in the thread, that is exactly what prevents me from using pandora; so many songs I frequently don't like which I want to skip, but can't be arsed to pick up phone/unlock for it. This is the reason I don't use pandora, why the hell can't they make it so you can control with headset?

But I digress:

It's not working on poweramp. S3 stock 4.1.2. PBMC 1.8.

It works with the stock music player.

Volume up is assigned as play/pause. Volume down as next, home as previous. None work.

disabled all options in poweramp headset

in PBMC:

tried with and without compatible mode

selected power amp as exclusive reciever

tried with launch activitiy & running activity only

log (restarted device, opened poweramp main window so that it had focus, turned of screen, tried holding in volume up, then down - it does vibrate):

http://pastebin.com/6UurtLX7

it doesn't work either with poweramp not being active.

edit: so I enabled respond to headset button and unticked compatability mode. Now it's working.
[Xposed Framework Modules] abhijeetramgir:
the power button loses its funtionality

when i set the power button on my s3 to toggle play/pause, i cant use it to wake my screen

any help?
[Xposed Framework Modules] eilegz:
im wondering if there its a way to use three button controls headsets, in my case back play foward.

the thing its that miui have an option to setup what way i use those buttons, on aosp or normal rom, back and foward only do volume and there its no option to change it to back and foward....

hopefully theres a way with this mod, i havent found a way or an app to do this...
[Xposed Framework Modules] abhijeetramgir:
the buttons lose their original functionality!

when i set the power button to toggle play/pause on my s3, i cant use it to wake my screen

same goes with the home button

any help
[Xposed Framework Modules] alicarbovader:
can you create a module that could change/play-pause music via headphone buttons... like i got three buttons on my earphones but they don't work on any rom...
[Xposed Framework Modules] BabboDemonio:
Hi, if you set that holding the power button would pause/play the song, there's no way to activate the screen after standby. Please increase the time needed to use this feature, thank you!
[Xposed Framework Modules] Xspeed:
Can you tell me, if you set vibrations on, will the vibration also repeat?

So, everything's fine?

Have you tried using media next/previous as keys? They are supposed to be the headset buttons.

Weird, the mod shouldn't allow overriding the power button function. Have you got delay set on that button?

Try media next/previous as keys for signals.

Have you set delay on that key? If it happens too fast you can increase the delay.
[Xposed Framework Modules] BabboDemonio:
Yes I put it at maximum but it didn't work even if I pressed the button really quickly to turn the screen on..
[Xposed Framework Modules] evilperro:
Yea.
[Xposed Framework Modules] zerogpain:
I checked the vibration option, tried again with the delay signal ..nothing happened , not even a vibration
[Xposed Framework Modules] abhijeetramgir:
i have set delay to maximum, it still overrides the power and home button functionality

would love to get it to work as i love the module

any help?
[Xposed Framework Modules] alicarbovader:
Umm, could you elaborate...?
[Xposed Framework Modules] SJWackness:
HTC One

Anyone have any luck on an HTC One yet?

Just tried it on a stock 4.4.2 Sense ROM and there's no reaction with the screen on or off, whether Spotify is running or not.

(By the way, in case the button numbers are non-standard, Vol Up=24, Vol Down=25)

Looks like a great plugin but I'll give Xposed Additions a go in the meantime and see if that works.

I'll keep my eye out for updates.

Cheers for the work you've put in on this.
[Xposed Framework Modules] Sujan Baruah:
Am really finding this useful. First I thought that it's gonna be like that of cyanogenmod media controls. But boy was I wrong.... This thing is so much ahead. The way I got it setup now has finally made my phone what I always wanted it to be: an mp3 player that doesn't need to be looked at to change the tracks. My phone being a HTC one X is already a pain to handle with one hand (especially while cycling or trying to have a shut eye listening to music). I have done the following things,

1. 200ms power button hold to play/pause (0ms leads to instant change but didn't do so for obvious reasons).

2. 0ms hold for volume up/down for next/previous actions. If I need to change volume (which in itself is done quiet rarely) I simply press the power button, adjust the volume while the screen remains on, re press the power button to go back to its initial locked mode.

3. Vibration feedback turned on.

4. Very nice feature of startup volume set at 30%.

5. Option to control only single app (poweramp of course)

6. Auto resume music on headset connect.

I am so happy. I can't thank you enough for this dude.... You rock!!!!
[Xposed Framework Modules] BooZon:
Dude, you're awesome! I missed it in Sense UI, no matter which player I used,i was unable to control music in screen off. Thanks!

Sent from hell with HTC Desire S
[Xposed Framework Modules] mario21jorge:
Hi

I loved your work and the idea behind this module but unfortunately it doesn,t work for me :(

I have a THL W100S, running 4.2.2. I have GravityBox installed with the change media track with volume keys option enable. I've tried disabling it byt still doesn't work. I'm attaching the Xposed debug log if it helps.

Thanks!
[Xposed Framework Modules] Xspeed:
lol, really? Everything's ok now?

I guess on unofficial Nougat we need to do this every time we add/remove/update modules. Interesting find
[Xposed Framework Modules] mangesh raut:
Thanks dude for your help. it worked after wiping delvic cache, now it recognises the button press. Now I just have to figure out how to use it but thanks a lot for helping me through this.??
[Xposed Framework Modules] swedespeed7:
Worked yes. Although PBMC still crashes sometimes while I'm trying to add chains. Not totally sure it's PBMC's fault. I wish official N Exposed would be released!
[Xposed Framework Modules] :
That is not certainly needed. It is working here by default. But if you get a issue with it it's most likely a bad dalvik cache. Modules can be installed just fine
[Xposed Framework Modules] amplatfus:
Hi,

Same to me. When I try to intercept button on Android N 71 2 nothing happends. Wipping must be done from TWRP or only for PBMC from settings?

Thank you.
[Xposed Framework Modules] Xspeed:
TWRP, Flash Fire, or other root app capable of clearing ART cache
[Xposed Framework Modules] amplatfus:
thank you and confirmation

I can confirm that solved my case also. Thank you all!
[Xposed Framework Modules] xxDominatorxx2:
has anyone tried this on the official xposed yet?
[Xposed Framework Modules] Xspeed:
Works as expected here.
[Xposed Framework Modules] xxDominatorxx2:
Alright thanks man

---------- Post added at 09:59 AM ---------- Previous post was at 09:48 AM ----------

just for confirmation you mean the nougat xposed right?
[Xposed Framework Modules] Xspeed:
Yes, rest assured. It works on both unofficial and official Xposed for Nougat.
[Xposed Framework Modules] Rom:
Amazing :angel:
[Xposed Framework Modules] xxDominatorxx2:
Ok thanks
[Xposed Framework Modules] Rom:
@Xspeed

Hi,

I have tested your app and apparently there is no bug :good:

I let u check my xposed log in attachement just in case..

Thank u again for your app !
[Xposed Framework Modules] Xspeed:
Thanks for the log. As you can see it's as clear as day :cool:

Anyways, the next version is still under construction (sigh).

But I swear I'll make it happen, even if it takes me my last bits of energy

So, stay tuned in for updates!
[Xposed Framework Modules] Rom:
I knew in advance that your module would walk so much we helped you with our xposed logs remember u ;):good:

As usual takes the time to thoroughly paufinate your excellent work !
[Xposed Framework Modules] aLexzkter:
I saw today that Xposed is finally available for Nougat and guess what module came first to mind...

Edit: oh, is there a way to launch the switch off popup dialog ? I can't find that as a keyevent nor activity....
[Xposed Framework Modules] Xspeed:
Switch off popup dialog? I am not sure what you mean, the power menu? If it's the power menu, then try simulating a power button long-press.
[Xposed Framework Modules] Infy_AsiX:
Ugh I typed out a full post for the browser to lose it. Hey, I'm getting acquainted with the new changes in Nougat and have started using it's NavBar tuner. I've got 7 icons using some of the extra keycode buttons available. I've set each of the extra keys with an extra double tap and hold basic chains. The hold time doesn't seem to work above 0.35s, a little short. Also it repeat loops although repeats is set to 0 and until key pressed/released unchecked.

I guess I probably need to use advanced chains? Any pointers or tips would help. Thanks.
[Xposed Framework Modules] oroboros74:
Is it possible to have an action like 5 presses to hear the current time?

Any help on how I would have to set up the action?
[Xposed Framework Modules] Rom:
But what ????

This xposed module is especially making for musics customs controls, not for an advanced tasks sheduler..
[Xposed Framework Modules] Xspeed:
Looping under those conditions isn't normal, the delays seem to misbehave too, could you provide your configuration along with Xposed logs? (instructions in my sig)

If you find an app that can do this via shortcuts or intents it will be easy as pie. Maybe some text to speech app with some accessibility app?
[Xposed Framework Modules] Infy_AsiX:
PBMC can handle the buttons and Tasker can provide the output customisation.

I think I've found the issue.

"While it’s definitely possible to change nav bar icons using the ADB method or Custom Navigation Bar app, the end result is that you lose the ability to do long presses on the buttons."

https://www.xda-developers.com/customize-navigation-bar-icons-android-oreo/

Hold input is different and looks like this. Btw I was mistaken it doesn't loop but repeats once. The input is also the same with the normal default buttons such as home and recents.

However with no modification by default it functions the same, I think because I'm on LOS14.1 and perhaps it's force enabled. The system has some of it's own long press options as well as Gravitybox is able to work a long press somehow too.

I haven't understood the advanced chains yet, is it configurable using that instead?
[Xposed Framework Modules] Xspeed:
Advanced chains can handle about everything, even bad hardware (in some cases). They can seem intimidating at first, but once you figure them out they are very useful.

I see that there are two "pressed" actions without a "released" one in between. This is the reason indeed.

Nonetheless, I'd still like to see the logs to confirm a few things. Could you upload them anyway?
[Xposed Framework Modules] Infy_AsiX:
Wow, it wasn't that hard after all. In this case it's simple how the button registers a 0.4 hold every time. I only needed an advanced chain for the hold function, 0.4s Pressed Delay and Released as per the intercept input. The tap and double tap are unaffected as basic chains still.

This is great! Adding function and fixing up Google's unfinished hidden beta test feature. But errr, I think I broke the original intention of your software as a "Physical" Button "Music" Control :silly:. By the way if anyone else tries this, the keycode icons are invisible after rebooting. I use Tasker to delete and reapply the sysui_nav_bar secure setting at boot as a workaround.
[Xposed Framework Modules] andrewilley:
Any further thoughts on this? I'd really like to get rid of Xposed if possible (to get SafetyNet pass back) and this is the only app that is still very firmly tying me to it.

I don't know how much work would be involved in making a Magisk module version though, but I assume the principle is much the same as Xposed modules?

Andre
[Xposed Framework Modules] Xspeed:
Sadly, you couldn't be more wrong. They operate differently and do completely different things.
[Xposed Framework Modules] amplatfus:
Please, can we hope? It is possible? Many thanks for actual version.

Thank you!
[Xposed Framework Modules] andrewilley:
That's a shame. Luckily I have very little need of SafetyNet-locked apps, and your button control module is far more useful to me, but it's still a bit annoying on the odd occasions that I do need SafetyNet to have to disable Xposed and reboot my phone (and then of course reverse that process afterwards). Not worth going through a lot of work for though.

By the way, did the code for discrete detection of headset buttons vs. physical device buttons, which we were discussing earlier in the year, happen to make it into a test version yet?

Andre