Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[EB13] [MOD] Keyboard Tweaks -- '@' for SMILEY [UPDATED] 2.27.2010

OP smeyerhuky

4th October 2010, 05:19 AM   |  #1  
OP Senior Member
Thanks Meter: 12
 
114 posts
Join Date:Joined: Jan 2009
I am currently working on some kernel hacks with the keyboard files to allow for some more goodies, I have to do it in-between classes, but I am getting somewhere.

Also anyone who knows how to modify API level KeyEvent changes get in touch with me. I am looking into creating my own ENDCALL implementation to only work while(in-phone) but my app is lacking. I think I will have to modify the actual Phone.apk to hang-up on keypress 107 event id.


**now included in some roms**
*thanks for the #include devs*

This only works if you have root and clockworkmod recovery installed see the stickys in the EPIC 4G DEVELOPMENT to get them first.

I, like a lot of people, got sick of the SMILEY button. I also barely use the search button on the bottom of the screen,
so I decided to change them and make them more useful.

edit: according to Geniusdog254 this will need to be reapplied after a rom update, unless it is included in the rom.
DEVS: please feel free to include this or at least a link to this post when updating your roms.

**changed mod method to clockworkmod recovery**

I have had several friends and members ask me how to do this... (they also asked for it to be made dummy proof)
I hope I have succeeded.


FOR NOOBS:

To Enable tweaks

1: download the attachments -
for only smiley to @ tweak
for only search to endcall tweak
2. install through clockworkmod recovery
option 1. use the clockworkmod rom manager to select file and flash
option 2. boot into clockworkmod recovery and select "install zip from sdcard" > "choose zip from sdcard" > then navigate to zip and install

To Disable tweaks (ie: go back to regular keyboard layout)

1: download the attachments -
for only smiley to @ tweak
for only search to endcall tweak

2. install through clockworkmod recovery ( clockworkmod < 3.0.0 only, I haven't had time to learn the edify scripting developers feel free to make it if you want to include it)
option 1. use the clockworkmod rom manager to select file and flash
option 2. boot into clockworkmod recovery and select "install zip from sdcard" > "choose zip from sdcard" > then navigate to zip and install

FOR SKILLED USERS:

1. Just download the zip file
2. use ClockworkMod recovery to install the zip files above
or
download, extract, flash the ones of your choosing from here

FOR DEVS and/or SKILLED USERS:

the changes are simple
I got the information from http://pdk.android.com/online-pdk/gu...ard_input.html...
To make your own keyboard layouts just edit the .kl files in a notepad (gedit or notepad++ choose your flavor) then push them back to /system/usr/keylayout
- for search hack (melfas-touchkey.kl) - key 107 SEARCH WAKE_DROPPED -> key 107 ENDCALL WAKE - then save.
changes:

-for AT/Smiley hack (s3c-keypad.kl) - key 42 SMILEY WAKE_DROPPED -> key 42 AT WAKE_DROPPED - then save.

'SEARCH' Button on the bottom will end calls and put screen to sleep while not in a call
this only affects the capacitive search button on the bottom (the bottom 4 on the main screen)
the hardware search button on the qwerty keyboard is still mapped to search

' - smiley' button on qwerty keyboard is now the '@' symbol... (I have no idea why this wasn't stock to begin with)

**edit**
added attachments for only smiley and only search button hacks

**edit**
changed install method to *.zip for clockworkmod recovery

**edit 2.27.2010**
included specific changes
Last edited by smeyerhuky; 28th February 2011 at 04:14 AM. Reason: changed mod method to clockworkmod recovery
4th October 2010, 05:25 AM   |  #2  
NeonMonster's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 24
 
554 posts
Join Date:Joined: Jan 2010
More
Wow awesome!

I was pretty excited for the smiley button, but honestly have NEVER used it since I don't like the :) faces.

I actually use the Search button pretty frequently, so could you put up a separate hack for JUST the smiley/@ button?


Wait, does the search button hack only apply to hardware keyboard or to the capacitive search button also?
4th October 2010, 05:47 AM   |  #3  
OP Senior Member
Thanks Meter: 12
 
114 posts
Join Date:Joined: Jan 2009
search
Quote:
Originally Posted by NeonMonster

Wow awesome!

I was pretty excited for the smiley button, but honestly have NEVER used it since I don't like the :) faces.

I actually use the Search button pretty frequently, so could you put up a separate hack for JUST the smiley/@ button?


Wait, does the search button hack only apply to hardware keyboard or to the capacitive search button also?

edited first post
added individual hacks to attachments

PS
search hack is only for capacitive...
the physical search button on the keyboard is still mapped to search
4th October 2010, 06:03 AM   |  #4  
Geniusdog254's Avatar
Retired Recognized Developer
Flag St. Louis
Thanks Meter: 167
 
1,094 posts
Join Date:Joined: Jan 2009
Donate to Me
More
This is old news

I had the first post with it back in the good ole days in the G1 section lmao. My Search2Play app on the Market actually does this, but it remaps search to play/pause music. I really need to update it for the Epic & other SGS devices lol

Anyway, I was going to change the smiley to @ myself the other day but never got around to it. Kudos!

EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change
4th October 2010, 06:13 AM   |  #5  
OP Senior Member
Thanks Meter: 12
 
114 posts
Join Date:Joined: Jan 2009
Quote:
Originally Posted by Geniusdog254

This is old news

I had the first post with it back in the good ole days in the G1 section lmao. My Search2Play app on the Market actually does this, but it remaps search to play/pause music. I really need to update it for the Epic & other SGS devices lol

Anyway, I was going to change the smiley to @ myself the other day but never got around to it. Kudos!

EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change


COOL...
I went from a G1 to an epic 4g,
Was hard to leave cyanogen and all the G1 greatness...

I didn't know that your tool worked for the capacative search button only, I tried it and it changed both of them.

Cant wait to see your updated app and stop using this crude workaround....
4th October 2010, 06:19 AM   |  #6  
Geniusdog254's Avatar
Retired Recognized Developer
Flag St. Louis
Thanks Meter: 167
 
1,094 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by smeyerhuky

COOL...
I went from a G1 to an epic 4g,
Was hard to leave cyanogen and all the G1 greatness...

I didn't know that your tool worked for the capacative search button only, I tried it and it changed both of them.

Cant wait to see your updated app and stop using this crude workaround....

My app actually does the exact same thing your doing, replacing the *.kl file with one that has the buttons remapped. It's just packaged up into a nice shiny little box

Also, it works for all types of buttons, but on capacitive buttons it doesn't work when the screen is turned off.
4th October 2010, 06:21 AM   |  #7  
OP Senior Member
Thanks Meter: 12
 
114 posts
Join Date:Joined: Jan 2009
thanks again.
Quote:
Originally Posted by Geniusdog254

EDIT: Also, it WILL change between ROMs. They (almost) always wipe /system in the update script and then flash back, and even if they don't they always contain these files for safety. Not a big deal, but you will have to change it again after a ROM change

updated in OP thanks....

PS.
Isn't the purpose of open source code reuse....

Love your kernel can't wait for the update tomorrow night. I do a lot of personal development on my phone would love to test things for you from time to time.

PPS
I am a student in computer engineering focusing on VLSI so I dont always have time to post my personal edits...
4th October 2010, 06:32 AM   |  #8  
Geniusdog254's Avatar
Retired Recognized Developer
Flag St. Louis
Thanks Meter: 167
 
1,094 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by smeyerhuky

updated in OP thanks....

PS.
Isn't the purpose of open source code reuse....

Love your kernel can't wait for the update tomorrow night. I do a lot of personal development on my phone would love to test things for you from time to time.

PPS
I am a student in computer engineering focusing on VLSI so I dont always have time to post my personal edits...

Of course thats the point of open source lol. I wasn't criticizing you at all if that's what it sounded like, its great you figured that out for yourself. People like you & I who experiment with our phones until we make them work how we want are what makes the world go round lol
4th October 2010, 06:32 AM   |  #9  
NeonMonster's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 24
 
554 posts
Join Date:Joined: Jan 2010
More
Just applied the button hack!

Both work perfectly! The capacitive search remap is really useful! Love it!
4th October 2010, 09:09 AM   |  #10  
Junior Member
Thanks Meter: 0
 
11 posts
Join Date:Joined: Sep 2010
Sorry, having trouble installing...I have my phone rooted and busybox, but I'm getting what I think is an error message.

It says- 'adb' is not recognized as an internal or external command, operable program, or batch file

Any ideas as to what I'm doing wrong?

Post Reply Subscribe to Thread

Tags
@ remap, epic 4g keyboard fix, keyboard tweaks
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes