[G1 Android Development] Geniusdog254:
NOTE: THIS IS JUST FOR WINDOWS

Although it is easily modded for other systems, but the fancy script doesn't work on its own. Just manually delete the versions of the files that are already there (only of the ones that are in this .zip, leave the others) and then push the new files there.

NOTE 2: This is just for the camera mod, to see how to remap any key see post 2 in this thread.

Thanks to Drizzy Drake Rogers this is now featured in the new Hero 1.79.482.3 .img files released by Haykuro & cooked up by Drizzy!

This is a mod that allows you to map the camera button as the search button.

It is very simple to understand what it does if you just look at the files included in it, so I don't want to write out a whole drawn out explanation here.

Let me start by explaining this, I loved the new global search feature in CM 3.9.11.2, but I hated not having a dedicated search button off the keyboard. So I looked at the keyboard layout files and modded them to change the rarely used camera button to a search button. Also, if you long press on whatever mode you choose, it will give you voice search.

Also, there are 2 modes for the camera button, FOCUS which is where it is pressed halfway down, this focuses in the camera app, and CAMERA which launches the camera app from anywhere on the phone & also snaps a pic in the camera app.

There are four versions of this file, each in it's own folder;

Both Search: Both FOCUS & CAMERA are mapped to search & bring it up.

Camera Search, Focus Normal: Only CAMERA is mapped to search, FOCUS

​

still focuses and takes a pic in the camera app.

Focus Search, Camera Normal: Only FOCUS is mapped to search, CAMERA

​

still launches the camera app from anywhere on the phone.

Stock: Pushes back the original files to an unmodded state.

To install it, just run Install.bat and press 1, 2, or 3 based on whatever choice you want. All this script does is use the copy of ADB found in the directory to remount the /system partition, delete the original files in /system/usr/keylayout/, push the new files, and reboot the device.

I hope you enjoy this mod and please post feedback.

EDIT: READ IF .bat DOESN'T WORK OR YOU AREN'T ON WINDOWS!

To do this manually, just follow these directions (assuming you have ADB set up, otherwise there are guides on XDA to set it up):

1. Go to the folder of the mod version you want.

2. Run the following commands in ADB:

adb remount

adb shell rm /system/usr/keylayout/trout-keypad.kl

adb shell rm /system/usr/keylayout/qwerty.kl

adb shell rm /system/usr/keylayout/trout-keypad-qwertz.kl

adb shell rm /system/usr/keylayout/trout-keypad-v2.kl

adb shell rm /system/usr/keylayout/trout-keypad-v3.kl

adb push trout-keypad.kl /system/usr/keylayout/

adb push qwerty.kl /system/usr/keylayout/

adb push trout-keypad-qwertz.kl /system/usr/keylayout/

adb push trout-keypad-v2.kl /system/usr/keylayout/

adb push trout-keypad-v3.kl /system/usr/keylayout/

3. Reboot your phone.

EDIT: Wooohoooo! Just leveled up to senior member, this was post #100 :D

V2 is now up. Includes the option to push the stock files back, so feel free to try any mods without worrying about reflashing.

SEE POST 34 FOR MUSIC PLAY/PAUSE/SKIP ABILITY!!