Disable Camera Buttons on Side - HTC Amaze 4G

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.

Related

[how-to] remap genius key

1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187 (make a backup of the original file first)
5) adb push latte-keypad-v2.kl /system/usr/keylayout/
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
If you want the genius button remaped to ENDCALL (if on a call it will end the call, if not on a call it will lock the screen, if you hold it down it activates the power button menu) and don't won't to edit the file yourself you can download this premodified version, just place it in the directory you are running adb from and skip steps 3&4): http://www.4shared.com/file/ein06_25/latte-keypad-v2.html
Notes:
There is a slight hardware delay on the button press, so whatever you assign it to you need to hold the button for half a second just like with the current genius app.
It does not seem to be any easy task to be able to call an alternate application, for now, you can only reassign the key to something another key already does (letter/number, end call, power, volume, camera, etc.). I'm currently working on being able to call an alternate application.
falken98 said:
1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187
5) adb push /system/usr/keylayout/latte-keypad-v2.kl
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
Click to expand...
Click to collapse
Well, how about that. Great find, falken98!
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
So what are people planning to map to this particular hardware key?
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
Sure can, to make end call just change:
key 187 FUNC_4
to:
key 187 ENDCALL WAKE_DROPPED
HebrewToYou said:
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
Click to expand...
Click to collapse
haha. yes, it is. nice catch!
and what about the sleep functionality like on the old mytouch?
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
kingofyo1 said:
and what about the sleep functionality like on the old mytouch?
Click to expand...
Click to collapse
That i'm not sure about, i'll do some digging and see.
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
glad you asked this, that is what i want my genius button to be and it bugs me that it's not since i hit it all the time when trying to hang up on people(came from G1 so that's where my button was) i will do this later
managed to switch fn and menu on hw keyboard, it was bugging me that i constantly hit menu when trying to hit fn(bad button planning by HTC) but now i have the keys where i want them may have to make a few changes later as well to other stuff(camera and focus should do something else)
its not working whenever i put in adb pull "" it just gives me all the adb options..
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Edit: Also, I love "187" being the Genius key
squidbutt said:
its not working whenever i put in adb pull "" it just gives me all the adb options..
Click to expand...
Click to collapse
Sure you have it typed correctly?
D:\android-sdk-windows\key> adb pull /system/usr/keylayout/latte-keypad-v2.kl
358 KB/s (3675 bytes in 0.010s)
fermunky said:
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Click to expand...
Click to collapse
That does turn out rather well for that button! No more annoying "say a command".
to make it a search key I:
key 187 FUNC_4
to:
key 187 SEARCH
??
Great find man, I switched it to end call/dropped too and its working perfectly. If anyone figures out before I do to make it the sleep function please post.
FYI, after you remap the key it seems to be safe to go ahead and remove:
vsuite.apk, vsuite.odex, VSuiteApp.apk, VSuiteApp.odex
If you have no interest in the genius button function.
what does the WAKE_DROPPED mean
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
turboyo said:
what does the WAKE_DROPPED mean
Click to expand...
Click to collapse
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
If we figure out how to put the device the sleep there would actually be a difference.
turboyo said:
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
Click to expand...
Click to collapse
It pulls it to the computer you ran adb from (in the directory you are in), you then edit the file with a text editor and push it back up.
Since you have to edit the file and push it back you might as well just go ahead and pull it first, seems more annoying to try and download it first.
Im getting the same thing with it just listing all the adb commands.. Ahh things like this were so much easier with SUFBS lol, all I would have to do is go to the directory and edit the file right in there

[Q] camera-hardwarebutton disable

Hello!
My problem is, that i have bought a new car holder for my x10.
Now i have the problem, when i slip in my phone, the hardwarebutton for the camera is permanently pushed.
Does anyone have an applikation, which switches of the hardwarebutton?
Many thanks,
Greetings
- Install ButtonRemapper (root needed)
- open it, click on "focus" in the list and then pick "dpad center" / "none"
if it presses enough to trigger the camera and not just the focus, do the same for camera in the list.
- in ButtonRemapper settings, uncheck "boot monitor" and check "hot reboot".
- click Apply, your phone will reboot after a few seconds.
zorglub08 said:
- Install ButtonRemapper (root needed)
- open it, click on "focus" in the list and then pick "dpad center" / "none"
if it presses enough to trigger the camera and not just the focus, do the same for camera in the list.
- in ButtonRemapper settings, uncheck "boot monitor" and check "hot reboot".
- click Apply, your phone will reboot after a few seconds.
Click to expand...
Click to collapse
Thank you a lot, zorglub08!!
It works perfectly.
By the way, what activates the dpad center?
The d pad center doesn't activate anything in the home, that's why I picked it, in practice in just just disables the button. If you launched an emulator or some app that supports a hardware directional pad, it may do "Enter"/"OK". I didn't try though, on my phone, I didn't find and app that used it.
I was going to PM this to you, but since you made another thread i'll post it here.
To properly disable the camera button, you must edit the es209ra_keypad.kl file. This file controls how the Android OS responds to the hardware buttons.
Use Root Explorer (or any other root file manager app) and navagate to /system/usr/keylayout/ and open the es209ra_keypad.kl file for editing. I am doing this on 2.3.3, so the file may be different depending on your ROM. Either way, it is easy to tell which lines need editing.
Once you have the file open, place a hash (#) in front of the "CAMERA" and "FOCUS" lines as follows:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 229 MENU
key 59 MENU
key 213 MENU
key 102 HOME WAKE_DROPPED
key 158 BACK
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 116 POWER WAKE
#key 212 CAMERA
#key 215 FOCUS
key 226 HEADSETHOOK
Once you have edited the file, reboot your phone.
This effectivly stops Android from even seeing that the camera button exists, hence, the camera button will do absolutly nothing to the phone. If you change ROMs, you will have to do this again.
Cheers to Pierre Duc who created the thread about stopping the home button from waking the phone, otherwise I wouldn't even know that this file exists.
http://forum.xda-developers.com/showthread.php?t=1117810
Disclaimer: Do at your own risk, I am not responsible if anything goes wrong (which it shouldn't).
- Frosty

[Q] Re-Map camera shutter button?

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

[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

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