Use volume buttons to skip songs - Galaxy S6 Edge Q&A, Help & Troubleshooting

I'm on the CarHD 6.0.1 rom and I'm looking for a way to skip songs by longpressing the volume buttons. My S4 used to have this function but it wasn't advertised anywhere specifically, so I have no idea how that worked.

Wanam xposed doesn't work?.
Sent from my SM-N920C

Related

Headset Button Controller with Galaxy S3?

I want to be able to use the headset + and - buttons as track forward/back controls rather than volume (i.e. how my previous HTC phone worked). I've installed the trial version of Headset Button Controller, but although it seems to work fine for the play/pause button, the + and - buttons always cause the onscreen volume function to activate.
Any ideas? Is this app compatible with my S3, and if not could you suggest another app which works to reconfigure the +/- buttons? Is there maybe a discussion thread for this app here, as I can't find one? Thanks.
Andre
If you're rooted, Tweakbox (needs Xposed) will let you do what you're asking for when the headset buttons are held down (this also extends to the volume buttons on the phone proper) but only if the phone is locked and its screen off. The headset play/pause button works without any external application needed, at least for the stock music player. I've been using Tweakbox for a while on my GSIII with no problems (just don't choose to install the libraries in Xposed - they're older versions).
Thanks, but a bit convoluted and limited to screen-lock time - plus I'd prefer to keep the on-phone volume keys working as normal volume keys. Still, it's worth considering if there are no other ideas. (The phone is rooted though; I did that almost as soon as it came out of the box)
Andre
andrewilley said:
limited to screen-lock time
Click to expand...
Click to collapse
If you happen to have the SDK installed, you can change that: https://github.com/rovo89/XposedMod...ed/mods/tweakbox/VolumeKeysSkipTrack.java#L26
plus I'd prefer to keep the on-phone volume keys working as normal volume keys
Click to expand...
Click to collapse
Ah, fair enough, but since it only comes into play if the buttons are held down I'm perfectly fine with it.
Best regards
I'd really like to get Headset Button Controller (or similar) working to be honest.
I currently (on my HTC) use single-clicks on the headset's +/- buttons for next/previous track, and double-clicks for next/previous album folder, and I'd also like to have long-pressing for fast-forward and fast-rewind if possible. Plus keeping the on-phone volume keys for normal volume control.
Andre
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
I changed the values in the Generic.kl file and it worked.
I decided to change the values back and give Headset Button Controller a try. It didn't work. I tried uninstalling it and now no controls on the headset works.
I read that JAYS Headset Control was a good alternative. That also doesn't work. Seems that I killed all the headset control functions.
How can I get the controls to come back?
I changed settings back and forth a few times with the .kl files, and as long as I rebooted between changes it worked fine.
Also, Headset Button Controller worked fine to re-assign the functionality of those new headset >> and << buttons, but only after I'd first activated them using the .kl file edits of course.
Does copying your original backup Generic.kl file back into place not get you back to your original stock settings? If not, do you have a nandroid backup you can roll back to?
Andre
Thanks for the reply.
I don't think I have a nandroid backup. I did copy the old backup file of Generic.kl file back and still hasnt given me back the old functions.
What do you suggest? Go back to the old original file or do I edit to what what you have done?
Well if you go back to the original file and reboot (and that was the only file you touched) then it should go back to the stock settings.
Andre
qwerty12 said:
If you're rooted, Tweakbox (needs Xposed) will let you do what you're asking for when the headset buttons are held down (this also extends to the volume buttons on the phone proper) but only if the phone is locked and its screen off. The headset play/pause button works without any external application needed, at least for the stock music player. I've been using Tweakbox for a while on my GSIII with no problems (just don't choose to install the libraries in Xposed - they're older versions).
Click to expand...
Click to collapse
Thanks heaps for this post. Pretty much got rid of any need for me to flash a custom ROM.
andrewilley said:
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
Click to expand...
Click to collapse
Edit: Sorry I thought I was in the att section. You can use the zips to place your file in if you like.
Works great. Here are recovery zips to make it easier. Taken from ATT S3 on LG1.
Download: http://d-h.st/asK
MD5: aa8334da5d76d8e0a0dd26eafac269c6
Uninstaller Download (reverts back to stock): http://d-h.st/2DC
MD5: c2bd8ccbe81c230ef97997267b600d0c
Glad it works. I didn't put up zips of the files that I found, just in case the contents vary by carrier. It seemed such an easy text edit, which carries less risk, so I thought I'd give the method rather than an upload. But feel free to try either.
Andre
andrewilley said:
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
Andre
Click to expand...
Click to collapse
What would I need to change to keep the Volume buttons as they are but change the Pause button to skip/next track?
Spartoi said:
What would I need to change to keep the Volume buttons as they are but change the Pause button to skip/next track?
Click to expand...
Click to collapse
Not tried it, but I guess you'd need to use the values from the line that controls the middle button:
key 226 HEADSETHOOK WAKE
And swap with the media-next codes from:
key 163 MEDIA_NEXT WAKE
Keep a backup of the original file before you start though, which you can revert to if things go wrong. And see http://source.android.com/tech/input/key-layout-files.html for more details.
Andre
Is there a way to set the headset button to launch S voice when you are holding it?
XblackdemonX said:
Is there a way to set the headset button to launch S voice when you are holding it?
Click to expand...
Click to collapse
I'd suggest using an app, like Headset Button Controller.
Andre
i'll check it out, thanks!
XblackdemonX said:
i'll check it out, thanks!
Click to expand...
Click to collapse
Try Nocs app it's free
Thank you so much for this, this solved all my problems!
One thing I had to after I made the change was to un-install and re-install the headset button controller app. (As I wanted to use it also!)

[Q] Volume buttons only control media volume?

I know there have been related topics of the volume rocker buttons only controlling media volume, but my question is spawned by something else that I was able to do a few days ago.
So I used to have a HTC amaze, the volume rockers controls the ringer/notifications. I liked that. I tend to change my notification/ringers often throughout the work day. But now I'm noticing on my SIII that the buttons only control media, which I understand is practical seeing as how ringers/notifications are thought of as a set it and forget it.
But the other day I was at the movies and was able to hit my volume rocker and it controlled my ringer volume and went all the way down to vibrate. And I did this from the home screen. I do it now, and it controls media. I know that you can hole the power button and you have quick access to vibrate, silence and sound and then when hitting the volume rockers you can adjust the sliders to control system, ringer and notification.
Any ideas on why I was able to control my ringer/notification volume via the rockers but now I cannot?
The volume settings are environment sensitive: if you're in a media app (includes all apps except dialler, ...) you get the media settings.
Homescreen should give you dialler. If not: are you using another launcher than stock?
You can set the other settings through the gear symbol in the on-screen volume display which pops up when pressing the volume rockers
Sent from my GT-I9300 using xda premium
d4fseeker said:
The volume settings are environment sensitive: if you're in a media app (includes all apps except dialler, ...) you get the media settings.
Homescreen should give you dialler. If not: are you using another launcher than stock?
You can set the other settings through the gear symbol in the on-screen volume display which pops up when pressing the volume rockers
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Everything is stock on my phone. I've tried it within multiple different apps, and they all just allow for control of media volume, even the dialer.

Volume Keys to Skip Tracks Not Working?

I am on the latest Alliance and I am trying to get the volume keys to switch tracks .. What I have tried 1)Searching 2)Installed the Xposed module that let you set this option and it didn't work 3) I tried using Wanam to set this under the sound settings rebooted and no luck.
Am I missing something because this function is something I use more than any other function. I hate having to turn the screen on to skip tracks . Or double clicking the inline mic to skip tracks which is my only other option .Any advice would be much appreciated . I did see other threads related to this but it wasn't device specific. Thankls in advanced

Is there any way to make the volume buttons control music while the phone is locked?

I'm coming from a Note 3 which ran Cyanogenmod. Within the settings, there was an option that let me use the volume up and down buttons to rewind and fast forward songs without having to wake my phone up. This came in handy for obvious reasons when I was driving or commuting to school.
I don't see any options in the phone's settings that allow me to do this, but maybe I wasn't looking in the right places? I can't take my eyes off the road every time I want to change the song. I haven't rooted just yet, but I am planning to. I don't want to flash a custom rom because I don't want to lose LG's camera app. If there isn't an option in LG's settings, is there an Xposed mod that will allow the volume buttons to control music?
Gravitybox / Physical Button Music Control both work.

Change music volume with buttons and switching last apps

Hey,
On CyanogenMod you can change that buttons change music volume not profile volume. Can I do it on stock? I have phone always on vibrations so with buttons I want to change music volume.
#2
So if I ask about buttons. On CM there is else that long press on square button (next to home) switch last apps. Is it possible on stock?
You won't actually have those features on stock at all, but you can get skipping tracks via volume buttons using an app on Google Play. As for holding recents button to go to the last opened app, that would need CM. Our stock recent button uses menu when long pressed.

Categories

Resources