yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] oroboros74:
The reason I was looking for this is because the Degauss app (https://play.google.com/store/apps/details?id=com.shengande.degausslabs&hl=en) and Headset Button Controller (https://play.google.com/store/apps/details?id=com.kober.headset&hl=en) have this: really simple stuff, like long-press to activate google voice search and multiple clicks to hear the time. Those are built in options, so I thought maybe this had them too.
[Xposed Framework Modules] Infy_AsiX:
I've noticed my basic chain, fast forward and rewind media actions aren't working since Nougat. The intercept is the same and it notify output's fine. Is it just me?

Anyway, I managed to set up using Tasker, the feature I requested about a Proximity sensor check when waking the screen. It's not perfect though as Tasker can be slow when the system is busy under load. However being able to do multiple commands, variables, state and profiles by running through Tasker is useful.

After monitoring which music app last had a notification, if the music app is currently in the foreground while the screen's off and checking whether any media is currently playing. With these when changing track by button it's possible to turn the screen on limited by only if proximity isn't covered, the last music app is in foreground and with a short screen timeout just for glancing. I'm using the App Settings module to allow my music apps to be usable over the lockscreen.

Tasker is slow with turning on the proximity state profile on demand on my device it seems, so it has to be left on. I have the state monitoring profile enabled when there's a music app notification event and there's media playing (to prevent a pause or stop music notification being positive). So it works. Still if proximity could be checked on demand more efficiently by PBMC it could be worth it.
[Xposed Framework Modules] Xspeed:
Everything is possible, it a matter of time and money. I described a theoretical concept of how it could work, but the idea I came up with would take ages to implement and would be a pain in the [MENTION=237736]SS[/MENTION] to maintain.

So yes, it is possible, however I don't think I will ever take it up.

A test version is not yet ready.

Device selection won't be available in the first upcoming version though - I have it planned for next release.

Sorry, this app is pretty much music oriented.

It can do a lot of other things, but most of them are enabled via 3rd party apps, like launching Tasker tasks or Automate flows.

I mean, having everything in one app is great, but I prefer to keep my own app smaller yet expandable.

Just you :silly:

On a serious note though, enable debug log, try setting a specific media signal receiver and play around with send options in settings.

Analyze the log or PM them to me, maybe we could work something out.

It's a great idea actually.

I will definitely add an option to check the proximity sensor.

Different chains while phone is in the pocket, different chains when in-hand. Wouldn't that be cool? :cool:
[Xposed Framework Modules] Tazmaniiac:
Hello Xspeed, first of all thanks for this app, thanks to you I didn't have to look at my phone anymore while driving for the last 2 years! But now I got a new device and the app isn't working anymore, so I made a debug log for you to inspect.

All the information you need is inside the pastebin, I only want to add that I used one of your basic chains to test the app.

If you have any further questions or want me to try something please ask, and if the problem is not related to the app itself please tell me where I should report the problems (rom developers, xposed developer, etc.). Thanks for your efforts!

EDIT: Forgot the pastebin link...
[Xposed Framework Modules] Xspeed:
Uhhh, so the device reboots when the chain gets fired up... let's see. This isn't your usual case of "something not working". I assume you're using normal next media signals.

After your phone resets out of the blue, you can read a file to check what happened right before the reboot located in: "/proc/last_kmsg".

You can use ADB or any root file manager to get that file. If you manage to get it, I'll be able to check more precisely what happens.

In the meantime though, does it only reset with this particular kind of action or with any chain?
[Xposed Framework Modules] Tazmaniiac:
I only tried it with the media control "next track", but I just did a test with rewind and came to the same result. Should I also try other media unrelated functions or is that enough for now?

Edit: Attached the file

Edit2: Attached another file as requested
[Xposed Framework Modules] amokkatxda:
Hello. How can I use combination like Power+VolUp, and not interfere with power and volUp working alone on single clicks and long presses?

Tried different ways, no luck. I moved chains, tried adding "release" events, played with delays etc. Only combination works ok, but vols and power are almost lost. Also emulated long-press on Power is not long enough, power menu not appears, and there is no way to specify holding emulation time.
[Xposed Framework Modules] xxDominatorxx2:
Is there an option to kill an app?

Can't seem to find it
[Xposed Framework Modules] Xspeed:
Technically there is no such thing. You always press one key after another, even if the event time difference is 1ms. You need to set up 3 chains.

1. Original power (action to show power menu)

Power pressed -> Power released

2. Original volup (volume increase action)

Volup pressed -> Volup released

3. Combination (your custom action)

Volup pressed -> Power pressed (0.5 sec)

I just noticed thanks to your post that power menu does NOT show up with the "long press" Power key simulation, which is weird because I use the system-defined long-press duration (it's predefined in Android). For now you'd have to use a third-party app to show the power menu that PBMC could use (via shortcut or app action).

There isn't an option like that yet. But it's a good idea to add it.
[Xposed Framework Modules] xxDominatorxx2:
[/COLOR]

Yeah man that'd be pretty sweet.

Is it hard to implement or what?
[Xposed Framework Modules] Xspeed:
Nah, I just have a lot to do for the next release.
[Xposed Framework Modules] amokkatxda:
Thank you, will try it exectly as you wrote, but I already tried this kind of placement without success ad I recall. Also I think that "repeat until pressed/releases" should have some configurable delay between repetitions. Tried to make chain with trigger "vol up" and action "keypress vol-up" with "until preseed", had to reboot the phone to stop that madness.
[Xposed Framework Modules] Bhabesh98:
I m on 7.1 Resurrection. PBMC music function Works well like play/ pause, Next /Previous Track by my Headset button.. But i can't able to answer / reject call by using headset button.. I tried set Action : Key press - Long Press (End call).. And set Only Telephone : always.. But its not working.. Please tell if anything else to setup there for call receiving and rejecting.. Sorry for my bad English :mad: thanks
[Xposed Framework Modules] Andy2244:
Is it possible to map the vol+/- buttons to send Thumbs up/down votes to google music? Its really annoying to have to get the phone out of the pocket and unlock + vote, just to train google music recommendations.

PS: If not maybe someone knows a other working way and can pm me?
[Xposed Framework Modules] Rom:
An xposed log and a loggcat will be precious to know if your physical buttons are correctly recognized or if your problem is related to an incompatibility withe broadcast hooks mecanisms.

Normally yeah, you can done that by selecting the right internal broadcast receiver in PBMC settings, an reboot is maybe necessary to make the changes applies.
[Xposed Framework Modules] aLexzkter:
You will probably need to use Tasker app and make use of intents like the other user mentioned.
[Xposed Framework Modules] faiwer:
I've installed PBMC 4.0 Beta on my OnePlus Two.

OS: OxygenOS 3.6.1, Android: 6.0.1, Xposed: 882, arm64.

So, then... At now my phone always reboots when I try to use "next track" by "volume up". Also single clicks (not long tap) on volume button doesn't change the volume level.

Xposed logs: https // gist.github.com /faiwer/fd7743d812c79666d3eab51865f31ba2 (I've broke this link by spaces cause this forum is denying links for me)

Is PBMC supporting my system?
[Xposed Framework Modules] DanStan37:
Module active and rebooted, still not working

Hi,

after I activated the module in Xposed Installer an rebooted the phone (Honor 8 on 7.0, SuperSU Version 2.79, newest Xposed module) PBMC App still says, the module is inactive.

Any solutions to that?
[Xposed Framework Modules] amplatfus:
Try clearing cache and dalvik/art cache like #1182 https://xdaforums.com/showpost.php?p=73922450&postcount=1182
[Xposed Framework Modules] DanStan37:
Cleared Cache and Dalvik, rebooted. Just to be sure I checked: Module was still active, but PBMC didn't recognize it. After a new reboot PBMC still doesn't work.
[Xposed Framework Modules] Rom:
Logs files would be nice..
[Xposed Framework Modules] DanStan37:
I didn't manage to get the log files to show up in Xposed installer. But while trying to solve that problem, I recognized, that Xposed wasn't permitted superuser in SuperSU app. After I changed that, PBMC worked again. Thanks for your help.
[Xposed Framework Modules] SkaboXD:
Hello, app works great, but i want to ask is it possible to add enable and disable flashlight when screen off by holding volume up?
[Xposed Framework Modules] Rom:
Impossible for now.
[Xposed Framework Modules] nola mike:
Great app, coming from xposed additions. Last 2 things I can't figure out (sorry if the answer is already buried in the thread):

1. Trying to map hardware button to show recent apps. Feel like this is probably obvious...

2. Want an option to kill an app.

Thanks!
[Xposed Framework Modules] Xspeed:
It certainly is possible. There is "Toggle flashlight" under extra actions menu.

1. You can map your button to simulate a App Switch keypress

2. This feature is not yet included in the module, however it is planned for the next version
[Xposed Framework Modules] SkaboXD:
[MENTION=5292510]Xspeed[/MENTION] when pressing change nothing happens
[Xposed Framework Modules] Xspeed:
It's actually a toggle button. When activated it should make the app catch all button presses.
[Xposed Framework Modules] SkaboXD:
i want to change it to show volume up, pls teach me how.
[Xposed Framework Modules] Xspeed:
Once the popup window is opened, press 'Change' once, then press your volume-up button.

The label 'Unknown' should change to 'Volume up'. Now press 'OK' and you're done.
[Xposed Framework Modules] SkaboXD:
i set everything as you said, but flashlight doesn't turns on on screen off. I'd love to attach logs, but xposed log doesn't works on my device
[Xposed Framework Modules] nola mike:
Found that option. That switches to the last app, but doesn't bring up the recents list, right?
[Xposed Framework Modules] Rom:
Ah zut, i had completely forgotten this menu, sorry.
[Xposed Framework Modules] OlegLord:
Thanks for your application, I use it for a long time. Recently updated the firmware and my device Redmi4X reboots when the chain gets fired up. This bug occurs on ROMs: xiaomi.eu and MiuiPro based on the Chinese latest stable and weekly.
[Xposed Framework Modules] Pigophone:
Hey, just downloaded this and it's rebooting the phone when I try to seek. I previously used CM13 on my OPO which had the volume-seeking functionality, so wanted to use this to get it on my OnePlus 5T.

What can I do to help you fix this?
[Xposed Framework Modules] Xspeed:
Its only a name, it should bring up the recents list

Android version, Xposed version, ROM name, chain function?

Android version, Xposed version, ROM name, chain function?
[Xposed Framework Modules] Pigophone:
7.1.1, xposed v89, OxygenOS 4.7.4, "Next track"? the default chains
[Xposed Framework Modules] OlegLord:
Android 7.1.2 , Xposed version 89 and 88.2, 88.1, ROM name MIUI9 7.12.21 (MiuiPro and MIUI.eu), any function on triggering results in a quick reboot.

Оn firmware two months ago everything worked perfectly.
[Xposed Framework Modules] nola mike:
It doesn't, at least through extra actions>switch to previous app

---------- Post added 28-12-2017 at 12:06 AM ---------- Previous post was 27-12-2017 at 11:47 PM ----------

Is there a user manual somewhere? I'm trying to figure out the behavior of the delay. I'm trying to map a button for multiple actions. If I set the delay to 0 for single press, then I can't map anything else (it stops listening after the first press). So what should the settings be for single press/double press/press hold? I have single press as 150 delay, uncheck "pressed". Double press=delay .4, check pressed. Double press= press>release>press>release/delay 0.4

Can't figure out if the delay is the amount of time that the key must be pressed before acknowledging the action (eg the key must be held for .4 seconds before the key is recognized as being pressed) or if the delay is the amount of time between the key press and the execution of the action (eg press key and release, after. 4 sec "screen off" action started. If key pressed again before .4 seconds, then a double press is recognized).
[Xposed Framework Modules] Rom:
@Xspeed

Hello, i am trying to disable several keys mapped and want to deleting several other ones, its already possible or can you add theses features please ?

I ask it because on my phone, i have build next/previous songs keys mapping for media control, on RR 7.1.2 ROM, i must enable the option to cancel original functions to make it works fine. But by done that i must setup again the sound level control keys mappings.

And now, i just realized that this also cancels the basic function of mapping the volume keys - and the lock key for the screenshoot function. And in keys list, there isn't a basic screenshoot function.

And the french translation is done to 100% approved on crowdin, but i get the english version.
[Xposed Framework Modules] LPW00:
This module isn't yet compatible with Oreo 8.1, right? Because for me it doesn't work, I can't select any keys
[Xposed Framework Modules] varioventus:
Please update it for Oreo.

Thank you.
[Xposed Framework Modules] ToyKiller:
Thanks you for this great module

i wont update to Oreo without this module working
[Xposed Framework Modules] KingEB:
Guys I know someone asked before, but I can't seem to find a definitive answer. Is there possibly a way to temporarily disable key commands when a certain device is connected?

For example, I would like the remap to work when connected to my car's Bluetooth, but not when I'm using Bluetooth headphones. This seems like something tasker could do, but I'm unaware of the command to do this?
[Xposed Framework Modules] Infy_AsiX:
Got this working with Tasker and Autonotification with the help of this guide: http://forum.joaoapps.com/index.php...ification-thumbs-up-on-google-play-music.140/. It's convenient for uses like when in a game, saving time, effort or power when the screen is off. Thanks for the request, I wouldn't have bothered to look and realise it's actual usefulness. I spent some time trying to understand and get GPM's Broadcast Receivers but got to realising this kind of function is hidden closed source and couldn't specifically rate songs without using this notification mod method.

I believe the Delay/hold time is the amount of time pressed before the process starts, allowing any extra presses before the time is up to instead form another chain. Therefore if a key is used on separate chains; a chain with multiple presses requires its respective delay to be shorter than any configured basic press or hold chain using that key.

I'm unsure of the exact specifics but with some testing I've settled on the basic chain press & hold minimum time at 0.3s and I set up the rest of the delays around that. For example then basic chain press twice and hold 0.25s, being shorter than the 0.3s hold chain to avoid that triggering.

I use basic chain single press delay of 0.1s. Then the basic chain triple press 0.05s to be shorter than the 0.1s press chain to avoid that triggering.

One alternative method is to map a chain to Gravitybox's screenshot. Or also alternatively use its power menu shortcut or quick settings tile.

Maybe Tasker can receive that the car BT is connected. Then any related PBMC chains need their actions to Tasker shortcut the required effects depending on state configured in Tasker.

---------- Post added at 02:54 AM ---------- Previous post was at 02:08 AM ----------

I think you mean the original key functions are being interrupted? Have separate basic single press for Vol up and down keys something like 0.1s, action to their respective keypress keycode. Can change to only when Music Playing if that helps with system defaulting to ringer volume when no audio is playing, same as Telephony to Idle. Check "Cancel original key functions".

Check out "Xposed Edge" module. It can create a shortcut to Last App among a few unique others too. I only recently discovered it for disabling capacitive buttons without disabling on screen nav-keys like PBMC overrides. Also it's Universal Copy function is a unique effective clipboard feature.

Edit: Too many quotes and a double post has this post formatting stuffed up if you're viewing in app btw.
[Xposed Framework Modules] KingEB:
[MENTION=4493018]Infy_AsiX[/MENTION]

Many thanks for your suggestion regarding an active tasker profile determining whether or not key maps activate! Such a simple suggestion but works perfectly. Now I can use whatever keymaps I like when connected to the car Bluetooth, but normal keypresses when connected to a Bluetooth headset!

Thanks a million!
[Xposed Framework Modules] Rom:
I thought about it and Iialready tested it, but GravityBox does not have a battery indicator in the form of text (percentage), and the developer didn't include a permutator to make up for it, which would leave the source-code by default in all tranquility at this level, i find myself stuck.

So i bothered to completely disable PBMC in my XPosed installer because Poweramp in its full version i've always used include this feature (long press on volume buttons causing media actions by default on Android), even if that it stay not configurable.

Maybe this compatibility option will be added to PBMC breasts to alleviate this..
[Xposed Framework Modules] Infy_AsiX:
It has battery percentage in text. Under statusbar tweaks, battery settings, battery percent text as well as changing indicator style here.

Alternatively check out "Xposed Edge" which I added to the end of my last post. It also has a screenshot shortcut you could action from PBMC.

By the way did you use Google Translate or something where "assets" is "breasts"? :silly:
[Xposed Framework Modules] Rom:
So maybe this funcitonality has been added in the meantime, I will test again later in this case.

I could also check it yeah, personally i have never try it, maybe it could give me bring me happyness ^^

By the way did you use Google Translate or something where "assets" is "breasts"? :silly:

Very likely indeed lol :angel:
[Xposed Framework Modules] nola mike:
Yup, that seems to be the way it works. Thanks.
[Xposed Framework Modules] usnkreal:
Android 6.0.1, xposed 89 or 87, miui v9 chinadeveloper 8.2.1, if bind function previos or next track on volume key, when press, device go to bootloop
[Xposed Framework Modules] Sr_psycho:
Hi! Please, integrate Russian from this ver. app.

https://goo.gl/HBXy4d
[Xposed Framework Modules] Rom:
Hi, just a little question:

Why put your link between "PHP" quotes instead of URL quotes :confused:
[Xposed Framework Modules] Sr_psycho:
Just Habit. :)

Some sites do not allow links to other resources.
[Xposed Framework Modules] FakeMobile:
Hi ,

someone succeed to make it run on Oreo ?
[Xposed Framework Modules] ToyKiller:
I have the same question.

I dont upgrade to oreo because this module
[Xposed Framework Modules] Rom:
Hello,

I haven't tested this module on Oreo for now, but it should works fine, same on Nougat and lower.

Just try :good:
[Xposed Framework Modules] FakeMobile:
I tried already, it detect my button press in key test, but it don't do the action
[Xposed Framework Modules] Rom:
Maybe that your device require a specifiq action before the key action reception, have u check all options in PBMC ?
[Xposed Framework Modules] FakeMobile:
Tried everything, disabling all keys and try something i created, change a default key to do different action to see if it work and nothing...

It continue to do the default action and not what i changed to
[Xposed Framework Modules] Rom:
Wich Android version u have ?
[Xposed Framework Modules] FakeMobile:
I have Android Oreo 8.0
[Xposed Framework Modules] Rom:
Ok, so maybe it's related to this bug..

https://github.com/rovo89/Xposed/issues/325
[Xposed Framework Modules] FakeMobile:
I will try to turn on log and see if it is the problem
[Xposed Framework Modules] FakeMobile:
This the log I get even when i enabled "debug log"

03-21 23:49:06.875 I/Xposed ( 1392): PBMC: Android version 26, module version 58
03-21 23:49:06.891 I/Xposed ( 1392): PBMC: Debug log is disabled
03-21 23:49:10.638 I/Xposed ( 1392): PBMC: IM instance acquired
03-21 23:49:10.756 I/Xposed ( 1392): PBMC: PWM init
03-21 23:50:06.599 I/Xposed ( 1392): PBMC: ABC intent
[Xposed Framework Modules] Rom:
Have you reboot your phone after enabled the log entry ?
[Xposed Framework Modules] FakeMobile:
It halfway fully working now, thanks for your help,

I have Magisk 15.3 as root, slinux : enforcing

Xposed 90-beta 3, and PBMC as system app

One of the best mod I installed so far

It only let me change my camera button to open application instead of camera
[Xposed Framework Modules] amplatfus:
Oreo PBMC

Glad to hear that is working on Oreo. Could you please share the steps you did in order to make it work?

Thank you,

amplatfus
[Xposed Framework Modules] FakeMobile:
I still try to make it work, everytime i create a new action it seems that the application stop doing it magic, no log, and no action from button.

But i installed normally and convert it to system app with titanium backup (you can do it with more app not just with titanium), give app the camera promission and restart, first reboot it work as it should, after that it half working, sometimes reboot fix it ( not always)
[Xposed Framework Modules] zeman124:
how to delete an unnecessary function
[Xposed Framework Modules] andrewilley:
Swipe the keychain entry all the way to the right (start your swipe from the thumb slider at the left of the screen, it's a bit of a knack). Then you will be prompted to delete that keychain.

Andre
[Xposed Framework Modules] Infy_AsiX:
Moved from 7.1.1 to RR 8.1 and PBMC is still working all fine here
[Xposed Framework Modules] SkaboXD:
I want to share my config that allows you to pause/play music by holding power button and change tracks by holding vol up and vol down when screen off. You can still unlock phone normally and take screenshots with this config.
[Xposed Framework Modules] ridiculousxgod:
redmi 4x

My redmi 4x is restarting after i press for example 2x Volume up to switch song
[Xposed Framework Modules] IlandBlack:
Module don't work on MIUI9 and 9.5 (android 7.0) Xiaomi Redmi Note 4x. On MIUI8 everything works fine.

Trying to use long press volume to switch tracks (default chains) but buttons only adjust volume.

Volume buttons are intercepting successfully on key test tab.
[Xposed Framework Modules] Xspeed:
So, it's working on the testing tab and not while the screen is off? Interesting. May I see the logs please?
[Xposed Framework Modules] Spookymyo:
Doesn't work if your power button is your fingerprint sensor too.
[Xposed Framework Modules] IlandBlack:
Right. All chains are totally ignored.

There's another problem with logs. Debug log is on in module settings, but in xposed log "Xposed (22100): PBMC: Debug log is disabled"

Reinstalling, rebooting and toggling are useless.
[Xposed Framework Modules] SkaboXD:
tnx for info

---------- Post added at 01:53 AM ---------- Previous post was at 01:39 AM ----------

i just want to report that it doesn't work on Oreo (at least for me), Nokia 3 Stock ROM.