New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
luis12285
Old
#1  
Member - OP
Thanks Meter 6
Posts: 85
Join Date: Apr 2008
Location: Corinth

 
DONATE TO ME
Default Headset controls

Ok I picked up a new headset today (broke my OEM headset) and I really want to get the volume up/down and the answer/end keys to work for winamp.....I did a bit of snooping around with root explorer and found something very interesting..... (/system/usr/keylayout/sec_jack.kl) and when I opened it with text editor I get this (key 248 send_end)....anyone wanna give me a good push in the right direction? I would love for this sony headset to work like it does in my wife's 4g... control volume up/down, and play,plause,fw,rw...ect.

Sent from God using my Epic4G
 
luis12285
Old
#2  
Member - OP
Thanks Meter 6
Posts: 85
Join Date: Apr 2008
Location: Corinth

 
DONATE TO ME
AVRCP.kl
key 200 MEDIA_PLAY_PAUSE WAKE
key 201 MEDIA_PLAY_PAUSE WAKE
key 166 MEDIA_STOP WAKE
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
key 168 MEDIA_REWIND WAKE
key 208 MEDIA_FAST_FORWARD WAKE
key 164 MEDIA_PLAY_PAUSE WAKE
key 128 MEDIA_STOP WAKE
key 159 MEDIA_FAST_FORWARD WAKE
I'm asuming this is the blutooth keymap.... anyone know how I could get these to to work in the sec_jack.kl.... or figure out how to find out wha keys are for my volume controls on my headset?
Sent from God using my Epic4G
 
ap77
Old
#3  
Senior Member
Thanks Meter 6
Posts: 118
Join Date: Dec 2010
Quote:
Originally Posted by luis12285 View Post
Ok I picked up a new headset today (broke my OEM headset) and I really want to get the volume up/down and the answer/end keys to work for winamp.....I did a bit of snooping around with root explorer and found something very interesting..... (/system/usr/keylayout/sec_jack.kl) and when I opened it with text editor I get this (key 248 send_end)....anyone wanna give me a good push in the right direction? I would love for this sony headset to work like it does in my wife's 4g... control volume up/down, and play,plause,fw,rw...ect.

Sent from God using my Epic4G
Yeah, you want to change it to headset_hook or something or other like that. I did the same (don't have the exact term in front of me) and can now get play/pause/fwd through the inline remote. You're out of luck for volume and the like, though.

Mind blowing that this isn't enabled by default, Samsung.
 
luis12285
Old
#4  
Member - OP
Thanks Meter 6
Posts: 85
Join Date: Apr 2008
Location: Corinth

 
DONATE TO ME
Yea... totally blows.... so change (keyXXX SEND_END) TO (key XXX headset_hook)
Quote:
Originally Posted by ap77 View Post
Yeah, you want to change it to headset_hook or something or other like that. I did the same (don't have the exact term in front of me) and can now get play/pause/fwd through the inline remote. You're out of luck for volume and the like, though.

Mind blowing that this isn't enabled by default, Samsung.


Sent from God using my Epic4G
 
ap77
Old
#5  
Senior Member
Thanks Meter 6
Posts: 118
Join Date: Dec 2010
Quote:
Originally Posted by luis12285 View Post
Yea... totally blows.... so change (keyXXX SEND_END) TO (key XXX headset_hook)




Sent from God using my Epic4G
Yep, I think that's it.