[Q] Re-Map camera shutter button? - HTC EVO 3D

I'm not sure if someone has posted this already or what not, but basically I wanted to know if it would be possible to remap the dedicated camera button for another function. I ask because, i prefer using the onscreen camera shutter to take pictures and i'm sure other people do as well. Just a though for anyone with the ability to make it happen. I posted it here because i figured that, even though its a question, it's application related.

well personally, i would like to see an option to keep the camera button for the camera function but just make the button wake the phone as well.

polo79 said:
well personally, i would like to see an option to keep the camera button for the camera function but just make the button wake the phone as well.
Click to expand...
Click to collapse
Or that. An app like launch key that let's you select it would be cool.

You can remap the camera button to do other things, but your choices are limited afaik. I have my camera button remapped so that the half press takes a picture, and a full press acts as a power button. The power function allows it to turn the screen on or off, and I still have camera functionality from it.
I am unable to keep the original camera functions and have it wake the phone, it just wont allow it. It's been that way as long as I can remember trying, starting with the Hero on 1.5
To remap the camera hard key, or any other hard key for that matter, you have to edit the shooter-keypad.kl file located in /system/usr/keylayout
You can go in and edit it with Root Explorer pretty easy, reboot when finished for changes to take effect. I will look real quick and see what all function are available for us to use with this, but I know that I cannot make it launch an app. There was some extensive work done on this in the Hero dev forum a while back, but I think it died off when it was still a WIP for exp devs only. Maybe someone with some real knowledge of this can chime in here.
This is what my shooter-keypad.kl looks like:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# LCM 2D/3D switch
key 193 FUNC_2
key 194 FUNC_1
# CAMERA
key 211 CAMERA
key 212 POWER WAKE_DROPPED
And this is stock:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# LCM 2D/3D switch
key 193 FUNC_2
key 194 FUNC_1
# CAMERA
key 211 FOCUS
key 212 CAMERA

So, I played around a bit more, here are the functions that I know of that can be set to the camera hard key, either half press or full press. I noted on some that I tested what they are capable of.
Just so it's clear assigning WAKE_DROPPED to a function asks it to wake the phone if possible. WAKE asks it to complete it's task w/o waking the phone, and if there's nothing there, the function will not be enabled unless the phone is awake and unlocked. Also, key 211 is half press and key 212 is full press of the camera hard key.
Best thing I found that some people may want to use, FOCUS can wake the phone. So you can give FOCUS the WAKE_DROPPED ability, and it will turn the screen on. Down side is that it is so easy to press, if you carry ur phone in ur pocket like I do, this could be a battery killer. But, this does retain all normal button functionality and allows it to wake the phone.
Something else interesting, you can set half press to DPAD_RIGHT and full press to DPAD_LEFT. This lets you use the camera button to scroll left and right while typing or while in the browser, which can be very handy on some web pages with small text links. Or for people with fat fingers.
If anyone wants to do this, but has some trouble with it, post up and I can attach a modified keypad file for you to use.
Code:
POWER (Can wake phone, does not function as POWER once phone if off)
VOLUME_DOWN (Cannot wake phone)
VOLUMN_UP (Cannot wake phone)
HOME (Can wake phone)
MENU
BACK
SEARCH
ENDCALL
FUNC_2 (2D ON)
FUNC_1 (3D ON)
FOCUS (Can wake phone)
CAMERA (Cannot wake phone)
GRAVE (Can wake phone, and launches Search)
DPAD_CENTER
DPAD_UP
DPAD_DOWN
DPAD_LEFT
DPAD_RIGHT
ENDCALL (Can wake phone)
MUTE
CALL (Can wake phone)
MEDIA_NEXT (Cannot wake phone)
MEDIA_PLAY_PAUSE (Cannot wake phone)
MEDIA_PREVIOUS (Cannot wake phone)
MEDIA_REWIND (Cannot wake phone)
MEDIA_FAST_FORWARD (Cannot wake phone)
VOLUME_UP (Cannot wake phone)
VOLUME_DOWN (Cannot wake phone)

this app does it as well as other options .. i use it !

iTouch24 said:
this app does it as well as other options .. i use it !
Click to expand...
Click to collapse
U sure it works with the EVO 3D coz the developer in his description says the app doesn't work with HTC sense UI.

iTouch24 said:
this app does it as well as other options .. i use it !
Click to expand...
Click to collapse
Mini rant on...
Like Pr20 suggested, this app does not work on the camera button with HTC Sense. Why would you suggest an app without having used it yourself, or why are you in a forum for a phone you don't have. I figure it's gotta be one of those, otherwise you would know that that app doesn't work with HTC. Never has since it came out, it's in the market description even.
... rant off
Anyway, I've spent some time with the focus function having waking abilities, and it's pretty nice. The camera functions like normal, and a half press will wake the phone. But, there are some oddities that actually make it a little nicer for practical use. If your screen is turned off, and then the camera button is pressed within 20 seconds, the screen will come back on. If the screen is off for more then 20 seconds, the camera button has to be pressed twice in quick succession in order to wake the phone, sometimes 3 times. I'm not sure what causes this, but it's very nice, as it prevents a lot of accidental pockets wakes/dials.

UMMM ... i have the application and it does work with launching applications with camera button ...
regardless what it says ...
it probably has issues with some htc sense ui phones but i got the evo 3d and i have the market launch with camera button and quickdial launch with selecting and holding down search button
buy it and see for yourself ... u can return in 15 minutes ... that is more then enough time to see if it works ... and i am using it and it works fine ...
HTC SENSE UI:
--------------------
Launching from the Camera button may not work for users with the HTC Sense UI. Unfortunately HTC is unwilling to work with me to resolve the issue.
maybe because my phone is rooted ???
next time u want to rant be certain and dont assume ... i said in my post that i USE IT ... and i know i posted in the HTC EVO 3d, the current phone that i have
dam u try and help people .. and look ....

iTouch24 said:
UMMM ... i have the application and it does work with launching applications with camera button ...
regardless what it says ...
it probably has issues with some htc sense ui phones but i got the evo 3d and i have the market launch with camera button and quickdial launch with selecting and holding down search button
buy it and see for yourself ... u can return in 15 minutes ... that is more then enough time to see if it works ... and i am using it and it works fine ...
HTC SENSE UI:
--------------------
Launching from the Camera button may not work for users with the HTC Sense UI. Unfortunately HTC is unwilling to work with me to resolve the issue.
maybe because my phone is rooted ???
next time u want to rant be certain and dont assume ... i said in my post that i USE IT ... and i know i posted in the HTC EVO 3d, the current phone that i have
dam u try and help people .. and look ....
Click to expand...
Click to collapse
I have bought it, and I have used it before, and it doesn't work with the camera button on any ROM I have used. I'm hesitant to believe you that it works. That App has been around a while and I have used it before with other phones. I wish it did work, and but it certainly doesn't on my phone.
So, I don't know if ur just full of bs, or somehow ur phone runs different then the two I have access to, and but either way, I'm not going to worry about it.
Sent from my 3D EVOlution

Related

[Q] Remap camera button

I'd like to remap the camera button to launch the voice recorder when suspended, but available as shutter button when in the camera app. Can this button be context sensitive like this?
I found a key mapping in the /system directory, and saw a keycode with the word CAMERA next to it. Is it just a matter of replacing CAMERA with the appropriate voice recorder binary?
Thanks!
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Thanks! Am I right that I would replace that action with the binary name of the voice recorder? Or is it the apk name?
Wife said we "had"to move to Cerritos, so we did.
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
I tried tasker but I dont see how to remap the Camera (FOCUS) button.
I changed an event (hardware - CAMERA Button) and added an action (load App) then applied.
The notification says, no profie activated? Why?
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Hey Kertong, needing to do same thing. Replaced my screen and keypad now only performs menu. I am in shell trying to find the right action. Can you describe what you edited the .kl to?
Option 1
2 apps combined together can remap camera
button remapper - remap camera to search fn
launcher key to set search to any app u want
Option 2
Use tasker
Tried Tasker, great program just couldn't get it to work right, but will be a great application when I get it all setup.
My resolution.
Instead of using applications...
I did 'adb shell'
went to /system/usr/keylayout
did 'vi surf_keypad.kl'
And edited key 212 which is Camera, with Back.
Although now the softpad doesn't function as Menu only. Atleast I can go back now.!
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
wyx said:
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
Click to expand...
Click to collapse
Seconded. Share!
http://forum.pocketables.net/showthread.php?t=9680

Disable Camera Buttons on Side

Hey People,
I was wondering if there was a way to disable the Camera & Video buttons on the side of the phone. When in my pocket or in the case I have noticed that they have been activated and pics n videos have been taken.
I always have my phone on the locked screen but even if screen is locked and you press those 2 buttons they get activated and could take pics or videos without you even knowing.
Any suggestions would help.....
Thanks....
henry1970 said:
Hey People,
I was wondering if there was a way to disable the Camera & Video buttons on the side of the phone. When in my pocket or in the case I have noticed that they have been activated and pics n videos have been taken.
I always have my phone on the locked screen but even if screen is locked and you press those 2 buttons they get activated and could take pics or videos without you even knowing.
Any suggestions would help.....
Thanks....
Click to expand...
Click to collapse
Maybe try getting bigger pockets? Lol. =P
Do you have a case on it? I'm using a d30 case and have never had any pictures taken in my pocket.
Sent from my world to yours using my HTC Amaze
Yes, I have a case. Not the d30 and it is open where those buttons are..
Angelus47 said:
Do you have a case on it? I'm using a d30 case and have never had any pictures taken in my pocket.
Sent from my world to yours using my HTC Amaze
Click to expand...
Click to collapse
widget locket lets you disable these buttons when the phone is locked...Its an awesome program I would invest it it! no root needed
henry1970 said:
Hey People,
I was wondering if there was a way to disable the Camera & Video buttons on the side of the phone. When in my pocket or in the case I have noticed that they have been activated and pics n videos have been taken.
I always have my phone on the locked screen but even if screen is locked and you press those 2 buttons they get activated and could take pics or videos without you even knowing.
Any suggestions would help.....
Thanks....
Click to expand...
Click to collapse
This is an easy fix(with just about no risk) if you have a rooted phone, even easier if you have root explorer..
I'll provide directions as if you have root explorer: navigate to /system/usr/keylayout/ruby-keypad.kl long press and click edit in text
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 CAMCORDER [B]WAKE[/B]
# CAMERA
key 211 FOCUS
key 212 CAMERA [B]WAKE[/B]
Delete just the bolded part above that says wake next to the Camcorder key and Camera key, that is what tells the phone to wake up when you hit the button. If you do it in the root explorer method it will automatically create a backup of the file in that directory. Restart the phone and you're good. Both buttons will still work when you've already woken the phone up, but will no longer wake the phone up itself resulting in pics/video in your pocket.
If you don't have root explorer, you can try to find some other app that allows you to edit documents with root, or use adb to pull the file then push the modified file back into that folder..
Hope this helps
Silentbtdeadly said:
This is an easy fix(with just about no risk) if you have a rooted phone, even easier if you have root explorer..
I'll provide directions as if you have root explorer: navigate to /system/usr/keylayout/ruby-keypad.kl long press and click edit in text
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 CAMCORDER [B]WAKE[/B]
# CAMERA
key 211 FOCUS
key 212 CAMERA [B]WAKE[/B]
Delete just the bolded part above that says wake next to the Camcorder key and Camera key, that is what tells the phone to wake up when you hit the button. If you do it in the root explorer method it will automatically create a backup of the file in that directory. Restart the phone and you're good. Both buttons will still work when you've already woken the phone up, but will no longer wake the phone up itself resulting in pics/video in your pocket.
If you don't have root explorer, you can try to find some other app that allows you to edit documents with root, or use adb to pull the file then push the modified file back into that folder..
Hope this helps
Click to expand...
Click to collapse
Thanks dude! I was looking for an easy way in the system to do that but couldn't find it. Works like a charm. You're the man!!
Silentbtdeadly said:
This is an easy fix(with just about no risk) if you have a rooted phone, even easier if you have root explorer..
I'll provide directions as if you have root explorer: navigate to /system/usr/keylayout/ruby-keypad.kl long press and click edit in text
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 CAMCORDER [B]WAKE[/B]
# CAMERA
key 211 FOCUS
key 212 CAMERA [B]WAKE[/B]
Delete just the bolded part above that says wake next to the Camcorder key and Camera key, that is what tells the phone to wake up when you hit the button. If you do it in the root explorer method it will automatically create a backup of the file in that directory. Restart the phone and you're good. Both buttons will still work when you've already woken the phone up, but will no longer wake the phone up itself resulting in pics/video in your pocket.
If you don't have root explorer, you can try to find some other app that allows you to edit documents with root, or use adb to pull the file then push the modified file back into that folder..
Hope this helps
Click to expand...
Click to collapse
You think this would work if instead of camera I type the name of another camera app that I consider to be better than the stock camera?
Sent from my HTC Amaze 4G using xda premium
frodoboy said:
Thanks dude! I was looking for an easy way in the system to do that but couldn't find it. Works like a charm. You're the man!!
Click to expand...
Click to collapse
I was glad I was able to help
Felinos11 said:
You think this would work if instead of camera I type the name of another camera app that I consider to be better than the stock camera?
Sent from my HTC Amaze 4G using xda premium
Click to expand...
Click to collapse
You don't want to change what the button does through that file, however if you get an app like tasker you could then remap the camera button to a different app or maybe a shortcut.. There also is probably a pretty easy way to replace the stock app with whatever you're trying to use(maybe rename the camera app's apk to whatever the stock one is called, and replace it in the system folder?), but you'd have to ask a dev to be sure.
That worked great, thanks!!
My phone is now happy knowing it won't have 100 black photos and dark random pocket videos!!
Another option if you want to do it for free on the phone is load on terminal emulator, and busybox.
Open the terminal emulator, run su and allow superuser permissions.
Remount /system as RW: mount -o remount,rw /dev/block/mtdblock4 /system
browse to the /system/usr/keylayout (use cd command)
edit it with vi: vi ruby-keypad.kl (may need to type busybox vi ruby-keypad.kl)
Hold down the volume up button and type S to lower the cursor down a row, go down to the first row to delete the WAKE and then do a Volume Up Key and press d to move the cursor over to the right. Have it stop so it's blinking over the W in WAKE. type dw That should have removed the word wake. Do the volume up and S and D to go down to the last WAKE to remove and do a dw again. They should both now be removed. Now type :wq <return> That should write the file and quit. Reboot the phone. Embrace saving the 3.99 over root explorer.

[Q] Remapping video or camera button?

I don't even have my Amaze yet, but one of the things I know I'm interested in is remapping the dedicated video button. I know I'll probably love the dedicated camera button, but I doubt I'll use the video button- mapping the button to either an app to it or a more useful function would be nice.
That said, has anyone decided to change the button functions and if so what did you use? What function did you give it?
I found a thread here that sounds like it could work except it makes a big deal out of needing "for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)" and the functions it can provide don't seem all that helpful..
I did a fair amount of searching and couldn't find a better app, I'm not sure if the root the amaze has would be considered "full root", or if anyone here has really played with this.
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
jo093142 said:
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
Click to expand...
Click to collapse
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Silentbtdeadly said:
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Click to expand...
Click to collapse
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
mikeschevelle said:
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
Click to expand...
Click to collapse
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Silentbtdeadly said:
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Click to expand...
Click to collapse
.......appreciate it......over my head though

[Q] Disabled Capacitive Keys - all but Home

I started this in another thread but I thought I'd drop it here in case anyone else wants to work on it as well. I didn't see another active thread so please flame if this isn't in the right place.
Being on tablet mode full time I wanted to disable the capacitive keys. They're not in the way or totally useless, I simply wanted to see if it could be done.
I've managed to disable Menu, Search and Back on mine with an older Honeycomb trick I used on the Galaxy Tab. I just now started monkeying with this on the Note and I've yet to disable the Home button without also disabling waking with power button.
Root Browse your way to "system/usr/keylayout/Generic.kl
Place a # before the following lines (commenting them), save then reboot:
key 139 MENU
key 158 BACK
key 217 SEARCH
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?
Hey thanks again for this find.... Just a quick question.
Does this method work with any ICS ROM? Also I'm just curious which ROM you are using and want to hear your recommendation.
Thanks again
sunshines4u said:
Hey thanks again for this find.... Just a quick question.
Does this method work with any ICS ROM? Also I'm just curious which ROM you are using and want to hear your recommendation.
Thanks again
Click to expand...
Click to collapse
I haven't tried it on a GB ROM but I see no reason it wouldn't work there or on any ICS build. From what little knowledge I have of how this works I can't see why the key bindings would be any different from ROM to ROM, as long as it's for the Note. For all I know the same lines of code could be the same on any number of Samsung devices.
I'm currently on DAGr8s The Hybrid_RCIV and enjoying it very much. Aside from having to pop my SD card whenever I install an app it's the bee's knees.
VonLaserface said:
I started this in another thread but I thought I'd drop it here in case anyone else wants to work on it as well. I didn't see another active thread so please flame if this isn't in the right place.
Being on tablet mode full time I wanted to disable the capacitive keys. They're not in the way or totally useless, I simply wanted to see if it could be done.
I've managed to disable Menu, Search and Back on mine with an older Honeycomb trick I used on the Galaxy Tab. I just now started monkeying with this on the Note and I've yet to disable the Home button without also disabling waking with power button.
Root Browse your way to "system/usr/keylayout/Generic.kl
Place a # before the following lines (commenting them), save then reboot:
key 139 MENU
key 158 BACK
key 217 SEARCH
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?
Click to expand...
Click to collapse
May have to also edit some of the other key layout files. Like ffa, not entirely sure what they all do, but I have seen home key in done of the other layouts.
Sent from my bigass phone or whatever on ICS
VonLaserface said:
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?
Click to expand...
Click to collapse
Just an FYI - I was able to disable all of the keys using melfas_touchkey.kl on the new CM9 Unofficial release. Power still works.
jpg71 said:
Just an FYI - I was able to disable all of the keys using melfas_touchkey.kl on the new CM9 Unofficial release. Power still works.
Click to expand...
Click to collapse
Where can I get that file and where do I put it on the phone?

How can i completely disable hardkeys in favor of softkeys?

My dad's Droid X2 was having issues so he got a new phone (Note II, the lucky bastard >_>) and gave me his old phone. Messing with it a little before I activate it on Verizon, I realized that the only thing wrong with it was the back button - its worn out and keeps clicking itself over and over again. To do anything with the phone I need to mash the back button for 15+ seconds while the screen is off/on the home screen.
I haven't done anything with the phone yet, its still bone stock, fully updated, not even rooted yet. In its current state its nearly unusable as a daily driver, but I figure if I can flash ICS/JB, activate the onscreen keys, an fully disable the hard keys, it'll be good to go - a decent replacement to my Droid charge (which I love to pieces but is so lageriffic its getting hard to use)
My problem is, none of the roms say anything about this. My experience with cyanogenmod/AOKP is limited to a few unofficial alpha roms for my tablet, so I really don't know. I found this, which I think might work for what I want , but I don't know if its compatible with the Droid X2, especially with the rom I was really looking into, paranoidandroid. Though I will honestly accept any 4.0+ rom. This will be my daily driver, if I can get it to work, so I do care about stability. Just not sure where to start or how to go about this. I'd like to consider myself a fairly advanced ROMer, so if it gets technical, I don't mind in the slightest.
Thank you guys for any help you can provide me.
mtmerrick said:
My dad's Droid X2 was having issues so he got a new phone (Note II, the lucky bastard >_>) and gave me his old phone. Messing with it a little before I activate it on Verizon, I realized that the only thing wrong with it was the back button - its worn out and keeps clicking itself over and over again. To do anything with the phone I need to mash the back button for 15+ seconds while the screen is off/on the home screen.
I haven't done anything with the phone yet, its still bone stock, fully updated, not even rooted yet. In its current state its nearly unusable as a daily driver, but I figure if I can flash ICS/JB, activate the onscreen keys, an fully disable the hard keys, it'll be good to go - a decent replacement to my Droid charge (which I love to pieces but is so lageriffic its getting hard to use)
My problem is, none of the roms say anything about this. My experience with cyanogenmod/AOKP is limited to a few unofficial alpha roms for my tablet, so I really don't know. I found this, which I think might work for what I want , but I don't know if its compatible with the Droid X2, especially with the rom I was really looking into, paranoidandroid. Though I will honestly accept any 4.0+ rom. This will be my daily driver, if I can get it to work, so I do care about stability. Just not sure where to start or how to go about this. I'd like to consider myself a fairly advanced ROMer, so if it gets technical, I don't mind in the slightest.
Thank you guys for any help you can provide me.
Click to expand...
Click to collapse
there are apps on the market that allow button remaping but if you wanna try something like cyanogen or miui on the dx2 try this Soft key mod for CM/Miui it has a flash able zip for disabling and reenabling the hardware buttons and the same for the software buttons works like a charm for me but im never on one rom long enough to really enjoy it.
Check out an app in the Play Store called "Button Savior".
Sent from my Android device using Tapatalk
OK, so the hardkey issue seems to have mysteriously alleviated itself..
guess i'm just looking for the most stable 4.0+ ROM now.
I had an X2 with a failed back key also. In order to make the phone bearable while waiting for the replacement to arrive, I edited the keyboard file and changed the "search" button to the "back" button. You'll need to be rooted to do this. From a file explorer app (I use Astro or AntTek Explorer), browse to \system\usr\keylayout and open the tegra-kbc.kl file with a text editor from within the phone. I used File Editor, which I think is stock within the phone. When open, you'll see a whole list of keys, but you'll only need to concern yourself with 158 and 217.
Here's a section of the file so you know what I'm talking about.
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
You'll want to make changes to the lines I've bolded so they look like this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 217 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
So now, both the "back" button and the "search" button will do the same thing.
You can always disable the original "back" button altogether by putting a # in front of the 158 line like this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
key 217 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
After making the changes, save and close the file, then reboot your phone.
Let me know if you have any questions.
This is perfect, thank you so much.
I found the soft keys and installed that, so I'd be plenty happy disabling all 4 hard keys at the bottom. What would be the proper way to go about doing that, using this method?
If you wanted to disable the buttons, you'd simply place a # in front if the line you don't want read by the software. You better make sure the soft key app is rock solid though.
Change it from this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
to this:
# key 102 HOME WAKE
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
You can also use Bootstrap Recovery to check what each key is. Select Advanced --> Key Test. To get out of the key test, press Power, Volume UP, and Volume DN at the same time, and the phone will reboot.
---------- Post added at 07:46 AM ---------- Previous post was at 07:20 AM ----------
I told you the wrong file name. You'll want to edit the tegra-kbc.kl file located in the same directory. I'm sorry about that.
OK, thank you! I'll let you know how it goes.
And they're the OS soft keys from jellybean, so nothing to worry about.
----------
OK, disabled them! Thanks!
I'm considering assigning the search key to the camera shutter. However, if I do this, I don't want it to launch the camera app, just to take a picture if the camera is open. Is there a way to do this?

Categories

Resources