On my N1 a long press of the menu button brought up the keyboard regardless of what app you were in. This is especially helpful in apps that assume you have a physical keyboard (e.g. androidVNC). With my Captivate holding the menu button brings up the Google quick search bar which I could care less about.
Is it possible to edit/change this function?
We can't get a stock Android ROM for this thing soon enough!
i was actually thinking about the same thing too.
Let me remind you, long press on the menu button is exactly the same function as short press on the search button, so we really need a "mod" that'll change the duplication function.
This would be really great. Does anyone have any ideas?
Sent from my SAMSUNG-SGH-I897 using XDA App
They have a thread going over here: http://forum.xda-developers.com/showthread.php?t=706426 about the touch keys and modifying them. It looks like the long key press stuff is in the kernel. Not much we can do at the moment.
Solution found,see this:
http://forum.xda-developers.com/showthread.php?t=818499
Basically, I read some user feedback from Knyghtryda's Camera Mod and came up with this very simple solution. I converted the Power Button to be the camera shutter, which also works for recording and 2.3.4 GB, and does not require a modified camera.apk. The Search Button was converted to function as power on/off. I made these changes by modifying the system/usr/keylayout files.
Honestly, I find this configuration awkward unless I am taking pictures. The search button is my least favorite button and normally only hit it by accident. If this is not an ideal configuration or you can't live without a search function, just give me suggestions.
I'm not a developer or anything, I just like to experiment with my android. If anyone, dev or not, has any suggestions or improvements feel free to comment.
v1.0
Power Button=Camera Shutter, Search Button=Power on/off, No Search Button Function
Issues 8/5/2011
I haven't confirmed this with Gingerbread, only with Froyo: If you remap power button to any other button, it will function as power button but if the screen is asleep and not plugged in for a period of more than about 10 seconds, you have to press original power button followed by the new power button to wake the screen.
I have also tested a few button remapping apps made for other devices, but do not seem to be compatible with Froyo. I will be testing Gingerbread next.
Added Key Configurations
Search Button=Camera Shutter, Power=Default
Credits:
Knyghtryda- idea for the shutter and scripts
Jack$on- idea to relocate power to search button
Installation Instructions
To Change Button Configuration
Run key_remapper.zip or key_remapper_GB.zip for respective firmware version in CWM.
To Return to Default Key Configuration
Run keymap_reset.zip or keymap_reset_GB.zip for respective firmware version in CWM.
DO NOT RUN WRONG VERSION: The files look very similar but I have ran Froyo zip on GB on two occasions and all of the bottom row buttons stop working.
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Just opened the zip.
I see what you did there. I never have gotten around to doing any mods myself yet, cool, can be configured however by changing the lists.
dlang123 said:
Just opened the zip.
I see what you did there. I never have gotten around to doing any mods myself yet, cool, can be configured however by changing the lists.
Click to expand...
Click to collapse
Very simple like I said, some people would be clueless though. Also your idea would work better for me as well.
This is very nice. I hate the power button being on the side of my phone. I feel like I can't use my phone one-handed or have to shift the way I'm holding the phone just to be able to turn the screen on/off.
One quick note... In CWM after installation it says that the power button = search button which is incorrect.
Big thanks! I've been waiting for someone to come up with this!
dlang123 said:
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Click to expand...
Click to collapse
ya I agree. if u just made the search button a camera shortcut key and a camera shutter key im sure alot of people would use it for sure.
Sent from my SCH-I510 using XDA App
PKizzo36 said:
This is very nice. I hate the power button being on the side of my phone. I feel like I can't use my phone one-handed or have to shift the way I'm holding the phone just to be able to turn the screen on/off.
One quick note... In CWM after installation it says that the power button = search button which is incorrect.
Big thanks! I've been waiting for someone to come up with this!
Click to expand...
Click to collapse
Thanks, I see my mistake on the script.
dlang123 said:
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Click to expand...
Click to collapse
Made the Search Button the camera button just for you. I have not tested this on the Froyo build but I do enjoy this configuration better than the other. I have also tested the camera button on the up volume button, but couldn't find a suitable volume up alternative.
sk8tingusmc said:
Made the Search Button the camera button just for you. I have not tested this on the Froyo build but I do enjoy this configuration better than the other. I have also tested the camera button on the up volume button, but couldn't find a suitable volume up alternative.
Click to expand...
Click to collapse
which zip do I download to get the search as camera key?
Sent from my SCH-I510 using XDA App
Can the search key act as a search key normally, except when in camera mode?
kolosok17 said:
Can the search key act as a search key normally, except when in camera mode?
Click to expand...
Click to collapse
I can experiment with it, but not sure.
EDIT: I am not having any luck; I am not saying it is impossible, but it looks like you will have to wait for Knyghtryda to release a modified camera app with with the search button shutter, with the system keymap still set as Search. That may solve your problem! I wish I knew how to make longpress of search do camera and shortpress do search, if it is even possible. I will still look into it, I have just given up for the night.
jkat797 said:
which zip do I download to get the search as camera key?
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
The search_shutter.zip or search_shutter_GB.zip depending what version you are running.
The key mapper seemed to be working at first but I noticed that if my phone sat idle for awhile the search button (now the power button) wouldn't start the phone back up. I would have to use the power button (modded to be the new shutter button) and THEN press the search button to get the screen to come back on.
PKizzo36 said:
The key mapper seemed to be working at first but I noticed that if my phone sat idle for awhile the search button (now the power button) wouldn't start the phone back up. I would have to use the power button (modded to be the new shutter button) and THEN press the search button to get the screen to come back on.
Click to expand...
Click to collapse
Which build are you on? It may have left out the WAKE flag or something. Thanks for letting me know.
Mapping the volume up/down buttons to reflect 'next track' and 'previous track' while the screen is off would be my biggest request.
Can the home button mapped to wake up the phone instead of power? this is my top of the wish list, pretty plzzz
sangweb said:
Can the home button mapped to wake up the phone instead of power? this is my top of the wish list, pretty plzzz
Click to expand...
Click to collapse
That shouldn't be a problem, but I think that I forgot to edit an extra file that effects the bottom row buttons and it seems to be on Froyo builds. I am updating this file to test reliability right now.
sk8tingusmc said:
Which build are you on? It may have left out the WAKE flag or something. Thanks for letting me know.
Click to expand...
Click to collapse
I am on froyo
Sent from my SCH-I510 using XDA App
Please
sk8tingusmc said:
That shouldn't be a problem, but I think that I forgot to edit an extra file that effects the bottom row buttons and it seems to be on Froyo builds. I am updating this file to test reliability right now.
Click to expand...
Click to collapse
I'll be your quality test as guinnea pig if you need one. I know I can use other widget to accomplish this but prefer to avoid 3rd party lock widget because sometime I have to unlock twice. You will be my "God" if you can get it working, Thx.
So I started looking at modding the Camera.apk.. decompiled into byte code.. doesn't look that bad, if I get some time I'll run some diffs on it and the original get what he changed.. and then I'll try to modify it for using the search button. That way search only does Camera if your in Camera.
Is there an app that can end a call? i am using CM7, it will be very usefull if there is such an app that i can assign it to the long press of the search key
why not just use the end call button?
sromer said:
why not just use the end call button?
Click to expand...
Click to collapse
My thoughts exactly????
Sent from my HTC Sensation XE with Beats Audio using xda premium
I would think it'd be rather difficult to hold the search key when I could just press the huge red button
hanlence said:
Is there an app that can end a call? i am using CM7, it will be very usefull if there is such an app that i can assign it to the long press of the search key
Click to expand...
Click to collapse
isnt there an option on cm7 that u can make the power button end a call? i think it was under accessibility but not sure
KAwAtA said:
I would think it'd be rather difficult to hold the search key when I could just press the huge red button
Click to expand...
Click to collapse
i brought up this point is because, sometime when i accidentally press the home key, or need to check other info during a call, then, it will just become convenient with an app like that
s10shane said:
isnt there an option on cm7 that u can make the power button end a call? i think it was under accessibility but not sure
Click to expand...
Click to collapse
can't find it, but it will be very nice if there was such an option
hanlence said:
i brought up this point is because, sometime when i accidentally press the home key, or need to check other info during a call, then, it will just become convenient with an app like that
Click to expand...
Click to collapse
To get back to your call,
1. drop down status bar,
2. click the phone icon,
3. ????????
4. Profit!!!!!!
Sent from my HTC Sensation 4G using XDA App
Hi,
I want to change the middle "Show previews" button to function like a "menu" button, I have looked all over the internet but no one explains how to do it on one s.
is it even possible? and if yes then please let me know how
Thanks,
Jasmine.
The middle soft button on mine is the home button.. the recent apps button on the right can be used as a menu button. Settings, display, buttons and gestures. The rest should be pretty easy
Sent from my HTC VLE_U using xda app-developers app
I've got it decompiled and I'm looking at in Notepad+ and I even see the part of code I'm fairly certain needs to be changed, however I am unsure of what to change.
I'm simply trying to remap the long press home button from Google Now to Recent Apps. Any help is appreciated! I can upload the policy.jar if you need it, I'm looking at PhoneWindowManager.smali
That would be awesome. So are you planning on making the menu button a menu button again also no long press? Also while your there if you have any interest in disabling home button wake. Tia
Sent from my SM-G900P using xda premium
i actually liek the home button wake, but if someone helps me with this and also knows how to do that, i will happily make 2 diff versions. and yes i have remapped the app switch button to be menu and google now on long press, i have found a xposed module that lets you remap the long press home button (im just not sure how it does it) so for now i am set altho once i get this figured out i plan to release a ROM im building, that being the only thing holding me back.