yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] quadrplax:
I just upgraded to 8.1 Oreo and was afraid I wouldn't be able to find an app to replace Xposed Additions, but this one is fantastic! It allows for the same complex functionality like sequences of keys and launching Tasker tasks, but with a nicer interface. The conditional features are also super useful for allowing different mappings when music is and isn't playing. One example of how I use it is a task which vibrates the time in a morose-code like way (long=5, short=1, hours first, then tens place of minutes) which lets me check the time at night eyes-free.

My only real issue is that if you use a key for anything with the screen on, you lose all the native functions of that key. For example, if I use a long press of volume down for next track, I can no longer use volume down and power for screenshot. I'm on 4.0 beta6, not the "confusing" versions.
[Xposed Framework Modules] Xspeed:
@quadrplax Glad you like the module!

If you want to keep original button functions there are two ways to achieve that:

1. Disable the "Cancel original key functions" option in chain settings

2. Create new chains that mimics the functions, like:

hold power 1s -> power menu
hold power, release power -> screen off
hold power, hold vol-dn 0,8s -> screenshot
hold vol-dn 1s -> track change
hold vol-dn, release vol-dn -> volume change
[Xposed Framework Modules] quadrplax:
How do you do power menu and screenshot? I tried doing the action long keypress power button, for example, and that didn't work.
[Xposed Framework Modules] Xspeed:
@quadrplax Some ROMs might use custom delay for the power key press to show the menu.

Since you cannot customize the long press duration in PBMC yet you have, again, two ways:

1. Call an external app capable of opening the menu

2. Craft a custom intent URI action that opens the menu

Same for the screenshots, either an external app, or an intent URI that will trigger the system screenshot action.

Usually you'd go for the first option. While the second is way more cool, it takes a bit of research to get the Android URI syntax right and find the correct values to put inside.
[Xposed Framework Modules] Xspeed:
@Extreemator That may be a good suggestion, but could you give some use examples?
[Xposed Framework Modules] yuhrim:
Please, tell me where i can read about custom uri? And is it possible to implement screen-pining inclusion with this?
[Xposed Framework Modules] yuhrim:
@Extreemator The app has a function to set the starting media volume. Is it possible to extend this functionality? I would very much like the media to start smoothly. Ideally, it should start and fade smoothly too. Literally from 500 to 1000 ms.

I did it in chains. But it's tedious.

It would also be possible to make a smooth media start without changing the final volume. That is, take the value of the current volume and output the sound to the current level. As a separate option.
[Xposed Framework Modules] Xspeed:
@yuhrim I suppose you should use something like Tasker for more advanced actions.

You can easily call Tasker actions from PBMC.
[Xposed Framework Modules] loopypalm:
please update with AOSP 10

and thank you so much ^.....^ !
[Xposed Framework Modules] blumenkasten:
It seems Tasker isn't able catching power-button-events.

:unsure:
[Xposed Framework Modules] yuhrim:
It would be more expedient to implement volume increase in PBMC than install Tasker separately.

After all, it is the PBMC that controls the music playback.

Moreover, volume control has already been implemented. All that remains is to add fade in, like in many audio players.

I beg you to add such a possibility.
[Xposed Framework Modules] Tazmaniiac:
It is, use the log cat entry event, works only with screen on though. The alternative would be to listen for screen on/off state.
[Xposed Framework Modules] Darkaedenxxx:
Hope it can get update and working for Android 10 also, please
[Xposed Framework Modules] Xspeed:
4.2.1

Long overdue update to bring support for devices up to Android 11.

Minimum required version has been also raised to 7.1.

Enjoy!

EDIT: Minor update bumps the compatibility up to Android 12
[Xposed Framework Modules] yuhrim:
Hi. I install update on top of the previous version. Buttons stopped working. When i try to call menu settings programm falls. Attach log fall settings.
[Xposed Framework Modules] Xspeed:
Please also provide your device model, manufacturer, Android version, Xposed type and version.

Without that information I won't be able to do anything.
[Xposed Framework Modules] yuhrim:
Kyocera Duraforce PRO, Android 7.1.2, Xposed 3.1.5.
[Xposed Framework Modules] loopypalm:
Thank you for the update !

i saw "wear_app_68.apk" what is that ?
[Xposed Framework Modules] Xspeed:
A companion app for Wear OS to do stuff on your main device with stem buttons on your watch ;)

Doesn't require a rooted watch or anything, but it needs to be installed over adb until I push it to Play Store at some point.
[Xposed Framework Modules] nickelnine:
This update was a long time coming, thanks a lot! I'm not able to intercept the recents key in Pixel 5 A12 but home and back are intercepted. Also, when I map back key to do something how to stop it from actually going back?

Attached is log for recent key.

API version

93

Injection Interface

Riru

Framework version

1.7.2 (6379)

Manager version

1.7.2 (6379)

System version

12 (API 31)

Device

Google Google Pixel 5

System ABI

arm64-v8a
[Xposed Framework Modules] quadrplax:
Glad to see this app being updated! I just tried it out on my LG G8 (stock Android 10 with Magisk and Riru LSPosed) and unfortunately it does not seem to be able to intercept any buttons. Any ideas why that may be? I made sure to reboot and the module is only enabled for System Framework in LSPosed (the default).
[Xposed Framework Modules] Xspeed:
I found the problem, it will be fixed in the next version.

The recents key is actually a complicated issue, because for some reason it's implementation can vary from manufacturer to manufacturer.

It might take a bit longer to support the recents key of more devices.

Please upload logs from LSPosed, so I have any information to work with.
[Xposed Framework Modules] loopypalm:
please add more space here :

On some devices you have to reboot 2 times
[Xposed Framework Modules] quadrplax:
Interesting, this actually worked. It's able to intercept hardware and software keys now. It seems a little finnicky, like it wasn't working right after rebooting and for a while my app switch key wasn't working for its default functionality, but after fiddling with it for a bit everything is working. Apologies for not including the LSPosed log before, but if I have more issues in the future I'll be sure to include it.
[Xposed Framework Modules] the.healer777:
Great app !

i hope you can add an option to backup/restore and enable/disable vibration
[Xposed Framework Modules] quadrplax:
Vibration is possible on a per keychain basis by adding another action of the type notification (it doesn't actually create an android notification, just sound/vibrate/toast).
[Xposed Framework Modules] the.healer777:
i want to disable vibration ,i try to add notification before and after the action but still there is vibration

can you be more clear ? (i want to disable it not enable it)
[Xposed Framework Modules] loopypalm:
+1 ! (y)
[Xposed Framework Modules] yuhrim:
This is a much-needed feature. After rolling back to the working version, all shortcuts disappeared. And there were finely tuned chains. Sad...
[Xposed Framework Modules] Xspeed:
Sorry for that, the preference systems vary across different Xposed implementations, it is a major pain to properly support all of them at once.

Finally got around to implementing this feature, check out the new version!

Also @yuhrim check if the new version is working properly for you now.
[Xposed Framework Modules] nickelnine:
I have a chain for sleeping the device after triple press of the recent key but it activates after 3 presses no matter the time between each press. How do I only activate triple press within a specific time period? Thanks for any help.
[Xposed Framework Modules] yuhrim:
It work! Thank)
[Xposed Framework Modules] Xspeed:
Your post made me realize that aside from "delay" we'd also need something like "max delay" to prevent your problem. Took only ~7 years to realize lmao.

For now, stick to "press twice and hold" with some delay or craft an advanced chain.
[Xposed Framework Modules] nickelnine:
Thanks that works but with a side effect which is my double tap recent chain gets triggered. Is there a way to block one while performing the other?
[Xposed Framework Modules] Xspeed:
1. The double press should have a bit longer delay, like above 1s

2. Make sure the double press and hold chain is below the first one on the list
[Xposed Framework Modules] yuhrim:
In fact have discovered that the app periodically stops working. In addition, to run application does not help. Helps off/on logging. Now keep logging enabled. But when app stops working in Xposed logs also not recorded.
[Xposed Framework Modules] Xspeed:
If the usual Xposed logs don't work or don't show anything special, I might need logcat to check your issue
[Xposed Framework Modules] wirespot:
I don't understand how to create chains. I make a new one and type in a name but I can't do anything else. It keeps saying "it needs a name" or "can't save it because it doesn't have a name".
[Xposed Framework Modules] yuhrim:
Enter name and apply.
[Xposed Framework Modules] wirespot:
Apply how? There is no apply button.

Edit: I've added screenshots of how it looks for me.
[Xposed Framework Modules] yuhrim:
Oh, those long screens) The button should be to the right of the input field.
[Xposed Framework Modules] wirespot:
Ah I can see it in landscape orientation (I'm on a 21:9 aspect ratio device, the Sony Xperia 10 III).

The good news is that it detects the phone's assist button.

The bad news is that it seems to crash whenever I try to use anything under External (apps, shortcuts etc.) I was hoping to use a Tasker shortcut to do a screenshot when long-pressing the assist button. (There's also the XPER+ app that handles the assist button but it can only do single press.)
[Xposed Framework Modules] AnonA2:
App launch not working version 3.2 too no input - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

So from curiosity i have fully system write rooted my samsung a5, same problem, 3.2 not working, edge may be alt to this app. Android 9 pie...
[Xposed Framework Modules] yuhrim:
I couldn't catch the moment of application failure using catlog. But I detect that after the failure, any change in the application settings returns to work, and not just enabling/disabling the log in app settings.

Found another bug on my device. When the "App in background" condition is added to the chain, the application crashes. I attach the log.
[Xposed Framework Modules] trevtdogg:
just found this mod, and it's great!

i've been looking for a way to 'hold volume to skip tracks' but no apps or tweaks i'd found before now would work while casting to another device. but this does!

plus, the moto edge 20 fusion/lite assist button becomes programmable! i've made it the play/pause media button all the time, works fantastic :)

thank you @Xspeed!
[Xposed Framework Modules] Xspeed:
I'm daily driving an Xperia 1 II which also has the 21:9 display and it looks fine here. I'll try looking into it more.

I am aware of the external menu crashing, I will be working on it as soon as I am able.

That is unfortunate. I have no clue what could be causing that first problem.
[Xposed Framework Modules] DuskGolem:
Hello @Xspeed , first of all, thank you for this awesome module. It is working on my Galaxy A8 2018 running stock android pie rom. One request I would like to make is, is it possible to add a condition to detect screen off as well as samsung's "always on display" running? I am using "toggle flash light on when power button is pressed and held when screen is off". It works well when I turn of AOD, but with it running it doesn't work. Also I cannot add a condition of app running in background or foreground on my phone. I have attached the logs for your consideration.
[Xposed Framework Modules] pandavova:
Pretty cool app, I can now finally use the 1.3.A Photo Pro App with the Camera button! (Xperia 5ii, A11)

Would it be possible to add Volume conditions and actions? I want to use my Google Assistant Button as a Vibration/Silent Switch. Im currently using Tasker and a self written script that does this weirdly.
[Xposed Framework Modules] Xspeed:
Thanks for the suggestion, I have this feature already done for next version ;)

You mean for for media volume or notification/call volume?

Maybe "Do not disturb" switch?

I had the a version with bug fixes ready, but I decided to do more work in it, including migration from Java to Kotlin. It should be ready soon ™.
[Xposed Framework Modules] pandavova:
Yeah not that, I'm already switching between "Do not Disturb" Modes with my Tasker script, which is quite janky.

For example, GravityBox (R) has a Feature (sadly only in the QuickSettings) that is called "Ringer Mode". You can select between "Vibrate", "Sound", "Sound and vibrate" and "Muted". If you only select two, for me "Vibrate" and "Muted" and press the QuickSettings Tile it switches between those modes.

"Mute" mutes the notification/call volume and "Vibrate" sets it to vibrate.

Sadly the GravityBox-Shortcut only lets you pick one mode and not a switch so I could for example only bind "Vibrate" to the Google Assistant Button.

As I tested this again for this post, maybe a "switch" feature for PBCM would be good? An option that would remember the last time the button in question was pressed and then it does a different action and then switches back? Would that be possible?
[Xposed Framework Modules] trevtdogg:
so unfortunately 'hold volume to skip tracks' doesn't actually work with casting.

what happens though is sometimes the phone is acting like it's not casting when the audio is casting - you can tell because the phone has no casting volume control. when it's casting in this partial / pseudo way, the volume buttons skipping tracks works because it thinks the phone is playing audio from the phone.

but when it's casting properly and shows the separate casting voume control, the 'hold volume to skip tracks' doesn't work :(

i don't know how or why the phone doesn't go into "proper' casting mode every time, but sometimes it doesn't or sometimes it takes a few minutes to do so.

do you know if it's possible to get the skip tracks button mapping to work while casting? as in 'proper' casting?
[Xposed Framework Modules] pandavova:
Did you try GravityBox?
[Xposed Framework Modules] trevtdogg:
no i hadn't, didn't really know what it was. giving it a shot now!

edit - doesn't work unfortunately.

but thanks for the suggestion, i've found quite a few of the gravity box tweaks really useful! especially since there aren't any custom roms available for my device yet.
[Xposed Framework Modules] andrea0807:
Hello, Can I use this module to assign the screenshot function to the long press of the home button?

How should I do?

I have a poco F2 pro with lineageos 19.1 zygisk and lsposed
[Xposed Framework Modules] GRana();:
hello, i have to uninstall the app to do an experiment and then I'll reinstall it, but when I uninstall the app their function, like volume up to skip a song, still work (i already tried to restart the phone and all the way i could uninstall it, but maybe i'm missing something).

i have a s7 with lineageos 19.1 and zygisk lsposed
[Xposed Framework Modules] TraderJack:
Trying to use this on my Pixel 3XL running Android 12. Latest Magisk/LSposed setup.

Many issues:

1) Seems whatever I set does not go into effect until I reboot. So if I create a new chain, or edit what a chain does, saving is not enough, I need a full reboot. Is this normal?

2) The UI is very flaky when trying to edit an existing chain. I'm not exactly sure what I am supposed to be clicking on in the Chain List. The little gray rectangle? The light blue button with description of chain? Single click, double click? It seems very intermittent and I usually have to just keep clicking on one sometimes 20 times before it opens up the Edit dialog.

3) I have tried several things. I have gotten my chain to: a) Do nothing, b) pop up a toast c) send an intent (though I'm not sure how I can handle that intent through Tasker).

But when I set to enable my flashlight the app just crashes.

Similarly when I try to use *ANY* of the EXTERNAL options (with the exception of Custom intent URI) it just crashes. Sometimes I just get a system "keeps stopping" UI, sometimes it just closes and goes back to the Edit screen for that chain.

This seems like a really powerful tool and I would love to get it working.

Not sure how many of these issues are known and how many are not but would appreciate any help.

thanks
[Xposed Framework Modules] DuskGolem:
@Xspeed , hey man, where is version 4.4? Can't find it anywhere. Is it still not released yet?
[Xposed Framework Modules] ycodryn:
Thanks for such a great module. Tried 4.3 on my firesticktv 4k, buttons on remote were recognized but when assigned some key on them was not working, same input as original. Tried to assign some external options but after selecting shortcuts or intent, I could not do that, some white screen appeared and went back to chain list. I have installed 4.1 module version, same thing with keys assign but now I can use external intent/shortcuts. Can you do something to use your module with dpad keys and not touch only? Right now is a nightmare to configure the firestick because I can't use a USB mouse, I tried a wireless mouse app on phone and when is working, when is not, without a mouse you can't do anything in chain list.
[Xposed Framework Modules] wewuiu:
@TraderJack

hey hey, i had exactly the same problems as you, what solved the external things was downgrade to v4.2.1 (or access for storage in LSPosed, I did both), the reboot is also necessary for me, but for it's capabilities it's worth it and the ui, you get to the chain by tapping on it's name
[Xposed Framework Modules] ycodryn:
Hey thanks for reply. I switched to xposed edge and my problems were gone plus that you can freeze apps and do much more.
[Xposed Framework Modules] nickelnine:
I'm trying to remap the recent key but the app crashes when I select Launch Shortcut. Here are the logs. Running on Poco F3 A12 EvoX ROM with Zygisk 1.8.4
[Xposed Framework Modules] nickelnine:
I rolled back to version 4.2.1 and Launch Shortcut is working fine, no crashing.

On another note, long press or double tap any nav button is not being detected. Any chance you can look into that?
[Xposed Framework Modules] uig200:
Is there also a version for Android 4.0 Ice Cream Sandwich available? There used to be. But I can't find it anymore. Can please somebody help?
[Xposed Framework Modules] bg_man:
Mine bluetooth headphones keys are not detected. Is there a way to support it?
[Xposed Framework Modules] Light_Wing:
any one know if PBMC works on Xperia 5 iv?

ive searched the thread with no results about this device model.

ive tried looking in other places as well (and for other xposed modules i am used to using)

checking before buying the device.

thanks in advance
[Xposed Framework Modules] HanzDieter:
Hello,

I have a Unihertz Titan Slim. I have an issue with the physical keyboard. I have to press the key "e" very hard until it is working, so I want to remap this key to the "sym" Key of the physical keyboard. Is this possible with this app?

best regard,

Hanz
[Xposed Framework Modules] kos25k:
Hello.Any chance for A13 support?
[Xposed Framework Modules] Cryosx:
Feature request: option to have a sound/beep when signals go off. Just like the beep that goes off in power amp.

Feature request: have a play/next and play/previous option. Right now I can turn my music on from screen off but it skips the last track first.
[Xposed Framework Modules] irsath:
First thx for this awesome Xposed Module.

And I have a request :

Can we have an option to allow you module even if the screen isn't off and just take in account if the phone is locked or not.

Because i have a nexus 5 and i don't know why but each time i use a physical button assigned to your module, the action is done but the screen turn on so i cant do another action directly, i have to switch off the screen.

For example , i have assigned the long pressed volume up button to skip to next track, and i can't skip 2 track's directly by long press 2 times de button, i have to switch off the screen between each action.
[Xposed Framework Modules] AntwonJenkins:
Just wanted to say thanks for this awesome little module you made. Been using for a couple months and it works perfect for my needs on my S4.
[Xposed Framework Modules] abhijeetramgir:
plz if you could help me out!

thses are the logs, basically i set longpress time to max but when i set power button of my s3 to toggle play and pause it loses its functionality of lighting up the home screen

java.lang.NullPointerException

at xeed.xposed.cbppmod.PhysicalButtonMod.keyHook(Phys icalButtonMod.java:127)

at xeed.xposed.cbppmod.PhysicalButtonMod.access$11(Ph ysicalButtonMod.java:99)

at xeed.xposed.cbppmod.PhysicalButtonMod$4.beforeHook edMethod(PhysicalButtonMod.java:167)

at de.robv.android.xposed.XposedBridge.handleHookedMe thod(XposedBridge.java:607)

at com.android.internal.policy.impl.PhoneWindowManage r.interceptKeyBeforeQueueing(Native Method)

at com.android.server.wm.InputMonitor.interceptKeyBef oreQueueing(InputMonitor.java:357)

at com.android.server.input.InputManagerService.inter ceptKeyBeforeQueueing(InputManagerService.java:142 4)

at dalvik.system.NativeStart.run(Native Method)

java.lang.NullPointerException

at xeed.xposed.cbppmod.PhysicalButtonMod.keyHook(Phys icalButtonMod.java:127)

at xeed.xposed.cbppmod.PhysicalButtonMod.access$11(Ph ysicalButtonMod.java:99)

at xeed.xposed.cbppmod.PhysicalButtonMod$4.beforeHook edMethod(PhysicalButtonMod.java:167)

at de.robv.android.xposed.XposedBridge.handleHookedMe thod(XposedBridge.java:607)

at com.android.internal.policy.impl.PhoneWindowManage r.interceptKeyBeforeQueueing(Native Method)

at com.android.server.wm.InputMonitor.interceptKeyBef oreQueueing(InputMonitor.java:357)

at com.android.server.input.InputManagerService.inter ceptKeyBeforeQueueing(InputManagerService.java:142 4)

at dalvik.system.NativeStart.run(Native Method)

java.lang.NullPointerException

at xeed.xposed.cbppmod.PhysicalButtonMod.keyHook(Phys icalButtonMod.java:127)

at xeed.xposed.cbppmod.PhysicalButtonMod.access$11(Ph ysicalButtonMod.java:99)

at xeed.xposed.cbppmod.PhysicalButtonMod$4.beforeHook edMethod(PhysicalButtonMod.java:167)

at de.robv.android.xposed.XposedBridge.handleHookedMe thod(XposedBridge.java:607)

at com.android.internal.policy.impl.PhoneWindowManage r.interceptKeyBeforeQueueing(Native Method)

at com.android.server.wm.InputMonitor.interceptKeyBef oreQueueing(InputMonitor.java:357)

at com.android.server.input.InputManagerService.inter ceptKeyBeforeQueueing(InputManagerService.java:142 4)

at dalvik.system.NativeStart.run(Native Method)

any help?

would really appreciate it as i have been waiting for a fix for months
[Xposed Framework Modules] oroboros74:
Spotify and "Pocket-mode"

I've been looking for a "pocket-mode" for Spotify: basically double-click home (long-press may also be OK) would skip track when headphones are plugged in and screen is off or locked (in my pocket).

Would something like this be possible? I tried with long press home while the screen was locked and it didn't skip the track, maybe I'm doing something wrong....
[Xposed Framework Modules] oroboros74:
Do you accept suggestions? Thinking about my previous post here, I figured this would be possible only if PBMC allows:

- double-click actions of buttons

- distinguishing between screen on/off or locked/unlocked

EDIT: May be useful, but not necessary:

- Tasker & plugins shortcuts (specifically shortcuts for Media Utilities, which allows for a variety of media players)