• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[JB][P] Physical Button Master Control 4.1 confusing2

Search This thread

Xspeed

Senior Member
Recent release post: 4.1 confusing1

Beta version FAQ: Help and information about the 4.0 beta release! (kind of outdated)

Hi
I am presenting you here a Xposed module allowing you to take full control over the keys in your device!

When the screen is off/locked/on this module allows you to:
- send media play signals
- send media next/previous signals
- send volume up/down signals
- launch app shortcut actions
- simulate key presses
...with any buttons your phone might have!

And also:
- Disable original button functions
- Send a play signal when devices get plugged in
- Send signals only when selected devices are plugged in
- Set music volume when play signals are sent
- Set a media player to send the signals to
- Launch the selected player before sending signals

Features can be greatly customized to suit all possible needs!
Compatible with all Android versions from 4.1 'Jelly Bean' to 9.0 'Pie'.

Download: Physical Button Master Control on Xposed Module Repository
If you found this mod useful consider donating me a coffee, this will help me code ^^

If you want to help other people see this app in your language, feel free to contribute on CrowdIn:
PBMC translation project on CrowdIn

Credits:
Xposed Framework: rovo89 & Tungstwenty
All translation project members over at CrowdIn

How to report problems efficiently?
- Enable the 'Debug log' in PBMC settings
- Use PBMC functions that don't work as intended
- Export the logs from Xposed app and put them on PasteBin
- Post here/send me the link along with more information about your device

XDA:DevDB Information
Physical Button Master Control, Xposed for all devices (see above for details)

Contributors
XspeedPL
Source Code: https://github.com/XspeedPL/PhysicalButtonMod

Xposed Package Name: xeed.xposed.cbppmod

Version Information
Status: Stable
Current Stable Version: 4.1 confusing2
Stable Release Date: 2019-08-31

Created 2014-09-22
Last Updated 2019-08-30
 
Last edited:

Xspeed

Senior Member
Frequently Asked Questions

Q: Simply doesn't work?
A: Make sure your device is rooted, Xposed Installer is installed, and PBMC is enabled within the module menu of Xposed. After this, reboot. If it still doesn't work proceed to next steps (such as posting debug logs).

Q: I just installed PBMC and I found out that my home/recents/back/power button cannot be mapped. Fix?
A: You need to reboot first. With the module active, all buttons will work.

Q: Can I use this module to disable original button functions?
A: Yes, you can do this by setting the 'Do nothing' action on a mapping.
In example, to prevent volume up button from increasing the volume, set it's 'Single press' action to 'Do nothing'.

Q: How can I disable vibrations?
A: When you add an action, you can move the "Use vibration" slider to 0ms. It's as simple as that.

Q: I used the option to hide the app from the launcher, how can I open it now?
A: Go to the Xposed Installer -> Modules -> click on the PBMC module to open it.

Q: I have set a single-press action to my home/power button. How can I wake the device up now?
A: It's quite simple, any unmodified action will act as the original button function. Double-press or hold, depending on which ones have you not set.

Q: My media player is starting delayed using PBMC, why is that happening and what can I do?
A: It's because of the OOM killer most of the times, it's a mechanism in Android that kills unactive apps.
You see, when the receiver app is already active, it handles signals instantly.
But, when it has to be started (media players can get killed when it isn't playing anymore), it can take longer, depending on available RAM and amount of tasks running in the background.
So, what can you do? There are ways of protecting apps from getting killed by OOM killer. You could also limit the number of tasks running in the background (to make sure there is some RAM free).

Q: I have a problem that isn't listed here. What do I do?
A: You can use the 'Feature Requests' and 'Bug Reports' sections on top or post your problem on this thread, BUT remember to provide useful information, like: device info, Xposed/LogCat logs, list of other modules, detailed steps to reproduce the problem. Refer to the first post for instructions on getting Xposed logs.
 
Last edited:

Xspeed

Senior Member

argo7

Senior Member
Apr 15, 2012
150
12
Hi

I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.
It's simple, when the screen is off:
- pressing the camera button sends a media play/pause signal
- holding the volume up/down button for 300ms sends a media next/previous signal

Current version: 1.1
Download:

repo.xposed.info/module/xeed.xposed.cbppmod

And you think that you would be able to disable the lockscreen controls?

Enviado desde mi XT1032 mediante Tapatalk
 

matlink

Member
Dec 23, 2013
5
1
Not Working on Nexus 5 4.4.2

Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
 

Xspeed

Senior Member
Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
Yeah, I just found out too that the latest version has a bug that prevents the volume buttons from working!
An update is being made as I type.
 
  • Like
Reactions: Zak1997

rookiegenius

Senior Member
Jul 7, 2012
446
44
Thanks. I like this module. However it does not work on my s3 running pacman 4.2.2. I tested with Google play music, Apollo, doubletwist. None works. (just reported). :)
 

Xspeed

Senior Member
thank you for GB support! it seems to not work with poweramp,i havn't tested it with other players though. i am using galaxy y duos,stock 2.3.6 rom.
& another req, my phone has no camera button but has a physical home button. can you make an option to use home botton to control play/pause? my home keycode is 3.
Should be fixed now, also I added the ability to change the keys.

Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
Thanks. I like this module. However it does not work on my s3 running pacman 4.2.2. I tested with Google play music, Apollo, doubletwist. None works. (just reported). :)
Should be working now, update.
 

elesbb

Senior Member
Jun 20, 2010
7,851
5,308
Hi

I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.

It's simple, when the screen is off:
- plugging in headphones sends a media play signal
- pressing a set button can send a media play/pause signal
- holding a set button for a set amount of time sends a media next signal
- holding a set button for a set amount of time sends a media previous signal

Features can be customized in settings activity 'PBMC Settings'.
Compatible down to Android 2.2 'Froyo'.

Current version: 1.3.1
Download: Physical Button Music Control on Xposed Module Repository

Could you possibly upload or PM me your source code and I will fix the issues pertaining to it not working on certain music apps? I have downloaded and tested and confirm the latest version does NOT work with Pandora. However, i have decompiled the apk and semi-fixed it. I got it to skip tracks but the play pause is happening twice, meaning, it pauses the music, then immediately plays again. If i could get the source code i could easily fix this issue. You can check here with an app i made allowing users to control the music from their notifications and it works across the board. I do know how to make it work :)

I have written xposed modules, and would hate to start over on ANOTHER volume skip mod. There are like 4 of them lol. So if you would share your source code with me, i will fix it and give it back to you to upload and share. I do not want the "credit" or recognition for this app. Just for making it work on Pandora and other music apps.

Of course, if i do not receive any source code, i will make my own module. Lol.

Thanks man!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 125
    Recent release post: 4.1 confusing1

    Beta version FAQ: Help and information about the 4.0 beta release! (kind of outdated)

    Hi
    I am presenting you here a Xposed module allowing you to take full control over the keys in your device!

    When the screen is off/locked/on this module allows you to:
    - send media play signals
    - send media next/previous signals
    - send volume up/down signals
    - launch app shortcut actions
    - simulate key presses
    ...with any buttons your phone might have!

    And also:
    - Disable original button functions
    - Send a play signal when devices get plugged in
    - Send signals only when selected devices are plugged in
    - Set music volume when play signals are sent
    - Set a media player to send the signals to
    - Launch the selected player before sending signals

    Features can be greatly customized to suit all possible needs!
    Compatible with all Android versions from 4.1 'Jelly Bean' to 9.0 'Pie'.

    Download: Physical Button Master Control on Xposed Module Repository
    If you found this mod useful consider donating me a coffee, this will help me code ^^

    If you want to help other people see this app in your language, feel free to contribute on CrowdIn:
    PBMC translation project on CrowdIn

    Credits:
    Xposed Framework: rovo89 & Tungstwenty
    All translation project members over at CrowdIn

    How to report problems efficiently?
    - Enable the 'Debug log' in PBMC settings
    - Use PBMC functions that don't work as intended
    - Export the logs from Xposed app and put them on PasteBin
    - Post here/send me the link along with more information about your device

    XDA:DevDB Information
    Physical Button Master Control, Xposed for all devices (see above for details)

    Contributors
    XspeedPL
    Source Code: https://github.com/XspeedPL/PhysicalButtonMod

    Xposed Package Name: xeed.xposed.cbppmod

    Version Information
    Status: Stable
    Current Stable Version: 4.1 confusing2
    Stable Release Date: 2019-08-31

    Created 2014-09-22
    Last Updated 2019-08-30
    14
    4.0 beta

    After almost one year break here it is.
    The new promised version you (I hope) have been waiting for!

    HOWEVER! It's an beta version! What does that mean?
    - Translations are unavailable at the moment
    - Bugs may appear (orly?)

    This release is mainly for people wanting to help by testing or not minding bugs.
    I cannot guarantee stability of this alpha version.

    OK, OK, what is new?
    Proper Marshmallow support!
    And... pretty much everything else :silly:

    I don't understand how this new version works at all. Help?
    Well, 4.0 in it's beta stage has no help or guide built-in, as I am focusing on adding features and fixing bugs.
    Here's some quick overview about the mechanism:
    PBMC works now by recognizing keypress patterns, aka. key chains.
    You can use complex mixed key combinations to do many different tasks with minimal amount of different buttons.

    How do I just make a simple double press or press and hold?
    To, in example, set a double press of Volume Up button make a key chain with keys like this:
    Volume Up pressed, Volume Up released, Volume Up pressed, Volume Up released
    And to get a click and hold:
    Volume Up pressed, Volume Up released, Volume Up pressed time 0.3sec

    'I mapped a key, and now I can't use it normally!'
    Well, you need to make another chain to emulate original key functions.
    Example:
    Code:
    Chain Media next - action 'Next media', keys: Vol Up Pressed Delay 0.5s
    Chain Original vol up - action 'Keypress (Volume up)', keys: Vol Up Pressed, Vol Up Released
    That way when you hold the volume key it will execute media next, and if you just tap it, it will execute original vol up.

    'I can't get double/triple press to work with single press also set!'
    Answer is simple: put a delay (even 0.2s) on the single press chain.
    The reason for that is when there is no delay and you try to double press, PBMC does an action immediately after the first press, because it waits 0 seconds before checking for any other chains.

    Oh right, and here are a few other useful tips (Courtesy of @quantemplation, cheers mate!)
    • Remember to use unique names for your chains (one will override another of the same name)
    • If you use "Cancels original key functions" on your chain, it naturally follows that you have to map the default function of the key to an additional chain to be able to use it
    • To get a long button press effect, as on previous versions, put the relevant delay (aka hold time) on a "Pressed" key in the chain
    • To have a combination such as triple tap, while still allowing a double tap chain, you need to put your a delay on the last key of the double tap chain. Basically, the delay on the release is how much time it waits until that combination fires your intended action. If there's no delay, there's no physical way to get to any chain longer than that one!
    • Don't map the power and home keys, unless you really know what you're doing
    • Remember that there cannot be multiple consecutive 'Pressed' or 'Released' keys, because you can't press a key twice without releasing it once, right? Heh
    10
    Frequently Asked Questions

    Q: Simply doesn't work?
    A: Make sure your device is rooted, Xposed Installer is installed, and PBMC is enabled within the module menu of Xposed. After this, reboot. If it still doesn't work proceed to next steps (such as posting debug logs).

    Q: I just installed PBMC and I found out that my home/recents/back/power button cannot be mapped. Fix?
    A: You need to reboot first. With the module active, all buttons will work.

    Q: Can I use this module to disable original button functions?
    A: Yes, you can do this by setting the 'Do nothing' action on a mapping.
    In example, to prevent volume up button from increasing the volume, set it's 'Single press' action to 'Do nothing'.

    Q: How can I disable vibrations?
    A: When you add an action, you can move the "Use vibration" slider to 0ms. It's as simple as that.

    Q: I used the option to hide the app from the launcher, how can I open it now?
    A: Go to the Xposed Installer -> Modules -> click on the PBMC module to open it.

    Q: I have set a single-press action to my home/power button. How can I wake the device up now?
    A: It's quite simple, any unmodified action will act as the original button function. Double-press or hold, depending on which ones have you not set.

    Q: My media player is starting delayed using PBMC, why is that happening and what can I do?
    A: It's because of the OOM killer most of the times, it's a mechanism in Android that kills unactive apps.
    You see, when the receiver app is already active, it handles signals instantly.
    But, when it has to be started (media players can get killed when it isn't playing anymore), it can take longer, depending on available RAM and amount of tasks running in the background.
    So, what can you do? There are ways of protecting apps from getting killed by OOM killer. You could also limit the number of tasks running in the background (to make sure there is some RAM free).

    Q: I have a problem that isn't listed here. What do I do?
    A: You can use the 'Feature Requests' and 'Bug Reports' sections on top or post your problem on this thread, BUT remember to provide useful information, like: device info, Xposed/LogCat logs, list of other modules, detailed steps to reproduce the problem. Refer to the first post for instructions on getting Xposed logs.
    9
    After tons of days (of lazy days), the release is getting close!
    More information coming soon.
    9
    @Senliast @Airtioteclint @ToyKiller
    Do not worry, closed beta tests are under way.
    Once everything is polished out, release will be complete.

    That being said, if you have any experience in UI/UX and are able to provide constructive feedback you can PM me for an invitation to the closed beta.