• 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
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
 
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.
 
Because the effort of finding a rom with the exact code I need, downloading it, extracting the keylayout file,and pushing it to my phone exceeds the effort of editing a text file already on my phone
 
Back
Top Bottom