Currently (2.2) pressing the home button goes to the home app shortcuts, and long-prerssing it opens recently used tasks.

Is it possible to swap these actions? Then quick press would open recent tasks.

(I'm also interested in answers that require root, or a custom rom.)

  • 2
    What device is this? – cjk Jun 1 '12 at 12:19
  • @cjk Does the device matter? Samsung GT-S5570. – Ilari Kajaste Jun 1 '12 at 15:23
  • I would look for launcher replacements - I am not aware of any changing long press behavior, but many of them provide options to change the home button behavior. – Chance Jun 5 '12 at 15:46

If you're using the AOKP ICS ROMs, then there is a setting under System Settings->ROM Control->General UI->Long Press Home Action but it seems to only let you choose between different kinds of recent menu lists. I know this is a narrow part of your situation, but information for your taking nonetheless.

  • Good information, but as you said, only a narrow part of what I'm asking for. Thanks, though! – Ilari Kajaste Jun 1 '12 at 15:24
  • if I find anything else, you'll be the first to know! – jlehenbauer Jun 1 '12 at 15:28

Another method exists, and like you indicated, it requires at the very least root access and possibly a custom ROM.

  1. Hook your device up to a computer via adb.

  2. Pull your keypad.kl file. For my HTC EVO 4G, it was /system/usr/keylayout/supersonic-keypad.kl, regardless of what it is called, you should find it somewhere close to /system/usr/keylayout

  3. Open this file with a text editor, and edit as you please following the pattern of the file.

For me, the HOME button is 102, so remapping this key to the camera would be key 102 CAMERA WAKE_DROPPED.

A key marked WAKE will wake the device when it is pressed, WAKE_DROPPED can affect the system without waking the screen.

NOTE: this may only allow you to change the functionality to built-in options, but there are several functions available, including volume options, other softkeys, camera, power, any characters, or playback controls, such as PLAYPAUSE.

This is the Android source and includes example keymaps.


You might be able to assign the required functions to the button with ButtonRemapper: http://forum.xda-developers.com/showthread.php?t=850464

  • From the FAQ in the first post: "Q: can you do also other remappings with the buttons, like for example long pressing, double press, context sensitive remappings etc. A: For now, this is pretty much it." So, unfortunately no. – Ilari Kajaste Jun 5 '12 at 14:26
  • Then I'm afraid the answer is: no, it's not possible to swap these actions. – Paul Redert Jun 5 '12 at 14:36

ClutchPad can be setup to do pretty much whatever you want.. check it out here

  • Nice idea to solve the underlying problem, thanks for the recommendation. However, from the description it doesn't seem touch the home button functionality at all, but instead replicates it by adding it's own "home button" to some corner of the screen. A constant visual element obstructing a part of the screen - even if a small part - is pretty much unacceptable for me. – Ilari Kajaste Jun 2 '12 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.