Hi,
I almost never used the search capacitive or keyboard button, and was feeling it would be more useful to me to have this button to something else like a Phone button (dialler).
So I had a look around and found:
[MOD] Remap Any Key on Your G1 (v3, Now can play/pause/skip Music with Camera Key) - xda-developers
http://forum.xda-developers.com/show...1&postcount=34
There will be (hopfully growing) list of backup latter in the 1st post.
PLEASE POST/SHARE ANY MISSING ONE (or mod or such)
1. You have to be root.
2. backup all your files from /system/usr/keylayout/ by runing the following commands in ADB:
Code:
adb shell
mkdir /sdcard/KB_BK
mkdir /sdcard/KB_MODDED
cp -f /system/usr/keylayout/* /sdcard/KB_BK
3. Mount your sdcard as Memory card and COPY the folder /sdcard/KB_BK
4. Edit with notepad++ or such the keyboard files and change the second element of the key to your likings, CHANGE
Code:
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
TO for ex.
Code:
key 127 CALL WAKE_DROPPED
key 217 CALL WAKE_DROPPED
5. save your modification.
6. upload the modified files in /sdcard/KB_MODDED
7. Replace your files from /system/usr/keylayout/ with your modified files from /sdcard/KB_MODDED
Code:
adb shell
su
mount -o remount,rw /dev/mtd/mtdblock6 /system
cp -f /sdcard/KB_MODDED/* /system/usr/keylayout/
chmod 644 /system/usr/keychars/*
chmod 644 /system/usr/keylayout/*
mount -o remount,ro /dev/mtd/mtdblock6 /system
ATTENTION WATCH OUT FOR THE FILES PERMISSIONS AND BE SURE THEY ARE THE SAME AS THE ORIGINAL
8. Reboot
9. Enjoy
Jay
With the search button replace by Dialer if a pressed the Search button twice it dial the last dial number (like regular phone when you press twice the call button)
If you messed up or anything else you could always put your backup from /sdcard/KB_BK back to /system/usr/keylayout/ and have it back to it default behaviour
Here come a list of BACKUP and there corresponding files:
# QWERTZ with all SEARCH replace by Dialler from Jay:
keylayout_QWERTZ_SEARCH_REP_DIALLER.zip
(COMING)
PS: You could change also any other button to do what you wanted them to do.
For music change trout-keypad-v3.kl file with Camera (full down) as play/pause, and focus (half down) as next song.
Code:
Remove the lines:
Code:
key 211 FOCUS
key 212 CAMERA
And then add:
Code:
key 211 MEDIA_NEXT WAKE
key 212 MEDA_PLAY_PAUSE WAKE
[PS] If someone is able to pinpoint/improve the files and/or the howto all comments are welcome
[EDIT] If the post should be in the support and not the dev section, modo feel free to move it.