Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,453 Members 41,713 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
smeyerhuky
Old
(Last edited by smeyerhuky; 28th February 2011 at 03:14 AM.) Reason: changed mod method to clockworkmod recovery
#1  
Senior Member - OP
Thanks Meter 12
Posts: 114
Join Date: Jan 2009
Default [EB13] [MOD] Keyboard Tweaks -- '@' for SMILEY [UPDATED] 2.27.2010

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
 
NeonMonster
Old
#2  
NeonMonster's Avatar
Senior Member
Thanks Meter 24
Posts: 554
Join Date: Jan 2010
Location: Los Angeles
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?
Rooted Galaxy Note 2
Master Jedi ROM 3.3
 
smeyerhuky
Old
#3  
Senior Member - OP
Thanks Meter 12
Posts: 114
Join Date: Jan 2009
Default search

Quote:
Originally Posted by NeonMonster View Post
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
 
Geniusdog254
Old
#4  
Geniusdog254's Avatar
Retired Recognized Developer
Thanks Meter 166
Posts: 1,094
Join Date: Jan 2009
Location: St. Louis

 
DONATE TO ME
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
Follow me on Twitter @Geniusdog254

If you like my work, please buy one of my apps on the Market or donate!
  • Reflex-A-Tron - A colorful, addicting, & fun game to test yourself & challenge friends for only $.99!
  • Search2Play - Control your music with your device's buttons!
  • Task'd - A beautiful to-do list app!

Phones:
Android Dev Phone 1 - Dec. '08
Rogers HTC Dream - Sept. '09
AT&T Nexus One - March '10
Motorola Droid - Apr. '10
HTC Evo - Jun. '10
HTC Evo 3D - Jun. '11
Sprint Galaxy Nexus - May '12
 
smeyerhuky
Old
#5  
Senior Member - OP
Thanks Meter 12
Posts: 114
Join Date: Jan 2009
Quote:
Originally Posted by Geniusdog254 View Post
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....
 
Geniusdog254
Old
#6  
Geniusdog254's Avatar
Retired Recognized Developer
Thanks Meter 166
Posts: 1,094
Join Date: Jan 2009
Location: St. Louis

 
DONATE TO ME
Quote:
Originally Posted by smeyerhuky View Post
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.
Follow me on Twitter @Geniusdog254

If you like my work, please buy one of my apps on the Market or donate!
  • Reflex-A-Tron - A colorful, addicting, & fun game to test yourself & challenge friends for only $.99!
  • Search2Play - Control your music with your device's buttons!
  • Task'd - A beautiful to-do list app!

Phones:
Android Dev Phone 1 - Dec. '08
Rogers HTC Dream - Sept. '09
AT&T Nexus One - March '10
Motorola Droid - Apr. '10
HTC Evo - Jun. '10
HTC Evo 3D - Jun. '11
Sprint Galaxy Nexus - May '12
 
smeyerhuky
Old
#7  
Senior Member - OP
Thanks Meter 12
Posts: 114
Join Date: Jan 2009
Default thanks again.

Quote:
Originally Posted by Geniusdog254 View Post
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...
 
Geniusdog254
Old
#8  
Geniusdog254's Avatar
Retired Recognized Developer
Thanks Meter 166
Posts: 1,094
Join Date: Jan 2009
Location: St. Louis

 
DONATE TO ME
Quote:
Originally Posted by smeyerhuky View Post
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
Follow me on Twitter @Geniusdog254

If you like my work, please buy one of my apps on the Market or donate!
  • Reflex-A-Tron - A colorful, addicting, & fun game to test yourself & challenge friends for only $.99!
  • Search2Play - Control your music with your device's buttons!
  • Task'd - A beautiful to-do list app!

Phones:
Android Dev Phone 1 - Dec. '08
Rogers HTC Dream - Sept. '09
AT&T Nexus One - March '10
Motorola Droid - Apr. '10
HTC Evo - Jun. '10
HTC Evo 3D - Jun. '11
Sprint Galaxy Nexus - May '12
 
NeonMonster
Old
#9  
NeonMonster's Avatar
Senior Member
Thanks Meter 24
Posts: 554
Join Date: Jan 2010
Location: Los Angeles
Just applied the button hack!

Both work perfectly! The capacitive search remap is really useful! Love it!
Rooted Galaxy Note 2
Master Jedi ROM 3.3
 
jbuss69
Old
#10  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: 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?

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

Advanced Search
Display Modes