[Solved] hardware button Changer programm - HD2 Android Themes and Apps

Hi,
i can´t find a programm to disable the green and red Hardware Button on my htc hd2 with android at a call ring. I got my hd2 in my pocket so someone would call me and the hardware buttons will me take up or hang up the call automatically.
to get the call i want only use the touchscreen, and not the hardware buttons
Need help to find a app to configure the hardware buttons.
many thanks.
Promaster

i havent used it myself, have you tried this?:
http://forum.xda-developers.com/showthread.php?t=850464

Hey Thanks,
yes it works, but i must use the version in the market, cost 0,65€.
so i can change the hardwarebutton to other funktions.
"Endcall" red Button change to "Power"
"Call" green Button change to "Search"

Google for Blackmarket

Promaster said:
Hey Thanks,
yes it works, but i must use the version in the market, cost 0,65€.
so i can change the hardwarebutton to other funktions.
"Endcall" red Button change to "Power"
"Call" green Button change to "Search"
Click to expand...
Click to collapse
when i tried to set it up although the green call button set up fine the end call button still ends the call.
Never mind. Got it working now.

change the value in system/usr/keylayout/qwerty.kl
e.g.:
call key remap to search key
Default :
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
.....
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
Remaped:
key 231 SEARCH WAKE_DROPPED
key 61 SEARCH WAKE_DROPPED
.....
key 127 CALL WAKE_DROPPED
key 217 CALL WAKE_DROPPED

Related

Remapping keys.. [camera]

I am interested in remapping the key to take a photo using the htc camera. Has this been done, or is it even possible? I found nothing specific to the hero in my searches so I'm not sure. I just hate using the trackball.
barnacles10 said:
I am interested in remapping the key to take a photo using the htc camera. Has this been done, or is it even possible? I found nothing specific to the hero in my searches so I'm not sure. I just hate using the trackball.
Click to expand...
Click to collapse
Just edit the heroc-keypad.kl(may have a different name) in system/usr/keylayout;
I always remap my "phone" button to be the "camera" instead, and then I use the "search" button for autofocus.
Decad3nce said:
Just edit the heroc-keypad.kl(may have a different name) in system/usr/keylayout;
I always remap my "phone" button to be the "camera" instead, and then I use the "search" button for autofocus.
Click to expand...
Click to collapse
So I just opened the heroc-keypad and I honestly don't know what to do in there or rather what does what. I'm real interested in this since i don't use my volume keys and eventually when the I1 comes out on sprint which will be the first sprint phone with push to talk and android I would like to port it to our phones (or try) so that we have ptt
thatguythatdid said:
So I just opened the heroc-keypad and I honestly don't know what to do in there or rather what does what. I'm real interested in this since i don't use my volume keys and eventually when the I1 comes out on sprint which will be the first sprint phone with push to talk and android I would like to port it to our phones (or try) so that we have ptt
Click to expand...
Click to collapse
Well essentially it shows you what key does what.
Code:
key 102 HOME
key 139 MENU WAKE_DROPPED
key 158 BACK
key 127 FOCUS
key 231 CAMERA
key 107 ENDCALL WAKE_DROPPED
key 191 DPAD_CENTER
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
Key 231 is usually "CALL" and Key 127 is usually "SEARCH"
I just went in and changed it to "CAMERA" and "FOCUS" and then pushed the file back to system/usr/keylayout/
You can also change things like "WAKE" if you want the action to wake the phone from sleep. It wouldn't be too hard to create a new action to be called by the physical button push. Though I haven't tinkered around too much with that.
Thanks gonna try some things out
thanks, I might try this. So what happens when you push the phone button on the home screen say. Does your camera boot?
barnacles10 said:
thanks, I might try this. So what happens when you push the phone button on the home screen say. Does your camera boot?
Click to expand...
Click to collapse
Yep, sometimes requires a long-press though.
Then if I push "Search" for auto-focus, followed by "Phone" again for camera, it takes a snap shot.
Really handy.

[MOD] Remap search softkey to camera

I TAKE NO CREDIT FOR THIS LITTLE HACK, THIS WAS DONE FOLLOWING THE INSTRUCTIONS FROM THIS SITE.
ALL CREDIT GOES TO Decad3nce for making this as easy as 1,2,3.
---------------------------------------------------------------------------------------------------------------------------
THIS SHOULD WORK ON ANY 2.2 ROM. I DON'T KNOW ABOUT 2.1.​--------------------------------------------------------------------------------------------------------------------------------------------------------------
***INSTRUCTIONS***​
1) Download the file HERE
2) put the "incrediblec-keypad.kl" file you just downloaded into the TOOLS folder of your Android-SDK folder.
3) run this:
Code:
adb remount
adb push incrediblec-keypad.kl /system/usr/keylayout
4) Reboot your phone, and then long press the search key to check it out!
-------------------------------------------------------------------------------------------------------------------------------------
UPDATE​
Big Thanks to Touchpro247 over on at for putting together a .zip to flash via recovery!
"Just install via recovery.
or
Un-install via recovery."
no way! i requested this exact feature a while ago on android forums but seemed nobody was interested. so i gave up, haha. so stoked to see this, at work right now, but i am def gonna install this when i get home. thank you!
Awesome find! I like to use my voice search for the search button so I instead mapped camera to the long press menu button.
Is there a way to get this working with optical pad?
Didn't think the whole menu button thing to thoroughly. Going back to Search button.
Thanks a bunch for the support guys!
I'm not too sure about the optical trackpad sorry man!
Would people be able to use Root Explorer to copy the file into designated location? I renamed the original file, just to be safe and copied the new one...then rebooted and it disabled all the soft keys...so I am back to the original for now.
Here's an update.zip for it.
Just install via recovery.
or
Un-install via recovery.
Thanks for posting!
touchpro247 said:
Here's an update.zip for it just install via recovery.
Thanks for posting!
Click to expand...
Click to collapse
Awesome touchpro...
Reason, I did it that way was I wanted to keep the original for backup. I will try update.zip. Thanks!
Tats_06 aka olta777
touchpro247 said:
Here's an update.zip for it just install via recovery.
Thanks for posting!
Click to expand...
Click to collapse
Your welcome man, thanks for posting this, I tried and tried to do this and couldn't get it. I appreciate it. updating OP.
op, thanks for posting
When I edited the the incrediblec-keypad.kl file to use a long press of the Menu button, the short press of the Menu button stopped working. So, no more menu access.
What am I doing wrong? Thanks.
Code:
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 217 SEARCH WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 139 CAMERA WAKE_DROPPED
key 102 HOME WAKE_DROPPED
So, would replacing the key ID with the ID of the optical trackpad button work?
Good questions guys I wish I could be of some help but I don't know much about this stuff
WOW, this works perfectly! Thanks for posting...I always hated the search button anyway.
INTREPID-NY said:
When I edited the the incrediblec-keypad.kl file to use a long press of the Menu button, the short press of the Menu button stopped working. So, no more menu access.
What am I doing wrong? Thanks.
Code:
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 217 SEARCH WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 139 CAMERA WAKE_DROPPED
key 102 HOME WAKE_DROPPED
Click to expand...
Click to collapse
Curious, did you edit it in a "unix" editor? If you used something like notepad to change it and save it, it would be saved in the DOS format. I wonder if using something like Textpad to open and save it in UNIX text format would make it work...
I used ultraedit - it may have saved it in DOS format. I'll give it another try and make sure it saves as Unix.
Is there a way to make the the search function still work on a short press? When I short press my search button it does nothing but when I long press it brings up the camera...any fix would be great thanks!
AisforAustin said:
Is there a way to make the the search function still work on a short press? When I short press my search button it does nothing but when I long press it brings up the camera...any fix would be great thanks!
Click to expand...
Click to collapse
if you do that, it may wanna bring up the search menu while you are taking a picture with this button (when camera app is open).
Farenhe1t said:
WOW, this works perfectly! Thanks for posting...I always hated the search button anyway.
Click to expand...
Click to collapse
yes , I think so.
Can anyone point me in the right direction of a droid incredible keymap? It doesn't seem that pressing the optical track pad button is mapped to anything easily recognizable in the qwerty.kl file, so I'm not sure how to find the button's ID. I looked in the optical trackpad wake thread, but the only difference I could see between that file and the one on my phone is that key 232 was changed from WAKE to WAKE_DROPPED, which I imagine wouldn't change whether the key could wake from sleep or not. I tried using the zip in this thread modified to sub in key 232 (dpad center, seems like maybe thats opti trackpad press) but it did not launch the camera as expected.
As far as I'm concerned, the ideal button mapping would be pressing the opti track pad to launch the camera app, and swiping any direction on the opti track pad to take a picture from within the camera app. First step is to get that button to launch the app, which is preferable to rebinding search, since the opti button isn't used for anything anyways.
Any help would be greatly appreciated.
im currently trying to remap the short press on my milestone to act as the long press (so i can set it to open quick settings on short press) and then the long press can be set to the search. could anyone point me in the right direction? i know how to remap keys but im having trouble changing the short and long press for my search key.

Wakeup Legend 2.2 with Trackpad

Works on my Legend with 16/Nov 3.14.161.1 r1 - Stock Froyo ROM
Boot into Clockworkmod
Type the folowing comands in adb shell to mount /system and pull files from your device:
Code:
adb shell mount /system
adb pull /system/usr/keylayout/qwerty.kl
adb pull /system/usr/keylayout/legend-keypad.kl
Now edit legend-keypad.k by adding a line:
Code:
key 272 DPAD_CENTER WAKE_DROPPED
Now edit qwerty.kl by replacing the line
Code:
key 232 DPAD_CENTER WAKE_DROPPED
with the line above.
qwerty.kl should look like this
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 272 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
legend-keypad.kl should look like this:
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 272 DPAD_CENTER WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
Now push them to your device:
Code:
adb push qwerty.kl /system/usr/keylayout/qwerty.kl
adb push legend-keypad.kl /system/usr/keylayout/legend-keypad.kl
Reboot
Awesome, not being able to wake the device was a deal breaker for me. Will try this tomorrow. Thank you
Sent from my Legend using Tapatalk
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
ivanvava said:
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
Click to expand...
Click to collapse
yeah...i also had the same issue...any way to fix this? I am currently using FroYo - Android 2.2 -Kernel 2.6.32.17 - Build on Vodafone release - ROOTED ROM now
Yep, can confirm the same problem aswell. This feature works like a charm on the CyanogenMod releases for the Legend. Think theres a point in perhaps checking in with AleBa or just reviewing the keypad.kl and qwerty.kl ?
I tought I fixed it, turned out it only worked when USB was connected :s
btw is it possible to stop Legend from waking up with volume Buttons? its pretty annoying while having the phone in pocket and unlocks itself after adjusting volume. Sometimes the alarm clock is set or reversed track or something.
greenolive said:
...This feature works like a charm on the CyanogenMod releases for the Legend...
Click to expand...
Click to collapse
I'm using RC2 now (had nightly before) and in none of them I could wake up the phone by pressing the trackpad. What do you mean by "works like a charm"? This method described here or wanted to say it is already included in CM's ROMs? Because I couldn't find it if it is...
Rapier said:
I'm using RC2 now (had nightly before) and in none of them I could wake up the phone by pressing the trackpad. What do you mean by "works like a charm"? This method described here or wanted to say it is already included in CM's ROMs? Because I couldn't find it if it is...
Click to expand...
Click to collapse
Hmm I really don't understand why you need to use this mod if your Legend is running on CM RC which already includes (in CyanogenMod settings) trackball wake (+trackball/menu to unlock)
I was trying this mod (and another one which looks very similar from another old thread) for my ripped Vodafone ROM
fatthumb said:
Hmm I really don't understand why you need to use this mod if your Legend is running on CM RC which already includes (in CyanogenMod settings) trackball wake (+trackball/menu to unlock) ...
Click to expand...
Click to collapse
Nevermind...I was too blind to see it, now if found the option. And indeed it works
Ok I did some research and it looks like it's the kernel blocking the input after some period of time. It works perfectly when the usb is connected cause then it allows any input. Now since the source isn't available yet I don't think we can get it to work properly.
do you have any news?
you have any news?
No still don't work properly :-(
ivanvava said:
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
Click to expand...
Click to collapse
That appears to be a problem with the .32 kernel. It's also present in CM 6.1 if you flash the experimental .32 kernel.
does anyone know of a simple app that does this on froyo (and disable lock screen)?
used to use this on 2.1 but doesnt work so great with froyo:
http://www.appbrain.com/app/screen-mode-widget-lite/com.ooha.screenmodelite
Any update on this yet? Anxious to be able to wake my Legend with the trackpad
iam make a package to do this for you .
download this (on attachment) and install with fake flash !
iam test this on mvz superfroyo v8 and CMRC2 .
"trackwake-Froyo.zip" don`t work for me... After I`m lock it works, but if wait sometime it doesn't wake the phone...
brehm_ss said:
"trackwake-Froyo.zip" don`t work for me... After I`m lock it works, but if wait sometime it doesn't wake the phone...
Click to expand...
Click to collapse
that was already mentioned here, after 20-30 seconds looks like the kernel blocks the buttons (for energy saving or whatever) and the trick doesn't work

Softkey patches for various phones.

I got tired of chasing down new roms that need patching for the softkey positions on certain phones. like the US Huawei Assend X (U9000-81). Here is the Patches for all the ones I know about. Rom porters you can attach any of these to your first post if you know that you will need them. This is for any US phone that uses the kernel-2.6.35-*.
Special Thanks to LibertyMonger for inspiring me to become to help out the community more.
Sergekarol said:
I got tired of chasing down new roms that need patching for the softkey positions on certain phones. like the US Huawei Assend X (U9000-81). Here is the Patches for all the ones I know about. Rom porters you can attach any of these to your first post if you know that you will need them. This is for any US phone that uses the kernel-2.6.35-*.
Click to expand...
Click to collapse
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Thanks a bunch for the thread good buddy it will be very useful!
Arya_3RDNumber said:
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
yes what is arya say is right..myb you can put some of TUT for this softkey and we all can learn it
Arya_3RDNumber said:
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
I used keymapper from app store to figure out which keys to change to which number. all three are same file I don't mind teaching this to all. One day I will get a new phone and someone will have to take over. If anyone interested examine the patches. the same file is used in all three just with a different name for each of the kind of rom it is. Development is often just being luck in your guesses at first until you learn what you are doing.
This is the text of the main file in all three patches, In ICS phones this is
/system/usr/keylayout/generic.kl
In other roms this file may be named querty.kl or other names. You have to examine the file to determine the correct one.
The relevant part of this file is shown below:
In the stock this part looks like this with Red the original file and in green the changes in the patch file.
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 139 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 102 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 158 HOME WAKE
Class Dismissed.
Do you have a fix for elol's newest Ice Cold Sandwich? Thanks
LibertyMonger said:
Do you have a fix for elol's newest Ice Cold Sandwich? Thanks
Click to expand...
Click to collapse
ICS uses the same update-softkey.zip for all roms I have found so far. Sharp and Mokee are the outliers.
If the phone is an ICS Phone, try that file first. All it can do is to add a file that doesn't get used lol.

Only for real developers!

I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Tried hard reset?
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
Can't...
Sent from my GT-S5570 using xda app-developers app
try key remapping
manoj94 said:
try key remapping
Click to expand...
Click to collapse
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Paul L. said:
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Click to expand...
Click to collapse
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
XDRdaniel said:
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
Click to expand...
Click to collapse
Disable power control. Try play more with ROM !
F4uzan said:
Disable power control. Try play more with ROM !
Click to expand...
Click to collapse
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
XDRdaniel said:
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
Click to expand...
Click to collapse
Settings > Toggle. Play there.
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
arpitkh96 said:
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
XDRdaniel said:
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
Click to expand...
Click to collapse
Ma pleasure
Sent from my GT-S5570 using xda premium

Categories

Resources