Let's face it, the menu belongs on your left thumb. We all know it.
It's not a hard fix.
First, you need to root your phone. Next, get Root Explorer from the market. (Other file managers and text editors can be used, but Root Explorer makes it easy.)
Navigate to /SYSTEM/USR/KEYLAYOUT/s3c-keypad.kl
(If you aren't using Root Explorer, make a backup copy of the original file before you edit!)
Open s3c-keypad.kl and make sure you are set to read and write the file.
It will look like this:
#
# NAGSM_SEL_FRAMEWORK
# abhilash.b - Keymaping and added custom labels - SYMBOL , MULTITASKER, SMILEY
#
key 16 1
key 17 2
key 25 3
key 33 4
key 41 5
key 49 6
key 2 7
key 10 8
key 18 9
key 67 0
key 68 Q
key 65 W
key 3 E
key 11 R
key 19 T
key 27 Y
key 35 U
key 43 I
key 51 O
key 59 P
key 20 A
key 28 S
key 36 D
key 44 F
key 52 G
key 60 H
key 5 J
key 13 K
key 21 L
key 4 DEL
key 45 SEARCH
key 53 Z
key 61 X
key 6 C
key 14 V
key 22 B
key 30 N
key 38 M
key 54 SMILEY
key 29 ENTER
key 15 SHIFT_LEFT
key 23 ALT_LEFT
key 56 AT
key 48 COMMA
key 63 SPACE
key 64 PERIOD
key 32 QUESTION
key 40 VOICE_INPUT
key 46 SHIFT_RIGHT
key 7 MULTITASKER
key 34 BACK WAKE_DROPPED
key 66 MENU WAKE_DROPPED
key 8 HOME WAKE
key 42 VOLUME_UP WAKE_DROPPED
key 58 VOLUME_DOWN WAKE_DROPPED
key 26 POWER WAKE
key 50 DPAD_CENTER WAKE_DROPPED
key 39 FOCUS
key 31 CAMERA
# Need to be interchanged later - abhilash.b
...Now, switch the HOME WAKE to the key 66 line and put the MENU WAKE_DROPPED on the key 8 line.
When you save it, Root Explorer cleverly makes a backup of the original for you.
Now, reboot and enjoy. The menu is back where it belongs (top left) and the home button has moved to the cancel key position--upper right.
It's easy fix and it makes the device feel more like home.
Sent from my SGH-T839 using XDA App
man kind of wish i had run into this earlier. Coming from the G1 I kept hitting the wrong buttons for a long time. Now i've already gotten used else i'd jump right on this
LesserAnimal said:
man kind of wish i had run into this earlier. Coming from the G1 I kept hitting the wrong buttons for a long time. Now i've already gotten used else i'd jump right on this
Click to expand...
Click to collapse
Lol same thing for me, im used to it now
hahaha omg i totally didn't even think about this. I might have to do this for the question mark too...
Would this allow us to change the trackball click function into a search button? Because that woukd solve the biggest flaw on this phone.
And if so, would trackball scrolling still work for text selection? I like that, just don't really use the trackball click. I'm guessing the trackball button would be the one labeled "center" right?
Falkner09 said:
Would this allow us to change the trackball click function into a search button? Because that woukd solve the biggest flaw on this phone.
And if so, would trackball scrolling still work for text selection? I like that, just don't really use the trackball click. I'm guessing the trackball button would be the one labeled "center" right?
Click to expand...
Click to collapse
if you can get that to work i'd remap my trackball to search as well. good idea .. never woulda though of that
ayoteddy said:
if you can get that to work i'd remap my trackball to search as well. good idea .. never woulda though of that
Click to expand...
Click to collapse
So did anyone try it?
Remapped long after getting "used" to the new menu location, now I get to re-train myself. Whoops. Ah well. It is where it should be now!
ayoteddy said:
if you can get that to work i'd remap my trackball to search as well. good idea .. never woulda though of that
Click to expand...
Click to collapse
Well my trackpad is officially now a search key all u do is replace line 50 with SEARCH (all upper case) and reboot so thank u guys for the information appreciate it
Edit: trackpad still scrolls too
Sent from my SGH-T839 using xda premium
Gplayjay said:
Well my trackpad is officially now a search key all u do is replace line 50 with SEARCH (all upper case) and reboot so thank u guys for the information appreciate it
Edit: trackpad still scrolls too
Sent from my SGH-T839 using xda premium
Click to expand...
Click to collapse
WOO! Thanks now it feels like my phone is fulfilled!
You can put your search button on the "multitasker" button. The key still works as a jump key when the phone is open.
You will lose access to your recent apps, but you can take care of that with a new launcher or a "prehome" app.
Just replace MULTITASKER with SEARCH.
Sent from my SGH-T839 using XDA App
I tried doing this without root explorer (don't want to pay) and I ant find any app that will open the file. I edit it and then I reboot my phone, nothing changes.
Sent from my SGH-T839 using XDA App
the search button works when changed to the trackpad thanks everyone
would this work on forcing the enter key to send a message instead of just creating a line break?
theU1991 said:
would this work on forcing the enter key to send a message instead of just creating a line break?
Click to expand...
Click to collapse
Sadly, it will not.
TTYTYTYTYTYTYTY sooo much ive been looking for this
pretty sick, gonna look at changing the smiley face key to be another ALT key. thanks!
---------- Post added at 06:43 PM ---------- Previous post was at 06:31 PM ----------
mksin11 said:
I tried doing this without root explorer (don't want to pay) and I ant find any app that will open the file. I edit it and then I reboot my phone, nothing changes.
Sent from my SGH-T839 using XDA App
Click to expand...
Click to collapse
root browser lite by JRUMMY16, free from market. got it just now to do this. worked perfectly. automatically makes a backup of the file for you when you save your edits. app seems solid overall.
---------- Post added at 06:46 PM ---------- Previous post was at 06:43 PM ----------
alright, i changed the SMILEY key to ALT_RIGHT and it TOTALLY WORKS AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH
This is perfect!
My Sidekick 4g took a bath this summer in a creek...the joy damage was the Back button stopped functioning.
I used this post to switch the Jump button to Back, since I never used the Jump button...and my phone works great now. Thanks!
very helpful, even though i'll probably screw this up. Is it possible to change jump key into launching a pre home app, like URL="https://playDOTgoogleDOTcom/store/apps/details?id=mohammad.adib.sidebar.lite"this one? (too new, cant post links)
fuzzie said:
This is perfect!
My Sidekick 4g took a bath this summer in a creek...the joy damage was the Back button stopped functioning.
I used this post to switch the Jump button to Back, since I never used the Jump button...and my phone works great now. Thanks!
Click to expand...
Click to collapse
How can I do that is the Jump key the one that says Multitasker?
Related
I use an Apple Wireless keyboard with my android phone and it works well but not perfectly. Many keys aren't mapped properly.
On this thread I hope some skilled people will come along and help generate a keymap bin file for this great keyboard so more android users can benefit from it.
Checking the logs when the phone connects to the keyboard show:
W/KeyCharacterMap(13414): Can't open keycharmap file
W/KeyCharacterMap(13414): Error loading keycharmap file '/system/usr/keychars/Apple_Wireless_Keyboard.kcm.bin'. hw.keyboards.196612.devname='Apple Wireless Keyboard'
W/KeyCharacterMap(13414): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
Click to expand...
Click to collapse
So it appears we just need to generate an Apple Wireless Keyboard kcm file and this page should help: http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html#androidKeymapIntro
I am going to have a go but am probably not technically skilled enough for this.
i got the same problem, but no solution...
I use the apple wireless keyboard, the norwegian version, and of course the layout for default bluetooth keyboard is english and doesn't match the hardware keys for my norwegian keyboard. My question is about the file pointed to here:
"Using default keymap: /system/usr/keychars/qwerty.kcm.bin"
Is this in any way related to the on-screen keyboard? If not, if it will be working as a default with the apple keyboard, then maybe it is possible to just manually edit the file? I don't know anything about this, so sorry if this is a stupid question My phone is not rooted, so I don't even have access to "/system/usr/keychars/qwerty.kcm.bin"..
I would very much appreciate if anyone could check this on their phone, maybe paste the contents of the file here? If one could easily change the mapping of the bluetooth keyboard in this file, this could work for me.
In my case, I'm satisfied with the keyboard, works well, but the default layout is in english and that means I can't use the norwegian hardwarebuttons "ÆØÅ".
Have been trying a bit on my own, with the fear of "bricking" my device,
I am a total noob with android so please don't laugh if my ideas are stupid
Please help!
The file /system/usr/keychars/qwerty.kcm.bin seems impossible to edit.
However, I found the file /system/usr/keylayout/qwerty.kl
The following is the contents of the file:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 1 BACK WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
Click to expand...
Click to collapse
If I use a text-editor to edit this file, and save it in the same charset as the original, it should work, right?
When I press the hardwarebuttons -ÆØÅ- , I get ';[
so accordingly I am thinking of changing the following:
key 26 LEFT_BRACKET --> Å
key 39 SEMICOLON --> Ø
key 40 APOSTROPHE --> Æ
I fear that I will "brick" my phone if this doesn't work. Does anyone have an opinion?
If this is indeed a stupid idea, I hope somebody can tell me before I destroy my phone
I went ahead and tried this, after consulting an experienced friend who thought this wouldn't do any harm. It turned out this had no effect at all. Phone is ok, still nothing changed at all.
Found out how to edit the .kcm.bin-file and now I made it work for me,
and maybe others with norwegian apple keyboard
http://forum.xda-developers.com/showthread.php?p=11886341#post11886341
I have absolutely no skills in this, but was able to remap some simple buttons with the app Keytest.apk (simply google) and some alterations in the qwerty.kl and others,
i broke a couple of times the file i guess resulting the keyboard stop working but a simple backup put everything back in working order.
Ill try to play some with this in the next couple of days.
will let you know! and post my results!
Yes! If your keyboard is in english and that is also your prefered language, then it seems that all you have to do is alter the .kl-file used by the keyboard in order to get the symbols in proper places according to the scancodes given by "KeyTest.apk"
The phone will probably not be "bricked" in any case. If you make a mistake when editing the .kl-file, you can just use a backup to get it working again (at least if you have a working touch-screen).
Still, some combinations might not work that easily. Then you'll have to alter the .kcm.bin-file in a hex-editor, in my case for "æøå" and others, like for instance to get "7" and "/" on the norwegian keyboard to be on the same button, so that it gives "/" when typing "7" and holding shift (while english keyboards have "7" and "&" with shift if I'm not mistaken..)
i.e. the .kcm.bin-file contains a binary formated layout of the characters and the symbols to show accordingly when pressing normal, with shift, alt or fn, while the .kl-file only decides what scancodes from the keyboard referes to what characters in the .kcm.bin-file.
So editing the .kcm.bin-file, you could make all kinds of fun, for instance make shift+a print "£" in stead of "A". This file decides what symbols will show up on your screen when pressing a function-key like shift, alt, fn etc with a normal key. In this file you cannot alter the places on the keyboard, only existing combinations of characters.
The .kl-file will only let you change the places on the keyboard and not the existing keychars.
So in the .kl-file you cannot put in any foreign letters like german "ü" or french "ç",
but you can change the .kcm.bin-file to make alt+c print "ç" and shift+alt+c print "Ç".
Then just leave the "C" where it belongs in the .kl-file.
The biggest caveats with this solution is that there is no fast way to switch between two languages, for instance some times I write in cyrillic and some times in latin letters. For this I would have to manually change between two .kcm.bin-files, one in latin and one in cyrillic. (I am already planning how to make one in cyrillic)
Sorry for my bad english, don't write much in english hope my writing is understandable
If you cannot use the adb logcat to find out which file to edit, then just try to edit one letter in one .kl file for instance change the "K" to be "P", and see if it makes it print "P". If it doesn't then change it back, and do the same with the next .kl-file until you find the one you have to edit.
I would assume one has to disconnect the keyboard and maybe turn off bluetooth for every try, since the keyboard layout is probably loaded into memory as soon as it is connected, so a change wouldn't have any effect when it is connected.
Biffy said:
On this thread I hope some skilled people will come along and help generate a keymap bin file for this great keyboard so more android users can benefit from it.
Click to expand...
Click to collapse
I'm not so skilled, but I managed to do this with a norwegian keyboard.
I could try the same for english keyboard if I had at least a good picture of the
keyboard with the scancodes for every key, and also the original .kcm.bin / .kl files to alter. And also what combinations to alter. It is not so difficult.
I have created a qwerty.kl file to use the apple wireless keyboard with connectbot in landscape mode. It works great with cyanogenmod on my HTC DHD but should work with other phones / roms.
modifications :
- change arrows directions to match landscape mode (phone bottom on the right)
- map the left "ctrl" key of the keyboard to DPAD_CENTER so that it can be used as ctrl in connectbot as well as escape key (two presses).
modifications I would like to have
- have the escape key work correctly
- have the "tab" key work correctly in connectbot
To install, replace on your phone:
- unzip the file to your computer
- enable USB debugging
- remount partition in read write
Code:
adb remount
- backup the original file somewhere
Code:
adb pull /system/usr/keylayout/qwerty.kl $SAVE_PATH
- copy the new file to the phone
Code:
adb push $NEW_QWERTY.KL_LOCATION /system/usr/keylayout/
- reboot your phone (to remount the system partition read-only)
If you can improve, don't hesitate to publish
Is there a way to make the screen wake up when I press the end call key?
I really think that the power/lock button is hard to reach and feels unnatural, while the end call key seems perfect for that...
It should be possible if you have root and you edit the keyboard.kl file.
Would it then not be able to end calls tho?
Out of interest
Sent from my HTC ChaCha A810e using Tapatalk
qbert456 said:
Would it then not be able to end calls tho?
Out of interest
Sent from my HTC ChaCha A810e using Tapatalk
Click to expand...
Click to collapse
I hope not! All I want is to be able to wake up the screen along with being able to end calls...
Ok. I've found the keyboard files, but don't know which one should I edit. Can someone point me to a .kl file and the corresponding string I should edit since I'm quite a noob in that area?
In /system/usr/keylayout/chacha-keypad.kl
# column 2
key 107 ENDCALL - change to POWER but then endcall will not work.
I suppose you could swap them over?
End call with power button instead?
Just a thought
Sent from my HTC ChaCha A810e using Tapatalk
@qbert That is one idea...
@Alex Thanks. I guess there's no way to use it for both?
StevaSRB said:
@Alex Thanks. I guess there's no way to use it for both?
Click to expand...
Click to collapse
Hmmm, haven't tried it yet
I can see other keys like:
# column 4
key 114 VOLUME_DOWN WAKE
If you press the volume down button you will notice that the screen turns on (aka wake) so it might be that you can use
# column 2
key 107 ENDCALL POWER or WAKE_DROPPED (which means sleep/lock screen)
It's risky though, what I can see is that when you end a call you will also tell your phone to sleep/lock screen at the same time. It depends how processes are managed and if WAKE_DROPPED is processed first (as having higher priority), you might end up with WAKE_DROPPED all the time and ENDCALL being discarded. I haven't tried any of these so don't point fingers if something goes wrong.
If you do want to switch them then put POWER WAKE_DROPPED for key 107 and ENDCALL for 116.
Remember to do a backup of your rom before changing these.
RESOLVED
Ok. After playing a bit I've finally found a way to make it work for me...
I've left the ENDCALL and added to it: [13xspace]WAKE_DROPPED. I don't think you need to have 13 spaces exactly, but I copied the entry from one of the other strings...
This way it lets me use the END CALL key to end calls and to (only) wake up the screen from sleep (which is exactly what I needed). It will not make the screen go to sleep because POWER and ENDCALL entries are conflicted and will make your keyboard unresponsive...
Excellent! Works for me too. Thx Alex.
sabesh said:
Excellent! Works for me too. Thx Alex.
Click to expand...
Click to collapse
Thank StevaSRB too, for testing
is there any app can use volume button or end-call to wake up screen !?.
I tried
# column 4
key 114 VOLUME_DOWN WAKE ,but it didnt work.
StevaSRB said:
Ok. After playing a bit I've finally found a way to make it work for me...
I've left the ENDCALL and added to it: [13xspace]WAKE_DROPPED. I don't think you need to have 13 spaces exactly, but I copied the entry from one of the other strings...
This way it lets me use the END CALL key to end calls and to (only) wake up the screen from sleep (which is exactly what I needed). It will not make the screen go to sleep because POWER and ENDCALL entries are conflicted and will make your keyboard unresponsive...
Click to expand...
Click to collapse
Could u please be more specific as to what exactly u changed????? Please.
StevaSRB said:
Ok. After playing a bit I've finally found a way to make it work for me...
I've left the ENDCALL and added to it: [13xspace]WAKE_DROPPED. I don't think you need to have 13 spaces exactly, but I copied the entry from one of the other strings...
This way it lets me use the END CALL key to end calls and to (only) wake up the screen from sleep (which is exactly what I needed). It will not make the screen go to sleep because POWER and ENDCALL entries are conflicted and will make your keyboard unresponsive...
Click to expand...
Click to collapse
can u tell me how to do this?????
---------- Post added at 03:52 PM ---------- Previous post was at 03:42 PM ----------
Alex C. said:
Thank StevaSRB too, for testing
Click to expand...
Click to collapse
can u tell me how to use end call key to wake up scree?????//
[Q]
How we can set shift+* change keyboard language??? is it possible???
Very good ,,,it works for me too....i've added 13 free space after END CALL then type WAKE_DROPPED,,,now with the end call key the screen turns on..tnx guys:thumbup:
Sent from my HTC ChaCha A810e using xda app-developers app
lil.masoud said:
Very good ,,,it works for me too....i've added 13 free space after END CALL then type WAKE_DROPPED,,,now with the end call key the screen turns on..tnx guys:thumbup:
Sent from my HTC ChaCha A810e using xda app-developers app
Click to expand...
Click to collapse
can u send me the file u change????
tuyenat3 said:
can u send me the file u change????
Click to expand...
Click to collapse
Yes,of course,,,why not...:thumbup:
Sent from my HTC ChaCha A810e using xda app-developers app
mortal19xx said:
How we can set shift+* change keyboard language??? is it possible???
Click to expand...
Click to collapse
How can i send u the file??
Sent from my HTC ChaCha A810e using xda app-developers app
lil.masoud said:
Yes,of course,,,why not...:thumbup:
Sent from my HTC ChaCha A810e using xda app-developers app
Click to expand...
Click to collapse
please send me to [email protected]
thank u so much
and i have a question:which rom are u using???i'm using cm10.1
This is to show you how to disable the capacitive buttons so they will no do anything other then light up if you so please.
Generally this would be used with the onscreen NAV keys like that in the Galaxy Nexus.
Code:
I am not responsible if this causes your phone to
make first contact and bring forth a race of beings that kills us all.
I am also not responsible if this damages your phone in any way, at all.
I have done this on my SGSII LTE (Skyrocket) i727R and suffered NO issues.
I am using this on the AOKP Milestone 6 ROM.
I suspect that this would work with other ROMS and even other phones with no issues.
STEPS:
NANDROID/OTHER BACKUP!!
Using Root Explorer (or other file explorer) go to /system/usr/keylayout
MAKE A BACKUP OF "melfas_touchkey.kl"
Edit "melfas_touchkey.kl"
Add a # in front of each line, there should only be four.
Save the file and reboot your phone.
Code:
Original:
Key 158 BACK Virtual
Key 139 MENU Virtual
Key 172 HOME Virtual
Key 217 SEARCH Virtual
Code:
Altered:
#Key 158 BACK Virtual
#Key 139 MENU Virtual
#Key 172 HOME Virtual
#Key 217 SEARCH Virtual
Adding a # in front of the line disables that line of code and the function.
Now if you want the lights gone too, the only way I know of so far is to try an app that inst 100% compatible called "Keep the lights on".
The app will add a widget that you can disable the lights with.
For me, they just turn on again when coming out of standby.
[Edit]So this is also posted in RootzWiki, found it after posting.
http://rootzwiki.com/topic/31065-tu...acitive-buttons-lights-and-use-on-screen-nav/
Personally I don't see a reason to disable them but maybe you could alter this to change the function of certain keys?
ceasee said:
This is to show you how to disable the capacitive buttons so they will no do anything other then light up if you so please.
Generally this would be used with the onscreen NAV keys like that in the Galaxy Nexus.
Code:
I am not responsible if this causes your phone to
make first contact and bring forth a race of beings that kills us all.
I am also not responsible if this damages your phone in any way, at all.
I have done this on my SGSII LTE (Skyrocket) i727R and suffered NO issues.
I am using this on the AOKP Milestone 6 ROM.
I suspect that this would work with other ROMS and even other phones with no issues.
STEPS:
NANDROID/OTHER BACKUP!!
Using Root Explorer (or other file explorer) go to /system/usr/keylayout
MAKE A BACKUP OF "melfas_touchkey.kl"
Edit "melfas_touchkey.kl"
Add a # in front of each line, there should only be four.
Save the file and reboot your phone.
Code:
Original:
Key 158 BACK Virtual
Key 139 MENU Virtual
Key 172 HOME Virtual
Key 217 SEARCH Virtual
Code:
Altered:
#Key 158 BACK Virtual
#Key 139 MENU Virtual
#Key 172 HOME Virtual
#Key 217 SEARCH Virtual
Adding a # in front of the line disables that line of code and the function.
Now if you want the lights gone too, the only way I know of so far is to try an app that inst 100% compatible called "Keep the lights on".
The app will add a widget that you can disable the lights with.
For me, they just turn on again when coming out of standby.
[Edit]So this is also posted in RootzWiki, found it after posting.
http://rootzwiki.com/topic/31065-tu...acitive-buttons-lights-and-use-on-screen-nav/
Click to expand...
Click to collapse
Hey man i seen your method and i tried it but, it didn't work for me and i checked the file after a reboot and the buttons still work even thought I am trying to disable it.
I figured this out a couple months ago when I was only using virtual buttons. XD
CoogiMane1996 said:
Hey man i seen your method and i tried it but, it didn't work for me and i checked the file after a reboot and the buttons still work even thought I am trying to disable it.
Click to expand...
Click to collapse
Did you save the file? And as the right name?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
well, recently I've been trying to remap the softkeys on the note II, and I'm just not making progress. My goal is to create a small mod that turns the softkey lights off, and remaps the menu key for the back key, and the back key to recents, as well as somehow changing the home button longpress to a google now shortcut.
After doing some research, I figured changing the Generic.kl (/system/usr/keylayout/) lines 139 and 158 would make progress. However, all I've accomplished so far is disabling the softkeys.
Any help or information on this subject would be greatly appreciated.
Thanks in advance.
- and yes, I tried the ButtonRemapper apk
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Thanks a bunch!
idiotzach15 said:
Thanks a bunch!
Click to expand...
Click to collapse
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
idiotzach15 said:
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
Click to expand...
Click to collapse
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
elesbb said:
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Click to expand...
Click to collapse
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
tonyf7 said:
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
Click to expand...
Click to collapse
Have to decompile it using apktool
Sent from my SPH-L710 using xda app-developers app
elesbb said:
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
Click to expand...
Click to collapse
Is it possible to add a method that when back is pressed twice it launches an app? Or can I modify long press to launch an app like voice commands?
hi guyz.. one question.. i'd want to remap the buttons with this logoc
1 press menù -> multitasking tab
long press menù -> menù
long press home buttons -> gvoice
any idea how to use it?
i'm on swift rom v3 + perseus kernel and, i don't have the sec_touchkey file! o.o
how to?
i'd want to use the stock tw launcher, not another one..
thanks
---------- Post added at 03:58 PM ---------- Previous post was at 03:21 PM ----------
Ok i edited the file and puted it in right folder.. now i have the multitasking in normal menù press, but NOT the menù in the hold.. what could i do?
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Shekar.m1986 said:
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Click to expand...
Click to collapse
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
iba21 said:
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
Click to expand...
Click to collapse
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Shekar.m1986 said:
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Click to expand...
Click to collapse
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
iba21 said:
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
Click to expand...
Click to collapse
This is an expensive phone, so we would definitely worry about it i know it does rarely broken, but it does more or less, i don't know why samsung intend to choose physical home instead of capacitive, i had HTC Sensation, and i was glad to use sweep2wake on it to save power button, samsung's power button gives loose feeling right out of the box like it'll break anytime, so samsung needs sweep2wake or something like that much more than HTC devices, hopefully some devs will look at it, THIS WAKE-UP KEY NEED TO BE HACKED AND REPLACED, simple is that, although soft keys gives it little bit relief, but we have to wake-up device atleast 30-50 times in working days, so that's why i am really looking forward to it, can we both join hands to bring developers attention toward it? if you also want to wake-up screen with anything other than physical keys i'm sure you must be missing sweep2wake in note 2
I didn't use s2w.. why? It uses too mouch energy in standby
showp is one of my great friends in xda, and i love his kernel + his MPDECISION code
Btw, for me, you are crazy
Never ever had problems with phone buttons.. i had an n95, i sent about 1 bilion of sms.. here in italy vodafone created a promo witch gives about 100free sms per day.. i used everytime all the sms.. and.. sure.. i had to press the send button 2 timed every sms + all the other
I used that phone for 3 years.. changed it with an hd2... bought the first day (n95) and hd2 used.. 365 days x 3 = 1095.. 1095 x 100 = 19500 x 2 = 219,000 + all the other used to navigate in menù
Btw.. n95 was broken in display cable.. all buttons perfect!!
has anyone tried ButtonRemapper? http://forum.xda-developers.com/showthread.php?t=850464
before doing all the hard work
Yep and didnt work!
I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?
3bs11 said:
I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?
Click to expand...
Click to collapse
You can do that with an app from Play Store. The app is called All in one Gesture. It allows you to change actions on all keys on your phone. It worked for me.
Ninolina said:
You can do that with an app from Play Store. The app is called All in one Gesture. It allows you to change actions on all keys on your phone. It worked for me.
Click to expand...
Click to collapse
Thanks a lot!
3bs11 said:
I can't customise what the short press does
Click to expand...
Click to collapse
That screen look a bit different on my S6. Did you activated it when it asked for it? When you first started it did it asked you for something?
3bs11 said:
I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?
Click to expand...
Click to collapse
I just did this myself. I made the same mistake as you did, such that the recent key/button was still operational. I then realized that it's not a menu button, but it's an app switcher function, hence "recent". Under "# samsung", there should be "key 254 APP_SWITCH". That's the one to disable the app switcher key or "recents" button.
Hope this helps out anyone out there looking for this.
How do I get to this coding
hoang51 said:
I just did this myself. I made the same mistake as you did, such that the recent key/button was still operational. I then realized that it's not a menu button, but it's an app switcher function, hence "recent". Under "# samsung", there should be "key 254 APP_SWITCH". That's the one to disable the app switcher key or "recents" button.
Hope this helps out anyone out there looking for this.
Click to expand...
Click to collapse
hi, sorry for bother you but can you tell me how to do that? my recent apps key is always pressing and i go in holidays so i don t have time to take the phone to warranty.. can i perform that without root? thank you
macgaitas said:
hi, sorry for bother you but can you tell me how to do that? my recent apps key is always pressing and i go in holidays so i don t have time to take the phone to warranty.. can i perform that without root? thank you
Click to expand...
Click to collapse
To disable the capacitive button , you need root.
Rakcoon said:
To disable the capacitive button , you need root.
Click to expand...
Click to collapse
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..
macgaitas said:
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..
Click to expand...
Click to collapse
Dont root the phone. Take it to samsung for warranty claim when you get a chance.
They should be held accountable for the defect. Good luck.
macgaitas said:
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..
Click to expand...
Click to collapse
Rakcoon said:
Dont root the phone. Take it to samsung for warranty claim when you get a chance.
They should be held accountable for the defect. Good luck.
Click to expand...
Click to collapse
Just to verify, do you have any type of case on the phone, and if so, does the button do the same thing if you remove the case.
Otherwise, Rakcoon is correct. They should fix it under warranty.
THe best way to do is, add: qemu.hw.mainkeys=0 in build.prop, reboot and done.
There is another way to do is: Disable the hardware/back keys through: /system/usr/keylayout/Generic.kl and add # in front of key 139 menu and key 158. Also add the same to key 254 APP_SWITCH
Hope this helps..
vdbhb59 said:
THe best way to do is, add: qemu.hw.mainkeys=0 in build.prop, reboot and done.
There is another way to do is: Disable the hardware/back keys through: /system/usr/keylayout/Generic.kl and add # in front of key 139 menu and key 158. Also add the same to key 254 APP_SWITCH
Hope this helps..
Click to expand...
Click to collapse
Thanks to the above listing, I was in the middle of factory resetting my Samsung S6 back to stock (but still rooted) and my physical keys (app switcher and back buttons) wasn't working. I had to go in build.prop and generic.kl and reset them back to default values (e.g., put 1 for the mainkeys value and remove # in front of 158 and 254). Now the physical keys are working.
I font know
hoang51 said:
Thanks to the above listing, I was in the middle of factory resetting my Samsung S6 back to stock (but still rooted) and my physical keys (app switcher and back buttons) wasn't working. I had to go in build.prop and generic.kl and reset them back to default values (e.g., put 1 for the mainkeys value and remove # in front of 158 and 254). Now the physical keys are working.
Click to expand...
Click to collapse
You are always welcome mate.
If you want to disable the recent button all you have to do is download all in on gesture. There you can disable any button.
i cant find any of these places where the text is used to block these buttons.. build.prop? system-usr??? what do these even mean