[MOD][XPOSED][4.0+]XUpDown: use volume keys for paging - Xposed Framework Modules

As a long-time PalmOS user, I hate the fact that Android doesn't have page up/down keys. So I made a little xposed module that lets you use the volume up/down keys as pageup/pagedown keys in apps you choose.
This won't work for apps that don't support the pageup/pagedown keys. I mainly wanted it for Chrome, and it works great there, though. To adjust volume with this active, pull down the notifications, and then volume keys should work as volume keys.
Current support: For Android <7, should work normally with xposed. For Android >=7, needs lsposed or edxposed.
direct download: https://github.com/arpruss/xupdown/blob/master/app/release/app-release.apk?raw=true
source code: https://github.com/arpruss/xupdown

Great idea
But after severals times, physical buttons can have physical problems if we use these buttons several times..
And i would like to know what apps have this fonctionnality
Great works :good:

Rom said:
But after severals times, physical buttons can have physical problems if we use these buttons several times..
Click to expand...
Click to collapse
Only if the hardware is defective or of poor quality, I assume. I guess, though, manufacturers might not design the volume keys for as frequent pressing as the navigation buttons on a Palm were. (And those eventually would require cleaning.)
And i would like to know what apps have this fonctionnality
Click to expand...
Click to collapse
Fewer than I would wish. Fortunately, most browsers seem to support the page up/down buttons on external keyboards. I haven't found an office suite that does, though.
I expect a lot of ebook software will support the paging buttons, but good ebook software tends to already have an option to page with volume keys, so it won't need XUpDown.

arpruss said:
Only if the hardware is defective or of poor quality, I assume. I guess, though, manufacturers might not design the volume keys for as frequent pressing as the navigation buttons on a Palm were. (And those eventually would require cleaning.)
Fewer than I would wish. Fortunately, most browsers seem to support the page up/down buttons on external keyboards. I haven't found an office suite that does, though.
I expect a lot of ebook software will support the paging buttons, but good ebook software tends to already have an option to page with volume keys, so it won't need XUpDown.
Click to expand...
Click to collapse
Ok, thanks for your informations

Sadly it does not work on Cyanogenmod 11 (n7100). Nothing happens in every App I used (even in this App itself).

Just to check the obvious, did you enable xUpDown in XPosed and reboot? And are the apps you want checked in the xUpDown list?
Have you tried Chrome?

Great idea. Works perfect here.
Nexus 5 with Chrome beta.

When the keyboard is up, volume keys move the cursor; when it's not up, they send Pag
Yay, it works! At least in some applications.
Request: make this compatible with modules that use the volume keys to move the cursor when the keyboard is up. Or include a function to move the cursor when the keyboard is up in this module. When the keyboard is up, volume keys move the cursor; when it's not up, they send Page Down/Up.

Cerberus_tm said:
Yay, it works! At least in some applications.
Request: make this compatible with modules that use the volume keys to move the cursor when the keyboard is up. Or include a function to move the cursor when the keyboard is up in this module. When the keyboard is up, volume keys move the cursor; when it's not up, they send Page Down/Up.
Click to expand...
Click to collapse
That's a nice idea. Can you point me to source code for a module like that?

arpruss said:
That's a nice idea. Can you point me to source code for a module like that?
Click to expand...
Click to collapse
Ah, I should have done so in the first place. This would be great! I believe you can find the source code from a sub-module in Xblast here, in VolKeysCursor.java:
https://github.com/FemBlack/XblastTools/tree/XBlastTools-1.5.2/src/ind/fem/black/xposed/mods
I think there are also other Xposed modules that do this btw.

Try the 0.02 beta release at https://github.com/arpruss/xupdown
Press MENU to activate this option.

arpruss said:
Try the 0.02 beta release at https://github.com/arpruss/xupdown
Press MENU to activate this option.
Click to expand...
Click to collapse
How would I go about installing this via Xposed? I am wanting a module with cursor keys but don't want to use Xblast or gravitybox as I am on a touchwiz ROM. Your minimal module sounds ideal.
In Xposed even though I set it to show experimental modules your 0.02 did not show up, just the 0.01 version
Thanks
Darren

You should be able to download the apk from the github page and just install it manually.

arpruss said:
You should be able to download the apk from the github page and just install it manually.
Click to expand...
Click to collapse
I don't see an apk file in the link you supplied ( https://github.com/arpruss/xupdown ). I can see 3 folders (assets, res, src/mobi/omegacentauri/xupdown) and 4 files (LICENSE, icon.svg, icon512.png, resize.sh).
In the 3 folders I only see subfolders (in res), .png, .xml and .java files. I cannot see a .apk file anywhere.
Am I missing something obvious?
Thanks
Darren

That's interesting. The mobile version of the github page doesn't have the releases link. Anyway, it's here: https://github.com/arpruss/xupdown/releases

arpruss said:
That's interesting. The mobile version of the github page doesn't have the releases link. Anyway, it's here: https://github.com/arpruss/xupdown/releases
Click to expand...
Click to collapse
Managed to download it and the cursor key direction works on my Samsung Note 2 (N7100) [emoji7]
2 small points...
1 - Toggling the cursor option via MENU does not being up a "reboot to apply" message. The newly toggled option does not work instantly (it keeps the original setting), you need to reboot. Not a big issue as users will generally "set and forget" the option once. Also it is a common approach on Xposed modules to reboot after changes. It is just that some modules (or is it Xposed itself) put a notification up to reboot.
2 - You might want to add on your module description that it handles keyboard cursor movement. Without that nobody will find your module when doing a search with the Xposed app (my usual method of finding cool stuff). I only found your module by googling once I tried all Xposed apps from the Xposed search method.
Thanks very much
Darren

I haven't figured out yet how to inform the Xposed framework about changes and the need for a reboot. I guess I should look at the source code of a few more modules.
Actually, strictly speaking you don't need a reboot when you change the settings, but you do need to kill the apps if they are running or else the new settings don't take.

This is great, especially since StatusBar Scroll to Top is dormant and doesn't work with Chrome. If it works by making the volume keys act like pgup and pgdn, would it be possible to make long presses on them work like Home and End? Holding down does scroll plenty fast for all but the longest pages though.

Oops, I missed the update to 0.2. Cursor control works! But, alas, page up/down doesn't seem to work anywhere, at least not in Chrome, Dolphin, stock LG browser, Dropbox. I have turned off Gravity Box and Xblast, and the volume-key options in the G3 TweakBox (long-press volume up when screen is off to toggle toch). So perhaps my ROM is just incompatible, CloudyG2 (latest version). But still nice work to have integrated those two functions!

Hello, I'm a very newbie in Android development.
First of all, thank your for your great Xposed app.
I wanted to try out with a different keycode (DPAD_UP/DOWN) instead of PAGE_UP/DOWN because many of my apps other than Chrome do not scroll with PAGE_UP/DOWN keys.
I've downloaded the ver 0.02 source code from github and tried to build the app, but with no success. I've got bunch of dependency/reference errors.
Could someone point me to the required prerequisite to compile XUpDown from the source?
-Required Android SDK/build tools version
-IntelliJ/ADT/Eclipse version
-Original AndroidManifest.xml file
-XposedBridgeApi-??.jar version
Thank you very much for your help.

Related

Quick hacked up app to create soft menu/back keys - SoftKeys v3.06

SoftKeys provides on screen keys for menu/home/back/search for devices that don't have those keys in hardware.
SoftKeys is also available in the Android Market
If you want to make themes for SoftKeys you will need the tools to build apks (eclipse/android sdk/etc) and the template from the git repository.
http://git.hoopajoo.net
Changelog:
2011/01/11 - 3.06 - Fix notification keys, boot straight to launcher on system startup
2011/01/11 - 3.05 - Fix notification softkeys <b>broken release</b>
2011/01/10 - 3.04 - Adds dpad and up to 6 custom keys, ability to put device
to sleep, improved performance for key injection, built in documentation, bugfixes
2010/12/23 - 3.00 - Most of the layout code has been rewritten to allow for theming, couple of bug fixes, SoftKeys is now gpl3
-----
Old Changelog (I'm too lazy to reorder this newest to oldest):
2010/12/04 - 1.01 - added launcher selector and remembers last launcher
2010/12/04 - 1.02 - added themes layouts from nemith, looks more like his screenshots but the spinner text is still black so the launcher chooser is hard to read, hopefully I'll have some time to fiddle with that soon
2010/12/04 - 1.03 - My fingers are too fat, I made everything in to image buttons and moved the launcher config to a prefs screen, if anyone has nicer icons let me know these are repurposed from generic android icons
2010/12/05 - 1.04 - Added alternate long-press soft home key for secondary launcher like if you want to use the built-in nook home, added configurable options for what to do if you tap or double tap the nook button while in the softkeys screen, long press on menu/back sends an extra back to the app before sending the requested button for apps that bring up pause screens or something when you move them to the background (angry birds, etc)
2010/12/05 - 1.05 - Integrated the dark theme from nemith, you can choose it in prefs now. Added options to disable the "exit" and "configure" buttons. If you disable "configure" you can still get to the preferences using the "menu" button in the notification bar (e.g. the normal menu button)
2010/12/05 - 1.06 - fix broken key handling, menu and back didn't work, don't use 1.05
2010/12/06 - 1.07 - add recent applications to top of the screen since we don't have a long-press-home recent apps dialog, looking in to re-ordering the buttons next
2010/12/07 - 1.08 - This release adds options to re-order the softkeys, insert soft keys in to the notification area, disable the recent apps list, long press the background to configure if you lost the configure button, and some options for changing the background to dim/blurred/none (note: the notification soft keys show up in the notification area, not in the main status bar like the nook menu/back, I can't put things there as an application you would need to modify system jars to get this effect)
2010/12/07 - v1.09 - Default to non-blurred background and added note about slowness, added option to return to softkeys after pressing back button
2010/12/08 - v1.10 - Selecting "SoftKeys" for your single-press home action will make it so if you launch softkeys, it will go to the launcher unless you hit home again, e.g. single-press home to go to launcher anywhere, double-press home to go to softkeys
2010/12/13 - v2.00 - This adds a new service overlay that is displayed above all apps allowing softkeys to be sent without having to mess with the home button. Default home key behavior has changed to be single click home from anywhere goes to your default launcher, double click home to get to the old softkeys interface. I'm still fiddling with service panel layouts and ideas so things will probably change, I just wanted to get some testing with something simple.
2010/12/17 - v2.01 - The service panel can now be dragged around the screen, you can change it from horizontal to vertial by long pressing it, you can adjust the transparency of the panel and the icon size, and also control if it closes after sending key events. If you don't want the dialog background on the panel you can disable it to just have floating buttons. NOTE: the signing certificate has changed to a release cert, you will need to uninstall the old softkeys before installing this one
2010/12/17 - v2.02 - Now you can move the button that brings up softkeys service, slightly better handling for switching horizontal/vertical layout by long press
veeerrry nice man!
Thanks! I agree with you - I didn't want to permanently re-assign the volume buttons, as I use them in some apps.
One request, if possible ) - Is there any way to make it go to launcher pro (or whatever you want as default) when pressing "Home" in the app? Right now, it asks me to "Pick Home" every time.
ddenson said:
Thanks! I agree with you - I didn't want to permanently re-assign the volume buttons, as I use them in some apps.
One request, if possible ) - Is there any way to make it go to launcher pro (or whatever you want as default) when pressing "Home" in the app? Right now, it asks me to "Pick Home" every time.
Click to expand...
Click to collapse
I never personally use the "home" button, I use the quick drawer thing in the notification bar, so I don't really use a launcher. I could probably quickly add a button just for an alternate home or use last home I guess/choose new home I guess. I'll see what I can do. I've also though about adding arrow soft keys, for using in like connectbot, is there any interest in that?
There are also other minor irritating things, like apps that exit when they are not in focus will not work with this hack. For example, monkey kick (a game my son loves to play) will exit if it's not in focus so it never receives the soft keys. I suppose it doesn't matter though since it doesn't use the screen completely anyway, so he just gets to play on my old g1
bpk said:
I never personally use the "home" button, I use the quick drawer thing in the notification bar, so I don't really use a launcher. I could probably quickly add a button just for an alternate home or use last home I guess/choose new home I guess. I'll see what I can do. I've also though about adding arrow soft keys, for using in like connectbot, is there any interest in that?
There are also other minor irritating things, like apps that exit when they are not in focus will not work with this hack. For example, monkey kick (a game my son loves to play) will exit if it's not in focus so it never receives the soft keys. I suppose it doesn't matter though since it doesn't use the screen completely anyway, so he just gets to play on my old g1
Click to expand...
Click to collapse
Thanks again. Using the last home would be great, if that's possible. I don't personally have any use for additional buttons, but maybe someone else can comment? Rgds.
Awesome.
Code would be cool it would be nice to have them popup at the bottom of the screen like when you press the menu button in an app.
Also to take a screen shot you hold the 'n' button and tap the Vol - button. If you have as much trouble as I did with this method, you can also install drocap2 (root required) which does nice job.
awesome app. its perfect! great replacement until someone does the sidebar buttons like the ones available for the archos
nice work... now if you can make this pop up on the bottom of the screen with a black background like the archos tablets it would be awesome...
thank you, this is a great work around
I put the source up at
http: // git.hoopajoo.net
(take out the spaces I can't post links apparently)
That page has a list of my public git urls available, the last one is SoftKeys
if anyone wants to check it out, I'm currently looking at remembering the last launcher picked and defaulting to that for people that use launchers.
-- the rest of this is just for people looking in to the source, to provide some background to why I did it this way and alternate ideas I had --
If any devs look at it I thought I'd post some of my reasons for doing it this way:
1) I looked at creating a custom init service bound to a keycode at first, this would have made it so you didn't need superuser but would have required modifying your ramdisk. Even just making a daemon and communicating through some kind of pipe would require modifying the ramdisk to get it in init. In the end I abandoned the idea because it seemed easier for most normal people to just install an apk.
2) I looked at binding this to the camera button and remapping it in the keylayout, that would preserve the default home screen selections, but would require modifying a file in your /system/ so people would need to adb their stuff. Again I thought an apk would be easier and adding in shell commands would just complicate things for people and I'm not very good at support
3) I spent a LOT of time looking through git repos from aosp to find out if there was some way to bind to the long-press home and take over the recent apps list, since it doesn't even work. This would preserve your home settings and not even remove an existing function. After several hours grepping through the core.git stuff I decided this was just easier to do. If figured good enough is usually good enough. Though if someone can figure this out it would be sweet.
4) I really was hoping that we could just pull whatever archos is doing since that seems ideal, completely soft buttons. However after downloading the aos firmware I found it was encrypted and apparently currently can only be decrypted by the devices using the public key stored on them somewhere and I'm not aware of anyone having dumped their system images yet.
Also I've been looking through the superuser source to see how they handle the popups, they do a good job of not killing the running app and being all around unobtrusive, doing it their way for the popup buttons would be really sweet since it never seems to break the currently running app.
Great except one thing!
I have LauncherPro so when I click the home button, it always gives me a choice between LauncherPro and the original home. Can you make it so I can set a default? I want to just go straight to launcher pro then I select home.
Pinesal said:
Great except one thing!
I have LauncherPro so when I click the home button, it always gives me a choice between LauncherPro and the original home. Can you make it so I can set a default? I want to just go straight to launcher pro then I select home.
Click to expand...
Click to collapse
The thread is one page long and your question was already discussed.
One page was too much reading?
How about double click home button for menu and hold the button for back? Just my 2 cents.
I have taken the source code and modified it to a be a row across the bottom of the screen, I think this looks a little bit better
Note the bar at the bottom of both. Ignore that ghosting on the second image.
If anyone is good at graphics I can use some images to create a fancier looking bottom bar.
kabi said:
How about double click home button for menu and hold the button for back? Just my 2 cents.
Click to expand...
Click to collapse
I am going to play to play with doing stuff like this. For example. Press Home for the menu. Press Home again to make the meny disappear. Double tap home for menu. Long Press for back.
I think next on my plate is setting a default launcher application to use when you hit the soft Home button.
Here is the github respository for anyone interested: https://github.com/bennetb01/SoftKeys
I can't get this to install. The first one instaled fine but when I kick this off it says it will replace the first version then "application not installed" should I remove the first one manually?
Great work BTW. Thanks
lovelacer said:
I can't get this to install. The first one instaled fine but when I kick this off it says it will replace the first version then "application not installed" should I remove the first one manually?
Great work BTW. Thanks
Click to expand...
Click to collapse
You can uninstall the first one via the following:
Code:
adb uninstall net.hoopajoo.android.SoftKeys
Install the second one normally via:
Code:
adb install SoftKeys.apk
Interestingly enough the adb uninstall command resulted in a failure as well. I just uninstalled via long press at my app screen and was able to install via root explorer on the nook.
Thanks for the help though.
I do like those buttons, I'm not much for making things look nice, typically I just do back end stuff. If you want to rebase against head and post your git repo I'll merge those changes in to main.
I started using launcher pro and realized it does suck way too much to have to select your launcher every time. It's just 1 button press but I'm too lazy.
And for people re-installing, from adb you have to do:
adb install -r <APK>
Also to remove packages I use appremover, or you can use astro file manager with the package manager under the menu.
nemith said:
I have taken the source code and modified it to a be a row across the bottom of the screen, I think this looks a little bit better
Note the bar at the bottom of both. Ignore that ghosting on the second image.
If anyone is good at graphics I can use some images to create a fancier looking bottom bar.
Click to expand...
Click to collapse
Thanks very much for this, sir.
About those images: what size do ya need? i can do them right now.
-K
I didn't want to start a new thread for this piece of information, so this looks like a good place to discuss it. My wife noticed that you can always access the back button by swiping from right to left across the notification toolbar. This worked on her non-root NC as well as my rooted one. Pretty cool!

[7.1-12] Physical Button Master Control 4.4

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 7.1 to 12.
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
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
Source Code: https://github.com/XspeedPL/PhysicalButtonMod
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.
How to report problems efficiently?
- Enable the 'Debug log' in module settings
- Use module 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
Will this work with Google play music?
awakener777 said:
Will this work with Google play music?
Click to expand...
Click to collapse
I haven't tested, but I'm sure it will.
How about add the option of resume the music when I conncet the headset?
@XspeedPL can you implement Gingerbread support plz?
argo7 said:
How about add the option of resume the music when I conncet the headset?
Click to expand...
Click to collapse
I could, but then would need to make an interface to disable unwanted features.
I guess it should be done in a few days.
killoid said:
can you implement Gingerbread support plz?
Click to expand...
Click to collapse
I think there should be no problem.
XspeedPL said:
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
Click to expand...
Click to collapse
And you think that you would be able to disable the lockscreen controls?
Enviado desde mi XT1032 mediante Tapatalk
argo7 said:
And you think that you would be able to disable the lockscreen controls?
Click to expand...
Click to collapse
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
XspeedPL said:
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
Click to expand...
Click to collapse
Pls do that ) It would be amazing
Enviado desde mi XT1032 mediante Tapatalk
1.2
New version: 1.2
Changes:
Added an ability to send play media signal when headphones get connected
Added a settings activity that allows to control which features to use
Made the module compatible back to SDK level 8 ('Froyo' 2.2)
Click to expand...
Click to collapse
XspeedPL said:
New version: 1.2
Click to expand...
Click to collapse
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.
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.
matlink said:
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.
Click to expand...
Click to collapse
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.
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).
1.3
New version: 1.3
Changes:
Fixed a bug that prevented next/previous signals from being sent
Added a lot of customization options to the settings activity
Allowed different keys to be used
Click to expand...
Click to collapse
killoid said:
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.
Click to expand...
Click to collapse
Should be fixed now, also I added the ability to change the keys.
matlink said:
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.
Click to expand...
Click to collapse
rookiegenius said:
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).
Click to expand...
Click to collapse
Should be working now, update.
Very useful, works flawlessly so far on my s4 on stock 4.3... Thanks Dev
Sent from my GT-I9500 using Tapatalk
XspeedPL said:
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
Click to expand...
Click to collapse
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!

[REQ] Swap Recents / Options key

Hello everyone! I just got a brand new Galaxy Note 4 (Exynos) coming from a Galaxy S4. The "new' left softkey now triggers the Recents app instead of being a Menu (Options) key and that makes me sad. I'm not much of a multi-tasker, I'm not going to use it often, but I do like using the Options key in Chrome, picture galleries and basically everywhere since it's easier for me to reach it. I know most apps now have the "three dots" menu, but it's usually very high on the screen (hard to reach on a Note 4) and it's also non-intuitive. One can just press the left soft key with eyes closed, while you need to precisely see where you click if using app's "three dots". So I discovered that if I "hold" the left soft key, it would actually bring the Options menu, but I would like to swap the behavior. One press = Options, Hold = Recent.
I'm on a stock Kitkat 4.4.4 now, running ART, fully rooted. Can someone post(make) a CWM/TWRP .zip to address this problem?
PS: I tried to search for such feature here on the Themes and Apps section, but couldn't find a solution.
Thanks!
Look here: http://forum.xda-developers.com/showthread.php?t=2646304 and here: http://forum.xda-developers.com/showthread.php?t=2337229 I think that the logic is the same, look if there are similarities.
Yay, thanks! Indeed in "/system/usr/keylayout" there was a file called "Generic.kl" and inside of it #254 was called "APP_SWITCH". I changed that to "MENU", restarted and... the button now acts like a Menu key, just like on my old Galaxy S4. For some reason the "hold" function of this key changed to "S Finder" (a search app) and I would like to make it "APP_SWITCH" in order to fully accomplish my goal of swapping those two functions, but still I think now it's a little bit better since I really care more for the Option key, especially on this big screen where reaching the "three dots" menu in upper right corner is not that easy.
Remap buttons with "xposed additions"
Obviously, you need xposed installed.
ctrlaltdeln said:
Remap buttons with "xposed additions"
Obviously, you need xposed installed.
Click to expand...
Click to collapse
Yeah, I've heard somewhere about that, but I don't like Xposed to be honest. I don't live running lots of background processes and Xposed is a whole fremework.
ZeroCGTI said:
Yeah, I've heard somewhere about that, but I don't like Xposed to be honest. I don't live running lots of background processes and Xposed is a whole fremework.
Click to expand...
Click to collapse
It's not as bad as one would think.
Alot of them you could greenify(greenify can function as a xposed module or a stand-alone app), like Wanam.
Also, modules like greenify and boot manager would save you resources and would probably even-out with the resource demands of the framework.
IMO, Xposed is an absolute must-have for a device that's efficient, customized, and blazing fast.
Maybe. Still last time I checked it wasn't available for Samsung TouchWiz based ROMs on Lollipop. And I'm considering the opportunity to step up to the Lollipop upgrade finally and it won't be compatible anyway. I mean I surely can install it now, but I don't like the idea of getting used to it since I won't be able to use it once I upgrade to LP.
I think that you must change menu to app_switch

Remap App Switch To Menu

So ive been search around for a while now on how to fix this. And to anyone that chimes in and says why do you need the menu button obviously you don't use older apps, the new touch button on the screen is a huge annoyance especially since i've used my phones this way since my first S1. Regardless this is how i want it and so do many other people.
Currently this is only for a rooted phone
I have figured out how to remap the left soft key from the App Switcher/Multi window over to the old style menu key. Instructions for that can be found here
But now i don't have any way of switching to my currently open apps, after remapping the left key, the longpress now takes you to search. and long pressing on the home button also takes you to another variation of the search (both i dont use nor want). I want to be able to remap my left softkey on longpress to open up currently open apps (APP_SWITCH) and it would be nice if long pressing on Home could open the Task Manager as it did on my S3.
As far as i can tell editing of the longpress function is done via a Policy edit. Read about that HERE
Keep in mind that post is from 2014 so i have no idea if the internal code is still being handled the same way, i couldn't even find that file on my S6, but i did find a file called SEPOLICY in my root folder using ROOT EXPLORER. Do any of you know more about this and how I can go about changing this? im sure its a code level adjustment. Thanks
Long-press home button can be controlled without root easily.
Check out this app:
https://play.google.com/store/apps/details?id=com.spada.nowgesturetweaksfree
I use the long-press home to get to my last used app.
I wonder if I can remap my buttons to launch any other apps.. Will have to tinker around a bit.
Ewww.
@rbiter said:
Ewww.
Click to expand...
Click to collapse
if you have nothing useful to bring to this discussion then please get out
j1635 said:
if you have nothing useful to bring to this discussion then please get out
Click to expand...
Click to collapse
very useful. menu for navigation is long long outdate. software nave or 3 dots is the customary way to go. adding a secondary menu button is redudant and unnecessary. my little ewww comment brought a lot to the table. you tryingt to call me out on it is less useful.
@rbiter said:
very useful. menu for navigation is long long outdate. software nave or 3 dots is the customary way to go. adding a secondary menu button is redudant and unnecessary. my little ewww comment brought a lot to the table. you tryingt to call me out on it is less useful.
Click to expand...
Click to collapse
lol f off
If you guys use Dropbox, how do you get to the menu with SORT, etc.. without a menu key. This is making me crazy. I'm using nova launcher and there is no floating menu key. ????
The problem is if not every developer uses it, it's inconsistent.
It often helps if the options etc. In apps are on the top, so you don't have to fidget with your phone to reach the top or use two hands.
The menu button on every app is positioned somewhere else, so I find the op wanting it justified.
All in one gestures let's you remap every key, for some odd reason on my s4 I can remap the menu key, but on the S6 for some odd reason the option of the menu key has vanished in the same app:what:
Sent from my SM-G925F using XDA Free mobile app
Hi pal. Hope it helps. Make 254 button remap, then install nova launcher, in tab gestures select long press menu and then recent app. Profit! Now once tapped you have menu button, long pressed - recent apps.
So, i made it, i use it. It works.
j1635 said:
So ive been search around for a while now on how to fix this. And to anyone that chimes in and says why do you need the menu button obviously you don't use older apps, the new touch button on the screen is a huge annoyance especially since i've used my phones this way since my first S1. Regardless this is how i want it and so do many other people.
Currently this is only for a rooted phone
I have figured out how to remap the left soft key from the App Switcher/Multi window over to the old style menu key. Instructions for that can be found here
But now i don't have any way of switching to my currently open apps, after remapping the left key, the longpress now takes you to search. and long pressing on the home button also takes you to another variation of the search (both i dont use nor want). I want to be able to remap my left softkey on longpress to open up currently open apps (APP_SWITCH) and it would be nice if long pressing on Home could open the Task Manager as it did on my S3.
As far as i can tell editing of the longpress function is done via a Policy edit. Read about that HERE
Keep in mind that post is from 2014 so i have no idea if the internal code is still being handled the same way, i couldn't even find that file on my S6, but i did find a file called SEPOLICY in my root folder using ROOT EXPLORER. Do any of you know more about this and how I can go about changing this? im sure its a code level adjustment. Thanks
Click to expand...
Click to collapse
but if i want to change the long press from split screen to menu? how do i find that? will it work the same?
Delphinus3 said:
but if i want to change the long press from split screen to menu? how do i find that? will it work the same?
Click to expand...
Click to collapse
look at my Rom.. it needs changes in framework to get that working..and it is working
Alex-V said:
look at my Rom.. it needs changes in framework to get that working..and it is working
Click to expand...
Click to collapse
i saw your page.. there are 2 roms i seem to like, yours and EMPORIA but idk who is best. lol i haven't even bought the phone yet but yea the menu button will be missed for me. what i want in a rom? if its based on stock i like it as close to stock as possible (no bloatware), call recording, if there's an option for increasing camera performance thats awesome, better battery life than stock original. that's it basically. and if i only want to root, how can i change menu longpress? i hered theres like a toolbox root app for galaxy devices...
Delphinus3 said:
i saw your page.. there are 2 roms i seem to like, yours and EMPORIA but idk who is best. lol i haven't even bought the phone yet but yea the menu button will be missed for me. what i want in a rom? if its based on stock i like it as close to stock as possible (no bloatware), call recording, if there's an option for increasing camera performance thats awesome, better battery life than stock original. that's it basically. and if i only want to root, how can i change menu longpress? i hered theres like a toolbox root app for galaxy devices...
Click to expand...
Click to collapse
it's only my personal rom..means it's not made for making any profit or let's say thousands of users..
i think you must try it yourself for one or two days and compare..my is very clean

MOD - [ROOT REQUIRED] use volume keys to move cursor in txt field

@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger. The mod involves some changes to the framework.jar file in /system/framework/. To make it work, you just need to replace the current framework.jar file with the one you DL from the following link and reboot. The first reboot takes a long time. It will go to the "Android is starting" screen and take a while to complete. Be patient. It is a good idea to keep a backup of the original framework.jar file.
I have only tested this on the WETA ROM for TMO. However, it should work on any TMO ROM where the framework.jar has not already been modified. I confirmed with @NotATreoFan that his ROM has an unmodifed framework.jar file. So, this should work on his ROM, at least on TMO.
I do not know if the mod will work on v20 ROMs for other carriers other than TMO. You could probably do a CRC compare of the stock TMO framework.jar and the one in your ROM to be sure. If the files are the same, the mod should work.
If it works on your non-TMO ROM, let me know.
https://drive.google.com/file/d/0Bz2LTeGg4ZTHeGpFY1BMZEVRNGM/view?usp=drivesdk
mcdavid said:
@dwitherell made an awesome mod that I have used in other ROMs and have not seen for the V20. So, I asked him if he could make it for the V20. All credit goes to him.
The mod lets you use your volume keys to move the cursor back and forth while you are in a txt field. It is very helpful when you type a long txt, for instance, and you realize you need to edit it. It's much easier to use the volume keys than to try to get the cursor where you need it with your finger.
Click to expand...
Click to collapse
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
2muchspl said:
This kinda cool to know, quick Q... How do the volume buttons behave outside of a text...do they still control volume? Does the mod work in web based message boards like here?
Click to expand...
Click to collapse
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
mcdavid said:
I had the same question before I first used it. When not in a txt field,. which is most of the time, volume controls work totally normally. It should work any time you are able to type. It just works. Note that you will need to re-replace the framework.jar file every time you flash your rom (unless the dev decides to bake in the modified jar file).
Click to expand...
Click to collapse
Definitely gone give this a spin
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
jeep447 said:
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
Click to expand...
Click to collapse
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
jeep447 said:
I appreciate the mod from Dwitherell so I'm definitely not trying to downplay it or anything, but just thought I'd mention this for anyone who uses SwiftKey and doesn't know about it already (or anyone else who might want to try it)..
SwiftKey keyboard has an option in it's settings called "arrow keys" (which is not enabled by default) that adds a row of up, down, left, and right arrow keys across the bottom of the keyboard, which allow you to navigate the cursor throughout your text.
I know everyone has their own preferences so to each their own of course but imho it basically eliminates the problem this mod was made for, and for me at least whenever I try different keyboards always wind up switching back to SwiftKey because I'm so use to having the arrows. Anyway hope it helps
Sent from a ridiculously modified ColecoVision
Click to expand...
Click to collapse
Yes. I have used the arrows on swiftkey before. I like the volume keys better because you can use your left hand to quickly move back and forth, while you can swype type with your right, without having to peck around with a finger on the arrow keys. Install the mod and see what I mean.
Vuciz said:
Google Board (G-Board) allows you to use wipe gestures on the space bar to move around quite a bit, quite fast. Just throwing that out there too.
Click to expand...
Click to collapse
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
mcdavid said:
Yes and the stock LG keyboard lets you swipe in the space bar to move the cursor. For me, it is more precise to move one space at a time with each click of the volume key. Try it an you'll see.
Click to expand...
Click to collapse
I've used that mod before. I agree it's useful. However I prefer on screen controls.
My new app Cursor Control lets you use the volume keys to easily move the cursor in text fields and works without Root.

Categories

Resources