• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Remap Hardware Keys

benwalburn

Android Enthusiast
Mar 31, 2011
434
67
I've been experimenting with remaping keys. First, I wanted to trade home with its long-press function, but I couldn't find anything on that. So I decided to switch Search with Recent Apps and it works, kind of. Instead of bringing up the recent apps you find with a long-press of home, you get the Gingerbread style of recent apps. Apparently, this is an issue that can be remedied by modifiying android.policy.jar, as shown here. But it seems that the Sense android.policy.jar is completely different, so I don't know what to change.

And in case anyone's wondering why I don't just use the recent apps in the notification drawer, it's because certain apps don't reopen correctly from that method.
 
Basic remapping can be done by modifying the files in /system/usr/keylayout. I'm not sure exactly what needs to be changed for this phone, so I replaced all the SEARCH with APP_SWITCH to make the search key launch gingerbread style recent apps.

you can also use the link in the op
 
Upvote 0
Basic remapping can be done by modifying the files in /system/usr/keylayout. I'm not sure exactly what needs to be changed for this phone, so I replaced all the SEARCH with APP_SWITCH to make the search key launch gingerbread style recent apps.

you can also use the link in the op

Why not just copy the key layout file from an already mapped Rom.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones