ReMapping the Keys of X8 - XPERIA X8 General

hey guys,
I found that in the /system/usr/keylayout/ these files are about the functions of our keys, I opened then by using Notepad++ and I can see the code, is it possible to change the keys by editing those code, and how to edit??
Or can someone edit them?
Coz i want to remap the camera key to start and end a call...
thx

I remapped my keys using app called "Button Remapper" but actually it worked only in cyanogen mod. I remapped my volume keys as call buttons.

i knew that already, but i mean coding the buttons without using that, coz some of the keys are hidden, instead of showing up and can be edited on the app!
Sent from my E15i using XDA App

Related

[SOLVED][REMAP DIAL BUTTON TO SEARCH BUTTON] Lack of search button

Hi.
I really miss the search button from the Desire device. I have tried to remap the send (dial) button to search by altering the bravo-keypad.kl file in /system/usr/keylayout. But the change didn't work. My altered keypad file is posted below, maybe someone can tell me why it's not working?
SOLUTION: Edit the right file. In my build the default qwerty.kl file was used not the bravo-keypad.kl. Adding SEARCH to key 231 and 61 turns the send key into a search key Even voice search by long press works
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 231 SEARCH
key 61 SEARCH
Sent from my HD2 running Android
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
mr_billionaire said:
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
Click to expand...
Click to collapse
Thanks for that tip, but unfortunately it does not work inside all applications.
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Yeah I need to map Multi Task manager to a hard key, can you help with that?
-------------------------------------
Sent via the XDA Tapatalk App
Cobra2 said:
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Click to expand...
Click to collapse
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Where are you entering this data to change these settings?
-------------------------------------
Sent via the XDA Tapatalk App
Try remapping a button to DPAD_CENTER and see if it works for the trackball in camcorder.
paalkr said:
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Cobra2 said:
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Click to expand...
Click to collapse
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
paalkr said:
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
Click to expand...
Click to collapse
Thanx big time mate for pointing me the right place, that is just what i needed for the handcent sms.
Sent from my HTC HD2 using XDA App
Mapping End Key
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Jwatt0918 said:
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Click to expand...
Click to collapse
theres an options in the settings menu to do this, i just cant find it. I used to have it set correctly, but changing roms every few days, you start to get confused. I would appreciate it if someone could point us in the right direction.
Thank you.
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
here is my qwerty.kl file. what did i do wrong?
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Didn't succeed either, I mounted system as read write and modified qwerty.kl, rebooted but nothing changed. I would like a lot too having the search button on the call key :-(
I am on Shubcraft build
DocteurN said:
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
Click to expand...
Click to collapse
I would like that too, but I haven't sorted that out.
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Could be that your build uses an other file then the qwerty.kl. Have you tried to edit the vendor specific file instead?
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
phrozendevil said:
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
Click to expand...
Click to collapse
phrozendevil is 100% correct it is the htcleo-keypad.kl file.
Now i just need help with chaning the volume buttons to the camera buttons.
I changed:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
To:
key 115 CAMERA WAKE
key 114 CAMERA WAKE
Upon press it starts the camera app, but will not take a photo. However when i switch to the camcorder function, that works just fine.
Ideas?
ps: i just use a widget to control my volume, which is very rare for me.

[Q] Annoying search button that i never use...

Is there any way to assign another function to the search button.
I haven't seen anyone change the search button...
This... http://forum.xda-developers.com/showthread.php?t=714670&page=2 ... thread has some info on reassigning the optical button. Might be a good place to start. Guessing that edits "qwerty.kl" might allow you to reassign the search too.
Hope this helps.
Thanks but i think that only works for physical keys. Please correct me if im wrong.
I found an app in the market, name I can't quite remember, search along lines of "button assign" I think. Had it on 2.1 to try n hack up a way to lock phone. So search the market, its there.
Sent from my Liberty using Tapatalk
That's a start. I'll give ten e-points to whoever finds me this app. Lol
Sent from my Liberty using XDA App
It's called Button Shortcut. The icon is a grey camera. It can't replace the search button but you can assign apps to open on long press.
Here's your points as promised. Im still searching for an answer
Sent from my Liberty using XDA App
stone_ship said:
It's called Button Shortcut. The icon is a grey camera. It can't replace the search button but you can assign apps to open on long press.
Click to expand...
Click to collapse
Yeah, that's the app I had found. Better than nothing.
Sent from my Liberty using Tapatalk
This... http://forum.xda-developers.com/showthread.php?t=695936 ...thread has even more info on edits to qwerty.kl (yeah, different name on the Hero).
Yeah so after an awesome two hours of learning adb stuff and searching for guides on the keys for the aria (that were never found) has thrown me at another brick wall. because the keys that perform the search function have been remapped to the camera function but still no change after reboot and all. Someone wanting optical sleep wake had said he or she had to change the key number also which confused me. why would you need another key number? how does that work the phone should only know one key to relate to the functions not a psuedo key or a hidden key. All i have changed in the qwerty.kl is keys 127 and 217 (which are the same digits just moved around maybe something maybe nothing...) from SEARCH to CAMERA. this is ridiculous.
I've found that "in-app wifi toggle" by oliver on the msrket allows wifi toggling by holding down the search button. I find that its useful enough to keep.
One feature i miss from win mo is the customization of hw buttons.
Sent from my HTC Liberty using XDA App
Tasker has an option that can reassign the function of long pressing the search button. You can make it launch an app, direct dial a contact, change wallpaper, turn on WiFi. You can even make it do a series of events, including all of those I mentioned.
Sent from my (liberated) HTC Liberty using XDA App
I use the "Quick Settings" app from the market. It utilizes the long press search button. It allows you toggle wifi, data, brightness, volume, bluetooth, etc, in app. Its handy if you wanna switch something on or off without exiting what you're currently doing.
weird.. i like the search button.
finds my contacts quick, or jumps to a google web search.
or jumps right to search when in twitter. to each his own.

Keyboard re-map

Is it possible to remap the physical keyboard on the Droid(milestone) 2?
For example remapping the arrow keys so that when i press the 'up' key on the physical keyboard an 'å' will appear in the highlighted widget.
Thanks.
I'd like to know that to!
I don't think it helps the physical keyboard but the soft keyboard can be re-mapped by a number of apps in the market. But if I find anything about physical keyboard remapping I'd like to change my qwerty to dvorak to try it out lol.
I am not sure how you get a different symbol, but this may help as you can change the order of the keys.
http://modmymobile.com/forums/554-m...switch-keyboard-layout-azerty-qwerty-etc.html
bmtbandit said:
I am not sure how you get a different symbol, but this may help as you can change the order of the keys.
http://modmymobile.com/forums/554-m...switch-keyboard-layout-azerty-qwerty-etc.html
Click to expand...
Click to collapse
I copied my key_code_map.txt to my sdcard and I'm going to see if I can change the values to change the physical key map.
Were you able to remap the keys you wanted?
I ask because I got a droid 2 yesterday and the del key did not work and a remap would be easier than trying to get the online reseller to replace it.
The Old One said:
Were you able to remap the keys you wanted?
I ask because I got a droid 2 yesterday and the del key did not work and a remap would be easier than trying to get the online reseller to replace it.
Click to expand...
Click to collapse
I didn't get it figured out it seems there are a few different places where the keyboard looks for mapping but I think I need a different file like an xml or something. each file I tried didn't change.
I to would like to know. Dvorak would be interesting
Sent from my DROID2 using Tapatalk
mcmillanje said:
I to would like to know. Dvorak would be interesting
Sent from my DROID2 using Tapatalk
Click to expand...
Click to collapse
They have dvorak and other styles for the on screen keyboard but not for the physical one.
Sent from my DROID2 using XDA App
Im pretty sure the keyboard mapping is part of the kernel which we have no way of changing. Just saying.

[Q] is it possible to switch key functions

Hello everyone.
Last time my touchscreen stopped working. I figured out that every time i use 'end call key' my touch screen is not responding.
Question : Is it possible to switch key fundions? I mean... for example i want to make 'home' key my 'end call key' and vice versa. And if it is possible then how i can do it?
Check out Button Savior. I don't know about remapping hardware keys but this can give you software controls to get around it. There are also a tonne of screen lock widgets that could work, and some ROMs even have it built into quick settings on the notification drawer or the softkeys on ICS+ ROMs.
Nigeldg said:
Check out Button Savior. I don't know about remapping hardware keys but this can give you software controls to get around it. There are also a tonne of screen lock widgets that could work, and some ROMs even have it built into quick settings on the notification drawer or the softkeys on ICS+ ROMs.
Click to expand...
Click to collapse
Wow o.o Amazing. Thanks!
rayto54 said:
Hello everyone.
Last time my touchscreen stopped working. I figured out that every time i use 'end call key' my touch screen is not responding.
Question : Is it possible to switch key fundions? I mean... for example i want to make 'home' key my 'end call key' and vice versa. And if it is possible then how i can do it?
Click to expand...
Click to collapse
There used to be an app called button remapper on the play store but I can't find it now!!
Well anyway you can change the button mappings by editing the kepad layout file in /system/usr/keylayout/ folder.
Their will be a few their so you will have to figure out which one to edit for your rom.
Mine is htcleo_keypad.kl.
You will need a root explorer to do this, just open with a text editor!
Make sure to write down the mappings before starting then you can swap them about.
I am not sure but I think the power button isn't changeble but you can assign power to another key.
Ah, I was wondering if I had just gone crazy because I thought I remembered an app by that name but I couldn't find it.
Sent from my Nexus 4 using xda app-developers app
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Kameirus said:
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Click to expand...
Click to collapse
Now that's what I would call co-operation...
Kameirus said:
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Click to expand...
Click to collapse
Ironically I didn't actually bother searching on XDA So much for telling people to search

Customizing the buttons?

If I install either CyanogenMod or a different launcher, is there a way that I could customize the capacitive buttons? Rather than the menu button, I'd like to replace it with an app switcher button and make it closer to stock in that respect.
If the answer is yes, can you also customize the light-up image that appears for the buttons? I assume no on that one.
If you have root you can re-map hardware keys on your phone. Should be easily learnable with the help of the almighty Google.
Sent from my MB886 using xda app-developers app
Interesting! Are the capacitive keys considered to be hardware keys? Obviously the home button is, but not sure on the menu or back button.

Categories

Resources