Remap Hardware Buttons - Android Head-Units

I was wondering if it is possible to remap the hardware buttons on an android headunit. For example at the minute my media buttons only work for the stock apps, so skip next/previous etc. are useless in poweramp. It would also be cool to remap a useless source button to something like voice control. I have tried downloading apps that have always worked for me flawlessly in the past such as multilnguage keymap redefiner but they don't detect anything on key press. I know that you can manually remap by editing a .kl file but my headunit isn't rooted.
Thanks!

maybe under settings/general/extra settings/panel keys ?
extra settings password could be 123456

Hi! I hadn't read your thread so I posted this... Did you ever get around it?
http://forum.xda-developers.com/and...emap-car-buttons-to-interact-android-t3388375

Related

Software buttons working in Java apps

Hi,
I'm having a problem with Java apps and I did not find a solution for it for 2 weeks now so I decided to try experts help.
I wanna play some Java games but none of them seem to recognize the software buttons that are as you know located on the touch screen. I think Java apps do not realize that there's a touchscreen at all. I tried apps like AEBButtons (or something) to remap other hardware key but none seemed to work Is there a solution?
I'm using JBed 20080222.3.1
Please help.
I think you have to use AE Button Plus or go to button icon under settings to map the left and right softkeys. Those are the buttons shown on screen but cant be used by Jbed.
Hope that helps.
Yeah !! This works but I can define only one button there (camera button). Is there a way to add more buttons, like D-pad directions as you've said ??
I actually ended up using the volume up and down buttons as the left and right softkeys through AEBPlus. But There are options for long press button actions and other things so its just finding which button suits you best. BTW, I tried adding actions to the D pad but never managed it using AEBPlus (it didt recognise it when i pressed it).

Is there a way to remap the headset controls?

I like to use the HTC headset especially while running, mostly because of the controls in the wire.
They´re very useful, but I think they would be much more useful if I could, for example, remap the FF e FW (holing the previous and next button) to volume up and down, that is missing.
I also would like to remap holding the play/pause key to launch the voice recording app.
I´ve tried with AE Button Plus and searched for registry keys (dispite not beeing to experienced in that) with no sucess. AE doesn't recognize when I press the headset buttons and I could't find any entry in the registry to do it.
So i ask: is this possible? If so, can someone tell me how or at least give a path to try doing this?
I´ve searched but only found another question like mine: http://forum.xda-developers.com/showpost.php?p=2965106&postcount=10

App for remapping HW buttons?

Been searching a little, but couldn't really find what I was looking for.
I'm looking for an app that would let me rebind the hardware buttons on my x8. A bit more specifically, something that would only remap buttons while screen is off, so I don't lose any functionality while screen is on.
The purpose of this would be to allow me to use hardware buttons to control music. Thinking menu/back keys for skipping tracks and camera key for pause. Not like the menu/back buttons do anything when screen is off anyways.
Optionally, long-press of volume keys for skipping tracks if menu/back is a no-go.
Not asking for anyone to write this app, just wondering if anyones been down the same street and found something usable
Other than creating your own app/hack, 'Tasker' may be able to help you out. I'm not sure if want you want to do is achievable with 'Tasker', but it's worth a shot.

Volume keys for musik skipping on Stock Android

Hi,
I've been using CyanogenMod 10.2 on my Nexus 4, but I changed back to Stock Android. But now I'm missing a very useful option: the option to use the volume keys for skipping the Musik when the screen is on and I would like to use it now on Stock Android. The Apps in the Play Store don't work like I want, on one hand they don't work that good and on the other hand they only change the volume control to musik control, but I want to use both (short press for volme up/down, long press for next/previous title) so I thought I could use the ButtonRemapper or Tasker to make this real. But I can't find a function for "long press" in the ButtonRemapper or the possibility to have two things on one button or, in ideally a way to only activate it when the screen is turned off. And in Tasker (I only have the free version now for testing) I can't find a way too, so there would only be the possibility of a script for all I know.
Is there any way to solve my problem?
BTW: I have Android 4.3, rooted. And I need an "step-by-step-walkthrough", especially when I need a script because I don't know anything about scripting, so please have understanding when I need an easy way for that.
Works now with Xposed Framework...

Keylayout

Hallo, the new Recent Apps button is annoying me. So i tried to rebind the button to menu. This worked. I changed the /system/usr/keylayout/Generic.kl. (Swapped key 254 (APP_SWITCH) and key 127 (MENU). But I don't know how to rebind the APP-SWITCH key to the hold home key, wich brings me to Google Now. Google Now would be nice on hold MENU, but if I hold the changed button S Finder appears.. I don't need it. So could you tell me, how to bind APP-SWITCH to hold HOME, and Google Now to hold MENU please?
The change I made was inspired by this thread: http://forum.xda-developers.com/showthread.php?t=2337229
Thanks, Colin P
You can use the xposed framwork additions module to remap hardware keys. Or any number of other Play store apps will also endeavor to do so for you.
Or you could directly edit the the /system/usr/keylayout files. As you aren't already doing this though, I can only presume that you aren't familiar with the syntax. In which case, xposed will be your best option.
.
I have a question that involves keylayout, since this is a similar thread, I thought I should ask here. I've added on-screen navigation buttons, and want to disable the soft touch keys (I accidentally press them a lot...). I found out through a Note 2 forum that I need to put a # sign in front of keys 158 and 139, but I think it might be different for Galaxy S5. Can someone help me disable the two soft touch keys (back and recent apps keys). Thanks a lot
You should start your own thread, rather than hijack an existing one.
In short, you can either use an app like Xposed to reassign the keys or edit the keylayout files directly. Simply leave the keys in question unassigned. If you find that the keys still light up, that can be disabled in the Settings menu with the touch key duration setting = always off.
.

Categories

Resources