Hi there!
Could someone tell me how to remap soft touch buttons to get:
menu = recent apps
menu (hold) = menu
and how to remap them in general?
I tried to edit .kl files in keylayout folder like this:
key 139 APP_SWITCH
key 249 MENU
but soft keys stopped working.
I know codes are different for every device, so please do not redirect me to other devices' topics.
What I have to do?
Related
Hi all, I'm trying to change the default "LEFT SOFTKEY > *" combo to unlock my device. Something else than *, which is very hard to find and press on my QWERTY keyboard. Maybe "LEFT SOFTKEY > SEND" would be nice.
Can this be done? Any help will be great.
I don't want to use touchscreen to unlock device, and I can't use END(red button) long press because I've reassigned both softkeys to left /right arrow keys through AEBPlus.
So, I'm playing with my phone, it's rooted, I'm using the Button Remapper (http://forum.xda-developers.com/showthread.php?t=850464). I see "key 107 ENDCALL" ...
Okay, I feel like a real idiot, but is there an "end call" button somewhere on my phone?
Examining the .kl files in /system/usr/keylayout there's also "key 62 ENDCALL" which I'm guessing is the on-screen red button that shows up during a call. But key 107 is apparently a remappable button like Menu or Search. What is it? I've attached a text file that was originally pyramid-keypad.kl and holds apparently the hardware-ish keys.
Also, I've been looking around, but haven't found this; is there a definitive list somewhere of the key numbers and what they represent?
Thanks!
Maybe the "back" button is hooking off? Not sure, would like to know this aswell.
Ok I might sound like a noob here (which I am ) but I need to know the manufacturer of the screen and obtain drivers for it.
Why I need it?
We are trying to build a custom kernel and actually we got some success. But following are the bugs:
screen doesn't turn off after locking
camera doesn't work.. just a black screen
usb doen't work
touch sensitive buttons don't work except home button which now works as back button!
volume down button has now become volume up button.. and volume up button doesn't work...
What is the device name?
It is Karbonn A18/Neobox tuan 4.3 with MT6575 chipset and MT6620 combo chip.
--------
Can anyone please help? We are just two people working on this and looking for someone who can help us out.
Thanks in advance!
CHANGING HARD KEY FUNCTION (REMAPPING BUTTON)
Quote:
1. open /system/usr/keylayout/[phone model]-keypad.kl with notepad++
(Some phone may have different names, but it will always end with "keypad.kl)
it will look like this --
HERE YOU WILL FIND 3 ROWS...
Quote:
1. As you can see, there are different attributes assigned to each key. like this
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 115 VOLUME_UP
key 114 VOLUME_DOWN
2. Specific application/action launchers:
Code:
HOME #Launches "Home"
MENU #Launches "Menu"
BACK #Takes you back to the last activity
SEARCH #Launches "Universal Search"
CALL #Launches the "Phone" activity and corresponding .apk or initiates a call
ENDCALL #Ends a call
CAMERA #Launches "Camera" activity and corresponding .apk
FOCUS #Initiates Auto-Focus while using the Camera
VOLUME_UP #Self explanatory
VOLUME_DOWN #Self explanatory
3. And attributes saying if it should wake the phone at button push to complete the action, or if it should just complete the action without waking the screen.
Code:
WAKE #Completes the action without waking the screen
WAKE_DROPPED #Wakes the phone to complete the action
2. NOW WE WILL EDIT SECOND AND/OR THIRD ROW
Erase the center row value for any key to completely disable it. To reassign the key, replace the center row value with another one from the same row. Change the right row value to either "WAKE" or blank to enable the wake function. Do not modify the left row.
NOTE: don't edit left row i.e. first row which contains specific key identity number.
FOR EXAMPLE I DO THESE CHANGES
DEFAULT VALUES ---
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
CHANGED VALUES ---
Code:
key 115 CAMERA WAKE
key 114 FOCUS WAKE
NOW VOLUME UP KEY WILL WORK AS CAMERA KEY AND VOLUME DOWN KEY WILL WORK AS FOCUS KEY....
NOTE: all words should be in BOLD letters i.e. capital letters...
Hello,
My phone model is CCE SM70 in brazil, same as Karboon A18 and NEOBOX TUNA, i would like to know how you compiled the kernel for this device. You compiled the philips w732 from forum.china-iphone.ru with default kernel config for mt6575?
Thanks in advance,
Tiago
Hello I've installed Liberty S4 MAX Rom and is working perfectly only three dots menu is missing in this ROM. I want to remap long pres in recent apps button to show menu.
I've found this:
Edit usr/keylayout/cy8c-touchkey.kl
change the thrid line
from:
key 249 APP_SWITCH
to
key 249 MENU​But it is to replace recent apps with menu and I want than menu appears only with long press.
Any ideas? Thanks!
Hello,
First post I have rooted my Oneplus one yesterday, after that my MENU key and recent app (APP-SWITCH) has been set back to default
Long Press - APP-SWITCH & Short press - Menu
I wanted to interchange both keys Long press - MENU & Short press - APP-SWITCH
Then I followed http://forum.xda-developers.com/showthread.php?t=2733811 for switching keys
I have replaced
(key 139 MENU) with (key 580 APP-SWITCH)
Now my APP-SWITCH key is working but MENU is not working please help me sort it out as its my first root ever so noob with these.
If someone want to help you can get Generic.kl here- - > http://pasted.co/3a9b34ca
I think it's because key 580 is long press of MENU not long press of key 139. So whichever button you set to MENU, when you long press it, it will use key 580's value. In this case, your left button just turned to Recents (APP_SWITCH) key, not MENU key anymore, so when you long press it, key 580's value won't be used.
So i think changing left button short press to Recents (APP_SWITCH) key is as far as you can go, nothing more you can do about the long press without custom ROM or xposed. (Or does CyanogenOS have the Buttons section in the settings, i don't remember)