Related
[MOD] ( any ROM ) Hardware Key Mapping | Flashable zips & Requests ( GB & ICS )
Return to Contents Page - doubleshot Developers Reference
Keylayout files
NOTE: Make sure to get the proper keylayout for ICS or Gingerbread - they don't work for the wrong version.
This thread was put together after browsing the Virtuous thread where people were requesting different keylayouts.
A keylayout is something that is ROM-independent. You can flash it for any ROM, so why not concentrate specific layouts in one thread.
This way people can come here and download a flashable zip of the keylayout of their choice, if they flash a ROM and like it but miss their custom key setup.
Here's how i'd like it to work:
Developers:
-Post questions, answers, and flashable zips.
-Make sure your zips are keylayout files only, nothing else.
-Make sure the post you make with the zip download describes what keys are changed to what.
Users:
-Post questions or answers, and requests. Be patient until someone comes along who is willing to make it and has the time.
Feel free to make requests for custom keylayouts in this thread, i'm sure someone will come along who can help you and post it within a few days or so.
Take a look at This Thread to learn about modding the keylayout file.
Front Facing means the 4 hardware buttons at the bottom of the screen, or any other exterior keys ( Volume, Power, Camera )
Hardware keyboard covers the keys on the slide-out keyboard.
So go ahead, post your favorite keylayouts in falshable zip form for other people to play with, or request one you'd like if you can't find it in the choices below.
Please read the whole thread before making a request.
ICS Keylayouts:
Paitor said:
I have fixed two key setups for ICS. It was made for Pyr'o'Ice ICS Desensed 1.1.3 but will probably work on all using the new standard that ICS use. The symbol key didn't work in the ROM so I fixed that too. See these as beta but should work for daily use.
Click to expand...
Click to collapse
ICS_doubleshot_keylayout_dpad
From Post 38 of this thread:
Courtesy of Paitor
Front Facing:
Genius = Search
Hardware Keyboard:
Home = Left Arrow
Menu = Right Arrow
Back = Up Arrow
Genius = Down Arrow
ICS_doubleshot_keylayout_dpad_Paitor_signed.zip
Download Link
MD5: 4a20aa0713f6f2eaacc08cfe69cd3cf3
Size: 128.99 KB
ICS_doubleshot_keylayout_swedish
From Post 38 of this thread:
Courtesy of Paitor
HOME = LEFT ARROW
MENU = RIGHT ARROW
BACK = ö
BACK + SHIFT = Ö
BACK + ALT = ø
BACK + SHIFT + ALT = Ø
GENIUS = ä
GENIUS + SHIFT = Ä
GENIUS + ALT = æ
GENIUS + SHIFT + ALT = Æ
? = å
? + SHIFT = Å
? + ALT = ?
? + SHIFT + ALT = /
ICS_doubleshot_keylayout_swedish_Paitor_signed.zip
Download Link
MD5: a67add2022336dbe45b816925777e520
Size: 129 KB
Gingerbread Keylayouts:
Stock Keylayout:
-Simply the default keylayout file in a flashable zip. Use this to go back to stock.
Stock_Keylayout_signed.zip
Download Link
MD5: f19d69bcc7b38b1983e7b723c0f87b4b
Size: 125.19 KB
----
Stock Keylayout - Language:
To return to stock from an alternate language use:
Stock_Keylayout_Language_signed.zip
Download Link
MD5: fb1e27e682df988de6bf2725e078bb06
Size: 198.01 KB
----
Genius Fix:
Front Facing:
Genius = Search
Hardware Keyboard:
Genius = Search
Genius_Fix_Keylayout_signed.zip
Download Link
MD5: 3e2ff144af94432b297f58cf93cbedae
Size: 125.22 KB
----
Blue6IX Keylayout:
Front Facing:
Genius = Search
Hardware Keyboard:
Home = Up Arrow
Menu = Down Arrow
Back = Left Arrow
Genius = Right Arrow
Blue6IX_Keylayout_signed.zip
Download Link
MD5: 2bfbcc7888b960a22b82ae4921e36c30
Size: 125.27 KB
----
Swedish keylayout:
From Post 21 of this thread:
Courtesy of Paitor
HOME = LEFT ARROW
MENU = RIGHT ARROW
BACK = ö
BACK + SHIFT = Ö
BACK + ALT = ö
BACK + SHIFT + ALT = Ö
GENIUS = ä
GENIUS + SHIFT = Ä
GENIUS + ALT = ä
GENIUS + SHIFT + ALT = Ä
? = å
? + SHIFT = Å
? + ALT = ?
? + SHIFT + ALT = /
Swedish_Keylayout_Paitor_signed.zip
Download Link
MD5: 2284d5ce1af68535523fd28e201a235e
Size: 198.12 KB
----
Genius to Back:
As per user request Post 31:
Front-face Genius button re-mapped to BACK function - all other keys are stock.
Genius_to_Back_Keylayout_signed.zip
Download Link
MD5: d2d5011c32d400c6e2b8866dd1d75c0e
Size: 125.21 KB
Gingerbread keymappings from kernel source for development reference in post 45
Once again, good work blue. When I get home I'm gonna try figure out how to add shift + alt characters.
Very Nice addition to the cause.
Can anyone make a key map that enables users to place objects in the MineCraft mobile apk for the Xperia Play?
arcticwolf8 said:
Can anyone make a key map that enables users to place objects in the MineCraft mobile apk for the Xperia Play?
Click to expand...
Click to collapse
It's only the Doubleshot that blue was talking bout. LOL. Go to the xperia play thread and ask there.
Sent from my myTouch_4G_Slide using xda premium
I know, the game was made for the Xperia play and I want to play it on the MTS4G
Oh got ya.
Sent from my myTouch_4G_Slide using xda premium
ekoee said:
Once again, good work blue. When I get home I'm gonna try figure out how to add shift + alt characters.
Click to expand...
Click to collapse
Great. When I get my computer back I will also try to work on my version with scandinavian letters åäö on back, genius and questionmark button.
Thanks guys, glad you like.
I have a theory that the terminal app only printing a tilde on screen when you press an alt character can be patched by some swapping.
With the question mark character, if you swapped the function so that it was alt+press to get the question mark, and just press to get slash, would it print a slash in terminal?
Could be the workaround to deal with having to use the soft keyboard for terminal emulator.
To the two of you interested in alt characters and their functions, what do you think?
This time of life right now is not good for me, time-wise - too much going on out there for me to spend enough time in here, but i'll keep up as much as I can.
arcticwolf8 said:
Can anyone make a key map that enables users to place objects in the MineCraft mobile apk for the Xperia Play?
Click to expand...
Click to collapse
Sounds to me like you'd either need to:
-Get the .apk in question
-open it up, and change the button presses in the .apk to match something in our keylayout file.
or:
-get the .apk in question
-open it up and write down the button presses needed to use the app.
-Edit the doubleshot keylayout file to contain those button presses
(probably lose those hardware keys you remapped for anything else)
Sounds like an .apk edit, so you won't be able to get any updates for it in the future without having to go back into it and edit it again.
Way to start us off with a hard one - lol.
Is it a free app? If I get more then a few minutes to sit in development i'll take a look over the next few days if it is.
On droid/milestone we always edited the bin file in keychars with a hexeditor. This with keylayout was new to me.
ekoee said:
Once again, good work blue. When I get home I'm gonna try figure out how to add shift + alt characters.
Click to expand...
Click to collapse
Did you get home?
Just kidding but I would love to see your setup for shift + alt
Thanks Blue, but they just released a touchscreen version yesterday evening
Sent from my quad slot toaster running Undeadk9's Senseless ROM using XDA App
arcticwolf8 said:
Thanks Blue, but they just released a touchscreen version yesterday evening
Sent from my quad slot toaster running Undeadk9's Senseless ROM using XDA App
Click to expand...
Click to collapse
Im digging your sig.
Sent from my Undeadk9's Senseless ROM using xda premium
Undeadk9 said:
Im digging your sig.
Sent from my Undeadk9's Senseless ROM using xda premium
Click to expand...
Click to collapse
Danke, sir
Sent from my coffee maker running Undeadk9's Senseless ROM using XDA App
So does anybody know how we could create cut/copy/paste via ctrl+c etc for bluetooth keyboards?
Bec07 said:
So does anybody know how we could create cut/copy/paste via ctrl+c etc for bluetooth keyboards?
Click to expand...
Click to collapse
I don't have a bluetooth keyboard, so not too much I can do to help you with this yet.
I am organizing all of my notes and double-checking my findings for the modded kernel released as we speak - should have it posted within a few hours.
After that my next project is to work on bluetooth controllers and getting them working with our device. I am working with one other member here as we have the time to get this project out the door, so expect some info to come out this week.
While i'm at it, i'll tack this on to the project. I'll be able to afford a new accessory this paycheck, so if I can get someone to lend me a ps3 controller i'll pick up a bluetooth keyboard.
As this is only loosely related to keylayouts, as the OP i'll let this fly in this thread because it's gonna require some modifications to the keylayout file if it doesn't work natively.
Please post the brand and model number of your bluetooth keyboard so I can download the driver file and look through it - thanks.
Here it goes: carrefour CBK01 (OY661-1)
http://www.oyama-mobility.com/html/ProductView.asp?ID=109&SortID=133
If this is the keyboard you are using, it's darned hard to find an english manual or product support page.
Do you have any software/driver files that came with it, or a link to a product support page with a driver download? Send me a pm if you do and i'll get you my email so you can send me the software.
Without the physical device, I need some kind of software to comb through for a driver file or there isn't much I can do - don't worry though, it'll still be a few days until I can get to it if you need time to get that together.
Yup, pretty embaressed to admit but that's it. The awkward thing about it is that shift behaves normally with go keyboard and swiftkey but caps does't work. On all other keyboards caps works but not shift (this is on the galaxy tab 8.9)
On sgs2 shift works, caps doesn't...
I just used the app "button remapper" somewhere on the forums to re-map my keys. Have both Genius buttons to search for single press, and use button shortcut to long press to the actual genius app.
I made a custom version of Connectbot that works with the key mappings in the new official CM7. Thanks to mkasick for previous work.
*NOTE*
In order for the keys to work, you must set the 'Directory shortcuts' option in Settings to 'Use left-side keys'
Here are the changes from the Connectbot git tree:;
- Smiley emits grave accent ( ` )
- Sym is now ctrl. Pressing Sym twice emits escape.
- Shift is tab (unchanged)
- Fn once is forward slash ( / )
- Fn + LeftArrow = Home
- Fn + RightArrow = End
- Fn + UpArrow = PageUp
- Fn + DownArrow = PageDown
I've attached the modified .apk as well as a .diff
Please let me know if this works out for you CM7 users.
-TheDataMatrix
I love you.
dzl said:
I love you.
Click to expand...
Click to collapse
^^^ +1
10char
This is awesome. I made my own connectbot apk ages ago for the stock rom and just discovered that the keymappings were different in Cyanogen.
Only thing I notice is fn-N gives a backtick on my phone, instead of @, and I see no way to send an @. I'm using nightly-9 right now. It's been so long since I've built an apk it's going to take me a while to get set up again so I just thought I'd see if it was just me this was happening to.
epv said:
This is awesome. I made my own connectbot apk ages ago for the stock rom and just discovered that the keymappings were different in Cyanogen.
Only thing I notice is fn-N gives a backtick on my phone, instead of @, and I see no way to send an @. I'm using nightly-9 right now. It's been so long since I've built an apk it's going to take me a while to get set up again so I just thought I'd see if it was just me this was happening to.
Click to expand...
Click to collapse
I'm pretty sure the smiley face button on your epic keyboard is for the @ sign... not running cm7 right now but I'm pretty sure that's what its mapped to....
Sent from my SPH-D700 using Tapatalk
I wasn't sure how to thank posts on xda - but I figured it out.
Either way, thanks!
flastnoles11 said:
I'm pretty sure the smiley face button on your epic keyboard is for the @ sign... not running cm7 right now but I'm pretty sure that's what its mapped to....
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
it's not, that's the actual problem... anyway I mostly wanted to find out if it's something specific to my phone/install/whatever or not. Fwiw I get backtick for both smiley key and FN-N, and FN-smiley gives 0.
SYM works as control as expected, as do all the rest of the FN-letter combos as far as I can tell. Depending of course on what "directory shortcuts" is set to.
from looking at the patches, this one explicitly replaces "@" with "`" which seems to assume there's another way to get "@"... Maybe there is and I haven't figured it out yet.
The basic problem here is that either my particular phone or CM7 on the epic in general doesn't distinguish between Fn-N and the smiley key at the keymap level. I'd like to know if other people also have the problem with this version of connectbot where smiley and Fn-N both send "`" (backtick)
As a quick and gross hack, rather than figuring out the key layout stuff, i made a version that 1) doesn't replace "@" with "`" and 2) lets you generate "`" by typing [email protected] (ie, SYM-SMILEY)
(This is gross because "`" isn't a control character, but it's not the end of the world because [email protected] is traditionally the NULL char, and you can already send that with ctrl-space, so nothing's really lost. )
ps if you want this version for some reason, you're welcome to it, but it would be better if someone who knew what they were doing pointed me in the actual right direction.
Thanks for doing this, but not all key mappings are working for me. Shift is still Shift, not TAB, Fn '/' is not working either. I'm on CM7 nightly 11, using hard keyboard.
Also, if I get Shift working then how do I do a regular Shift?
thx
I edit /system/usr/keylayout/s3c-keypad.kl and alter it so key 42 and 43 are different.
key 42 DPAD_CENTER WAKE_DROPPED
key 43 TAB WAKE_DROPPED
Click to expand...
Click to collapse
This makes cm7 work fine with the latest epic connectbot, if I remember right.
Good idea... Is there a tool that lets you see the actual keycodes generated as you push buttons? that would be pretty helpful.
Thanks, hazridi! That works perfectly for me. Attached is my patched .kl file which you can just rename (to get rid of the .txt suffix this forum required for the upload) and drop into /system/usr/keylayout.
Currently when using my HTC One S, pretty much in every app there are 3 dots at the bottom. Luckily this has been fixed in HTC One X with a mod however the same mod does not exist with the One S.
Has anyone had any experience of trying to get rid of this rather irritating problem..
http://forum.xda-developers.com/showthread.php?t=1582506
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And how exactly do you propose to use the menus on ANY applications?
This is not a problem -- it's a necessity, since there's no capacitive menu button. Otherwise, you're SOL on changing settings and using TONS of apps.
May I suggest a remedy here -- unlock/root and install a new ROM. I'm on Black Dragon 4.0 and the guy remapped the menu function to the multitask button, and the multitask feature remapped to Hold-Home. As a result, the menu button no longer appears on the screen.
There's no specific mod for getting rid of it at this time. I'm assuming that the mod you're referring to must also remap the buttons like Black Dragon does. Bottomline - there's no non-rooting solution to do it.
flash virtuous ROM (sense version) find it in the development thread and in there is a link to rootzwiki which holds the sense version
it has the menu removed and buttons remmaped, So recent apps in now menu, Long press home is recent apps
boxrick said:
Currently when using my HTC One S, pretty much in every app there are 3 dots at the bottom. Luckily this has been fixed in HTC One X with a mod however the same mod does not exist with the One S.
Has anyone had any experience of trying to get rid of this rather irritating problem..
Click to expand...
Click to collapse
Some of the rom's for this phone fix this. You can change it yourself if your phones rooted.
You edit the cy8c-touchkey.kl file in /system/usr/keylayout. You need to change key 249 to Menu. Mine is like this now.
key 102 HOME VIRTUAL
key 139 APP_SWITCH VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
key 249 MENU VIRTUAL
key 250 HTC_SHARE VIRTUAL
Then add qemu.hw.mainkeys=1 to the build.prop file and reboot.
So now my buttons are
1. Back
2. Home
3. Menu
Another good thing is now you can install Swype.
dc211 said:
Some of the rom's for this phone fix this. You can change it yourself if your phones rooted.
You edit the cy8c-touchkey.kl file in /system/usr/keylayout. You need to change key 249 to Menu. Mine is like this now.
key 102 HOME VIRTUAL
key 139 APP_SWITCH VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
key 249 MENU VIRTUAL
key 250 HTC_SHARE VIRTUAL
Then add qemu.hw.mainkeys=1 to the build.prop file and reboot.
So now my buttons are
1. Back
2. Home
3. Menu
Another good thing is now you can install Swype.
Click to expand...
Click to collapse
will this also set the home long press to the multitasking menu?
Bricolo_fr said:
will this also set the home long press to the multitasking menu?
Click to expand...
Click to collapse
Sorry it doesn't. I couldn't figure that out quickly and moved on to something else. Untouchab1e who made UTB ROM has it working that way though. You might try asking him.
When developers add full support for ICS in their apps, this menu will disappear. All sense apps and the apps that came with the device has the menu button on top, but many other has not transition to this design yet. I have two other apps that follow the new design and it is "prisjakt" (swedish) and Spotify beta. I hope others will follow this new design as well. But until then I think you will need button remapping to get rid of it at the bottom of the screen.
virtq said:
When developers add full support for ICS in their apps, this menu will disappear. All sense apps and the apps that came with the device has the menu button on top, but many other has not transition to this design yet. I have two other apps that follow the new design and it is "prisjakt" (swedish) and Spotify beta. I hope others will follow this new design as well. But until then I think you will need button remapping to get rid of it at the bottom of the screen.
Click to expand...
Click to collapse
Yeah man, it's just like he said. You're just gonna have to wait until the developers update their apps. It will be changed eventually.
funny thing is the youtube app has also this menu bar at the bottom, plus the ICS menu thingie in the top bar...very annoying actually.
In the primo rom the HTC guys just changed the tabs button to menu when long pressing it, I hope HTC will deliver an update that achieves this also for our One S rom.
nevara said:
funny thing is the youtube app has also this menu bar at the bottom, plus the ICS menu thingie in the top bar...very annoying actually.
Click to expand...
Click to collapse
This. Some apps render the menu bar regardless of having an action bar with overflow, Youtube and Google Reader are prime examples. Interestingly enough, on a friend's GNexus they don't render the menu button in the softkey bar, so it probably has something to do with HTC's implementation of the legacy feature.
dc211 said:
Some of the rom's for this phone fix this. You can change it yourself if your phones rooted.
You edit the cy8c-touchkey.kl file in /system/usr/keylayout. You need to change key 249 to Menu. Mine is like this now.
key 102 HOME VIRTUAL
key 139 APP_SWITCH VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
key 249 MENU VIRTUAL
key 250 HTC_SHARE VIRTUAL
Then add qemu.hw.mainkeys=1 to the build.prop file and reboot.
So now my buttons are
1. Back
2. Home
3. Menu
Another good thing is now you can install Swype.
Click to expand...
Click to collapse
I thanked you already but thank you soo much!!! I have been searching and asking around and it seems no one either knew or felt like like replying..appreciate it!
dc211 said:
Some of the rom's for this phone fix this. You can change it yourself if your phones rooted.
You edit the cy8c-touchkey.kl file in /system/usr/keylayout. You need to change key 249 to Menu. Mine is like this now.
key 102 HOME VIRTUAL
key 139 APP_SWITCH VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
key 249 MENU VIRTUAL
key 250 HTC_SHARE VIRTUAL
Then add qemu.hw.mainkeys=1 to the build.prop file and reboot.
So now my buttons are
1. Back
2. Home
3. Menu
Another good thing is now you can install Swype.
Click to expand...
Click to collapse
I did this mod and it works but the three dot menu is still there on the bottom of apps
Sent from a guy living in a van down by the river
What apps because all my problems have been solved...
jriv said:
I did this mod and it works but the three dot menu is still there on the bottom of apps
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
If the menu is still there then you missed a step. You need to add qemu.hw.mainkeys=1 to the build.prop file in /system
I personally added it to near the bottom in the section that says ADDITIONAL_BUILD_PROPERTIES.
Worked like a charm. Now, just need to figure out how to map:
Recent Apps > Long-press Home
Show/Hide Keyboard > Long-press settings (recent app softkey)
Force-Close App > Long-press back
dc211 said:
If the menu is still there then you missed a step. You need to add qemu.hw.mainkeys=1 to the build.prop file in /system
I personally added it to near the bottom in the section that says ADDITIONAL_BUILD_PROPERTIES.
Click to expand...
Click to collapse
Ahhh I put qemu.ha.mainkeys=1 damn typo
Sent from a guy living in a van down by the river
jriv said:
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
Lol. Love the sig. Off topic, but one of my favorite Chris Farley skits.
Sent from my SGH-T959 using Tapatalk 2 and not down by the river.
murse said:
Lol. Love the sig. Off topic, but one of my favorite Chris Farley skits.
Sent from my SGH-T959 using Tapatalk 2 and not down by the river.
Click to expand...
Click to collapse
Yes it I'd my favorite farley skit
Sent from a guy living in a van down by the river
I think that long press it's another or something.
These are keycodes, maybe the longpress has been mapped to a different keycode.
The button remapping has worked for me! (Stock rooted Htc one S S3 version)
Thx buddy!
Go into settings
Display, gestures and buttons
Recent apps button
From here you can choose to either long press for menu or long press for recent apps
Hey there, i was wondering if anyone know's how to remap the Search (Or pretty much any) key on the TF Dock to open recent apps?
PhyscoAssassinx said:
Hey there, i was wondering if anyone know's how to remap the Search (Or pretty much any) key on the TF Dock to open recent apps?
Click to expand...
Click to collapse
+1 on this!
Hold down ALT then hit TAB, wait 1 second then release ALT key. If you keep hold down ALT you will see all the apps, if you release too fast it will open up google now. I don't think you could remap the search key.
buhohitr said:
Hold down ALT then hit TAB, wait 1 second then release ALT key. If you keep hold down ALT you will see all the apps, if you release too fast it will open up google now. I don't think you could remap the search key.
Click to expand...
Click to collapse
remapping the search key should be as easy as the "browser fix" done in ICS. Essentially map that key, redirect to a new application, and done! Of course its a little more involved than that but it should be possible. Maybe ask one of the devs who did the browser button map hack see if they can help you
pileot said:
remapping the search key should be as easy as the "browser fix" done in ICS. Essentially map that key, redirect to a new application, and done! Of course its a little more involved than that but it should be possible. Maybe ask one of the devs who did the browser button map hack see if they can help you
Click to expand...
Click to collapse
That exactly what I meant, you need dev's works. On my droid charge I could edit my keyboard file to map key almost anyway I like. If we figure out the parameter (word) for the search key, it should work. The file to edit should be in /system/usr/keyboardlayout/file.kl
Hi gents,
I haven't found this is the forums, so here goes: if you want to map the Walkman key on Xperia E1 to something else, you need to edit /system/usr/keylayout/gpio-keys.kl, replace the line saying
Code:
key 391 MP3 WAKE_DROPPED
with whatever you fancy; I used
Code:
key 391 MEDIA_PLAY_PAUSE WAKE
in order to use it as a play/pause button for my player app (I debloated my ROM).
You'll obviously need root for that; personally, I used Total Commander's editor to do the mod.
Btw, this is how it works on Xperia E1 Dual D2105 with firmware 20.1.B.2.15 (Android 4.4.2); no ideea whether it's the same on different firmwares / models, but it's worth giving it a go.
It took me a while to figure this, so I thought I'd post it for everyone who wanted to do the same.
Cheers,
Mircea
mumble app
kewl .
comes in handy as push-to-talk-key in mumble / plumble VOIP app
you may want to change ure post topic " reassign the the walkman hw button" for clarity - attract more users !
mionica said:
Hi gents,
I haven't found this is the forums, so here goes: if you want to map the Walkman key on Xperia E1 to something else, you need to edit /system/usr/keylayout/gpio-keys.kl, replace the line saying
Code:
key 391 MP3 WAKE_DROPPED
with whatever you fancy; I used
Code:
key 391 MEDIA_PLAY_PAUSE WAKE
in order to use it as a play/pause button for my player app (I debloated my ROM).
You'll obviously need root for that; personally, I used Total Commander's editor to do the mod.
Btw, this is how it works on Xperia E1 Dual D2105 with firmware 20.1.B.2.15 (Android 4.4.2); no ideea whether it's the same on different firmwares / models, but it's worth giving it a go.
It took me a while to figure this, so I thought I'd post it for everyone who wanted to do the same.
Cheers,
Mircea
Click to expand...
Click to collapse
how can I use this button to open another application? or make it work like a second lock screen button??
(I accidentally push this button often at work.....very annoying)
t-driver said:
how can I use this button to open another application? or make it work like a second lock screen button??
(I accidentally push this button often at work.....very annoying)
Click to expand...
Click to collapse
I've no idea how to open an application, but it's easy to disable altogether - simply comment that line (put a # at the beginning).
Or, if that doesn't work, set it to whatever (VENDOR_1, for instance, which I think doesn't do anything on E1's - or BUTTON_4, or whatever). Or you could try something like "POWER WAKE_DROPPED", which should put the phone in standby, but not take it out of standby, as "POWER WAKE" would.