Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a GS II and recently flashed to CM9 - I wanted to know if there's any way to map the hardware buttons back to the TouchWiz shortcuts - specifically the long press menu button = search (I really used that and seriously miss it).

On that note - I also wanted to know if there are any TouchWiz ports of only the shortcuts (right swipe call / left swipe message etc.) for CM9 or any other slim/clean ICS ROM.

share|improve this question

With ButtonRemapper you can remap certain keys, but long press is currently not supported. It might be implemented in the future though, I suggest you follow the topic:

share|improve this answer
What is the ACTION for task manager? – Qwerty May 21 '14 at 11:41

The keymap file for Cyanogen is in /system/usr/keylayout/qwerty.kl.

All you have to do is find a way to change this file (never forget backup). Of course that requires your device to be rooted, you could easily do that using Root Explorer. Android loads keymap configurations on boot, so any changes while the system is running need a restart.

I'm not sure how long press is mapped on this file, My search function does work long pressing the menu. I checked it out, and found these two lines:


Check out if these lines matches yours in your file, and if not, change it to a similar way.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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