Walkman Key-Multiple Functions - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

well, i have been playing around with the walkman key sinca i use cm9 and the MEDIA_PLAY_PAUSE thing was irritating
so i searched everywhere and here it is
change this line in /system/usr/keylayout/pm8058-keypad.kl
Code:
# WALKMAN key
key 200 VENDOR_1
search function: (source)
Code:
# WALKMAN key
key 200 SEARCH
music app: (opens apollo in cm9)
Code:
# WALKMAN key
key 200 MUSIC
Recent Apps(i use this one and find it very useful)
Code:
# WALKMAN key
key 200 APP_SWITCH
Play/pause media
Code:
# WALKMAN key
key 200 MEDIA_PLAY_PAUSE
Now Reboot, and it should take effect.
anything else then mention in comments, i'll add it.

i tried the app switch thing but it didnt work...
using cm7.2... :crying:
edit:
i tried reeboting and now it works....
thanks...

bilal.fanatic said:
i tried the app switch thing but it didnt work...
using cm7.2... :crying:
Click to expand...
Click to collapse
i have tried in cm9, cannot say about cm7
edit:you have to reboot after editing the file or it won't take effect

How about long-press for walkman key?

make it to launch an app?
How to make it to launch an app like PowerAmp?
In CM 7 we can edit like this
Code:
# WALKMAN key
key 200 SEARCH
and then some tweaking in CyanogenMod setting made in possible and really liked it! :good:
But can't do the same in CM 9, cause cant find the 'Search Key Behavior' setting.
Is there a way? Also, is it possible to minimize the app when pressed again just like in Stock OS?

So I suppose it should work on other ROMS too, is that right?

to open apps with walkman button
gandhar said:
well, i have been playing around with the walkman key sinca i use cm9 and the MEDIA_PLAY_PAUSE thing was irritating
so i searched everywhere and here it is
change this line in /system/usr/keylayout/pm8058-keypad.kl
.
.
music app: (opens apollo in cm9)
Code:
# WALKMAN key
key 200 MUSIC
.
.
Now Reboot, and it should take effect.
anything else then mention in comments, i'll add it.
Click to expand...
Click to collapse
I tried this, hoping I can make whatever app (infact, my fav music app) to open by pressing walkman button....
Code:
# WALKMAN key
key 200 PLAYERPRO
and it actually works, the PLAYERPRO app is not open to foreground, but starts playing music. It's icon is seen in the notification bar.
Unfortunately the HOME button stopped working :crying:
Here, any app (that we introduce) thats in /system/app folder will open, but renders the HOME button useless, why is that so?
> WT19i on CM 9

blazzer12 said:
I tried this, hoping I can make whatever app (infact, my fav music app) to open by pressing walkman button....
Code:
# WALKMAN key
key 200 PLAYERPRO
and it actually works, the PLAYERPRO app is not open to foreground, but starts playing music. It's icon is seen in the notification bar.
Unfortunately the HOME button stopped working :crying:
Here, any app (that we introduce) thats in /system/app folder will open, but renders the HOME button useless, why is that so?
> WT19i on CM 9
Click to expand...
Click to collapse
You might have broken your .kl file. If so, your phone will refer to Generic.kl instead, where key 200 is assigned to function MEDIA_PLAY_PAUSE (also known as the headset button). This was the case for me, and I had to reflash the stock ROM after making the s̶t̶u̶p̶i̶d mistake of editing (and thereby breaking) Generic.kl as well.
To minimize the risk of breaking it (you will never be 100% safe when modifying system files), export it via ADB and edit in Notepad++ or PSPad before importing it back to your phone.

How to use Walkman button as Recent APPs & small apps launcher ,just like long press HOME button ?

Sou1forged said:
You might have broken your .kl file. If so, your phone will refer to Generic.kl instead, where key 200 is assigned to function MEDIA_PLAY_PAUSE (also known as the headset button). This was the case for me, and I had to reflash the stock ROM after making the s̶t̶u̶p̶i̶d mistake of editing (and thereby breaking) Generic.kl as well.
To minimize the risk of breaking it (you will never be 100% safe when modifying system files), export it via ADB and edit in Notepad++ or PSPad before importing it back to your phone.
Click to expand...
Click to collapse
ThanQ for explanation.

lywu2000 said:
How to use Walkman button as Recent APPs & small apps launcher ,just like long press HOME button ?
Click to expand...
Click to collapse
gandhar said:
Recent Apps(i use this one and find it very useful)
Code:
# WALKMAN key
key 200 APP_SWITCH
.
Click to expand...
Click to collapse
Guess you have found out how to do it by now, but just in case ;P

Hope This Will Help
blazzer12 said:
I tried this, hoping I can make whatever app (infact, my fav music app) to open by pressing walkman button....
Code:
# WALKMAN key
key 200 PLAYERPRO
and it actually works, the PLAYERPRO app is not open to foreground, but starts playing music. It's icon is seen in the notification bar.
Unfortunately the HOME button stopped working :crying:
Here, any app (that we introduce) thats in /system/app folder will open, but renders the HOME button useless, why is that so?
> WT19i on CM 9
Click to expand...
Click to collapse
I also got the same idea and the same problem after I install cm9.1. My original mod:
#WALKMAN key
key 200 PLAYERPRO MEDIA_PLAY_PAUSE
and reboot. Then I realize the error it cause and I change the line back to:
#WALKMAN key
key 200 MEDIA_PLAY_PAUSE
and reboot. The home button work normally and the walkman button can play/pause PlayerPro when pressed even when sleep. Hope this helps

Related

[Q] Possible to change what happens when i press the camera button?

I never use the camera button on my streak so I want to change it so it would be useful to me (maybe locking auto rotate or assigning a task killer program to it for instant memory). Any have any ideas on how to do this and/or do you want to change the action of your camera button?
You can use buttonremapper to reassign the camera key (but it will no longer be a camera key, even if you are using the camera app or something like vignette). You need root for this- I have it as media pause/play
http://forum.xda-developers.com/showthread.php?t=850464
you can use 2 apps to make use of both the keys
1. Button remapper
2. then launch key
I use 'tasker' , it have camera button clicked event .
zoftdev said:
I use 'tasker' , it have camera button clicked event .
Click to expand...
Click to collapse
wow dint know that .
Thanks
EDIT : can u post the mod that you did

buttons being pressed in my pocket

Hey guys, is there a way to put the screen to only turn on with the power button?? because in my pocket, the other buttons are pressed, so it's using battery and sometimes stop the music i'm listening. The other buttons that i'm speaking are: Search, return, home and menu. I'm using mik's v6.5.8 with fserve's goldenleaf.
I guess u can! Go to cm setting --lockscreen-- unlock options nd edit as u want ...;-) don't for to press thanks
Sent from my LG-P500 using xda premium
Already asked
Read here.
I'll upload the files, simply put them in /system/usr/keylayout/ (Overwrite existing) and set permissions to 777.
you've made it lanis! thanks, you've helped me a lot =D
now, not to detract from this threads original purpose... but it seems as if the OP got his answer, but while we are on the subject of keys and their functions.
Can we make the search button a pause / play button? with CM7 vol up and down are volume and skip buttons, but there is no physical button for pause play, it would be really nice to have that.
Nice wish they had a thanks button on this app that works great I have been meaning to do this for a while
Sent from my LG-P500 using XDA Premium App running CM7 over clocked at 806
Simply edit the 2 files I've uploaded (You can even edit the original ones) and replace each key's function with the function you want. (Ex. key 222 MENU)
Ianis G. Vasilev said:
Simply edit the 2 files I've uploaded (You can even edit the original ones) and replace each key's function with the function you want. (Ex. key 222 MENU)
Click to expand...
Click to collapse
ya i figured that out with a lil bit of googling. So i now have the search for pause n play with out waking hte phone.
But i would like it to act like the vol up and down buttons in CM7. where they have to be long pressed to skip... id like to have to long press to pause and play on the search, and ONLY when the screen is off / phone is locked like the vol up and down buttons.
dang it would be so awesome to have long press like described above.... if anyone could point me to the vol up and down rocker script that does their long presses i could go from there.

Headset Button Controller with Galaxy S3?

I want to be able to use the headset + and - buttons as track forward/back controls rather than volume (i.e. how my previous HTC phone worked). I've installed the trial version of Headset Button Controller, but although it seems to work fine for the play/pause button, the + and - buttons always cause the onscreen volume function to activate.
Any ideas? Is this app compatible with my S3, and if not could you suggest another app which works to reconfigure the +/- buttons? Is there maybe a discussion thread for this app here, as I can't find one? Thanks.
Andre
If you're rooted, Tweakbox (needs Xposed) will let you do what you're asking for when the headset buttons are held down (this also extends to the volume buttons on the phone proper) but only if the phone is locked and its screen off. The headset play/pause button works without any external application needed, at least for the stock music player. I've been using Tweakbox for a while on my GSIII with no problems (just don't choose to install the libraries in Xposed - they're older versions).
Thanks, but a bit convoluted and limited to screen-lock time - plus I'd prefer to keep the on-phone volume keys working as normal volume keys. Still, it's worth considering if there are no other ideas. (The phone is rooted though; I did that almost as soon as it came out of the box)
Andre
andrewilley said:
limited to screen-lock time
Click to expand...
Click to collapse
If you happen to have the SDK installed, you can change that: https://github.com/rovo89/XposedMod...ed/mods/tweakbox/VolumeKeysSkipTrack.java#L26
plus I'd prefer to keep the on-phone volume keys working as normal volume keys
Click to expand...
Click to collapse
Ah, fair enough, but since it only comes into play if the buttons are held down I'm perfectly fine with it.
Best regards
I'd really like to get Headset Button Controller (or similar) working to be honest.
I currently (on my HTC) use single-clicks on the headset's +/- buttons for next/previous track, and double-clicks for next/previous album folder, and I'd also like to have long-pressing for fast-forward and fast-rewind if possible. Plus keeping the on-phone volume keys for normal volume control.
Andre
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
I changed the values in the Generic.kl file and it worked.
I decided to change the values back and give Headset Button Controller a try. It didn't work. I tried uninstalling it and now no controls on the headset works.
I read that JAYS Headset Control was a good alternative. That also doesn't work. Seems that I killed all the headset control functions.
How can I get the controls to come back?
I changed settings back and forth a few times with the .kl files, and as long as I rebooted between changes it worked fine.
Also, Headset Button Controller worked fine to re-assign the functionality of those new headset >> and << buttons, but only after I'd first activated them using the .kl file edits of course.
Does copying your original backup Generic.kl file back into place not get you back to your original stock settings? If not, do you have a nandroid backup you can roll back to?
Andre
Thanks for the reply.
I don't think I have a nandroid backup. I did copy the old backup file of Generic.kl file back and still hasnt given me back the old functions.
What do you suggest? Go back to the old original file or do I edit to what what you have done?
Well if you go back to the original file and reboot (and that was the only file you touched) then it should go back to the stock settings.
Andre
qwerty12 said:
If you're rooted, Tweakbox (needs Xposed) will let you do what you're asking for when the headset buttons are held down (this also extends to the volume buttons on the phone proper) but only if the phone is locked and its screen off. The headset play/pause button works without any external application needed, at least for the stock music player. I've been using Tweakbox for a while on my GSIII with no problems (just don't choose to install the libraries in Xposed - they're older versions).
Click to expand...
Click to collapse
Thanks heaps for this post. Pretty much got rid of any need for me to flash a custom ROM.
andrewilley said:
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
Click to expand...
Click to collapse
Edit: Sorry I thought I was in the att section. You can use the zips to place your file in if you like.
Works great. Here are recovery zips to make it easier. Taken from ATT S3 on LG1.
Download: http://d-h.st/asK
MD5: aa8334da5d76d8e0a0dd26eafac269c6
Uninstaller Download (reverts back to stock): http://d-h.st/2DC
MD5: c2bd8ccbe81c230ef97997267b600d0c
Glad it works. I didn't put up zips of the files that I found, just in case the contents vary by carrier. It seemed such an easy text edit, which carries less risk, so I thought I'd give the method rather than an upload. But feel free to try either.
Andre
andrewilley said:
Update to this...
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input/key-layout-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
Andre
Click to expand...
Click to collapse
What would I need to change to keep the Volume buttons as they are but change the Pause button to skip/next track?
Spartoi said:
What would I need to change to keep the Volume buttons as they are but change the Pause button to skip/next track?
Click to expand...
Click to collapse
Not tried it, but I guess you'd need to use the values from the line that controls the middle button:
key 226 HEADSETHOOK WAKE
And swap with the media-next codes from:
key 163 MEDIA_NEXT WAKE
Keep a backup of the original file before you start though, which you can revert to if things go wrong. And see http://source.android.com/tech/input/key-layout-files.html for more details.
Andre
Is there a way to set the headset button to launch S voice when you are holding it?
XblackdemonX said:
Is there a way to set the headset button to launch S voice when you are holding it?
Click to expand...
Click to collapse
I'd suggest using an app, like Headset Button Controller.
Andre
i'll check it out, thanks!
XblackdemonX said:
i'll check it out, thanks!
Click to expand...
Click to collapse
Try Nocs app it's free
Thank you so much for this, this solved all my problems!
One thing I had to after I made the change was to un-install and re-install the headset button controller app. (As I wanted to use it also!)

Remap Hardware Buttons?

So I want to remap the hardware buttons, but ran into some issues:
google searches say to edit the /system/usr/keylayout/sec_touchkey.kl (for previous galaxy devices), but this file is mysteriously absent on my stock rooted s4.
I tried other files in this /system/usr/keylayout/ folder; atmel_mxt_ts.kl seemed promising in its content:
Code:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
Changing these, however, did nothing.
Am I searching in the right place, just in the wrong files? Is there a file chmod permission I might be missing?
I think there was also a jar file (android.policy.jar?) I'd have to decompile if I wanted to change the long-press actions for these buttons?
Can I override the double-press home button to do something different than s-voice? (I know I can disable the app itself)
Thanks!
disable the button
Mix3d said:
So I want to remap the hardware buttons, but ran intofiles into some issues:
google searches say to edit the /system/usr/keylayout/sec_touchkey.kl (for previous galaxy devices), but this file is mysteriously absent on my stock rooted s4.
I tried other files in this /system/usr/keylayout/ folder; atmel_mxt_ts.kl seemed promising in its content:
Code:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
Changing these, however, did nothing.
Am I searching in the right place, just in the wrong files? Is there a file chmod permission I might be missing?
I think there was also a jar file (android.policy.jar?) I'd have to decompile if I wanted to change the long-press actions for these buttons?
Can I override the double-press home button to do something different than s-voice? (I know I can disable the app itself)
Thanks!
Click to expand...
Click to collapse
I was also looking all over for this. Did what you did and also other. kl in the system usr no change also . Using 3minit mod. Wanted to disable the hardware button as having the navigation bar and therefore now having two back button.
Anyone here with any idea to share?
kelvinator said:
I was also looking all over for this. Did what you did and also other. kl in the system usr no change also . Using 3minit mod. Wanted to disable the hardware button as having the navigation bar and therefore now having two back button.
Anyone here with any idea to share?
Click to expand...
Click to collapse
i dont have an S4 at the moment and i cant remember the exact file name but its under system/usr/keylayout looking through a rom file i think its gpio-keys.kl just mount the folder as read/write then comment out the lines you dont want using # then reboot
what did you do to enable the navbar when i had i was using an S4 last week the only way i could get it working was with an AOSP rom which meant no samsung camera or IR
*edit i should add that this was on the verizon S4
success disable hardware back button
I finally managed to disable the button. Its in system/usr/generic.kl . Place# infront of key 159 back and reboot. Done.
Got navigation bar using 3minit setting and mod.
If it works for you hitting the Thanks button will help. Cheers
---------- Post added at 05:28 AM ---------- Previous post was at 05:25 AM ----------
Correction. In system/usr/keylayout/generic.kl.
I am on omega v6.0 with 3minit mod.
kelvinator said:
I finally managed to disable the button. Its in system/usr/generic.kl . Place# infront of key 159 back and reboot. Done.
Got navigation bar using 3minit setting and mod.
If it works for you hitting the Thanks button will help. Cheers
---------- Post added at 05:28 AM ---------- Previous post was at 05:25 AM ----------
Correction. In system/usr/keylayout/generic.kl.
I am on omega v6.0 with 3minit mod.
Click to expand...
Click to collapse
Good to know, but my use case is a little different... I'm hoping to swap/ change the soft keys, not disable.
But if generic.kl worked for you, that's a good place for me to start. Will play around and post back if I can swap the menu/back button, hopefully the long press options as well. Ideally I want to move a lot of things around, (long press home for gnow, back to recent, long for menu, menu to back) but we'll see.
I'm on stock rooted, which is why I still need functionality
based on how I see it. I think it could be done
I will try it out if I could swap the menu and home like how you wanted. But you definitely need to be rooted first to edit the files
tried it changing key 139 MENU with BACK. saved reboot with success. Menu function swap to back function.
rem you got to be rooted for this to work. ..
kelvinator said:
I will try it out if I could swap the menu and home like how you wanted. But you definitely need to be rooted first to edit the files
tried it changing key 139 MENU with BACK. saved reboot with success. Menu function swap to back function.
rem you got to be rooted for this to work. ..
Click to expand...
Click to collapse
Is a long press registered as a different key for mapping purposed?
Like menu button is 001 but long press menu is 002?
Ultimately I'd like to be able to make a long press on the home button turn the screen off. That's my end goal with that question.
Mix3d said:
Good to know, but my use case is a little different... I'm hoping to swap/ change the soft keys, not disable.
But if generic.kl worked for you, that's a good place for me to start. Will play around and post back if I can swap the menu/back button, hopefully the long press options as well. Ideally I want to move a lot of things around, (long press home for gnow, back to recent, long for menu, menu to back) but we'll see.
I'm on stock rooted, which is why I still need functionality
Click to expand...
Click to collapse
In the generic.kl file, just change the labels to what you want. For instnace, where it says 117 VOLUME_UP WAKE (thats just an example) remove the volume_up and put MENU or BACK or whatever you want there.
Skipjacks said:
Is a long press registered as a different key for mapping purposed?
Like menu button is 001 but long press menu is 002?
Ultimately I'd like to be able to make a long press on the home button turn the screen off. That's my end goal with that question.
Click to expand...
Click to collapse
The system interupts the key down press, it then launches a post delayed runnable when you press down, if the key is pressed down for the length of that post delayed, then essentially "long press" has been executed. The runnable then consumes the the original key press to prevent the key from executing.
elesbb said:
In the generic.kl file, just change the labels to what you want. For instnace, where it says 117 VOLUME_UP WAKE (thats just an example) remove the volume_up and put MENU or BACK or whatever you want there.
The system interupts the volume down press, it then launches a post delayed runnable when you press down, if the key is pressed down for the length of that post delayed, then essentially "long press" has been executed. The runnable then consumes the the original key press to prevent the key from executing.
Click to expand...
Click to collapse
Right, so then how do we override the long press?
Mix3d said:
Right, so then how do we override the long press?
Click to expand...
Click to collapse
If you are trying to do it via the system. Meaning overriding system button presses, then you will have to edit the smali code. I believe the method is interceptKeyBeforeQueing or something like that.
where the hell is the 'soft' back button on this phone? so annoying i can't find it! or do i need to use a 3rd party launcher and rid of that stock touchwiz crap...phone is not rooted
cobyman7035 said:
where the hell is the 'soft' back button on this phone? so annoying i can't find it! or do i need to use a 3rd party launcher and rid of that stock touchwiz crap...phone is not rooted
Click to expand...
Click to collapse
You are in the wrong place, bud. Please ask questions like this in the q and a forum. This is a development forum for development related discussion.
And do try to be a tad calmer when posting. There are tons of people who will be happy to help. But the aggressive tone of your post will prevent many people from wanting to assist.
Also...really? Its the arrow to the right of the home button on the bottom right of the phone.
Sent from your phone. You should be careful where you leave that thing.
Found this at the AOSP Site:
http://source.android.com/tech/input/key-layout-files.html
Key layout files are located by USB vendor, product (and optionally version) id or by input device name.
The following paths are consulted in order.
Code:
/system/usr/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl
/system/usr/keylayout/Vendor_XXXX_Product_XXXX.kl
/system/usr/keylayout/DEVICE_NAME.kl
/data/system/devices/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl
/data/system/devices/keylayout/Vendor_XXXX_Product_XXXX.kl
/data/system/devices/keylayout/DEVICE_NAME.kl
/system/usr/keylayout/Generic.kl
/data/system/devices/keylayout/Generic.kl
Click to expand...
Click to collapse
Another potentially useful resource is this list of keycodes:
http://source.android.com/tech/input/keyboard-devices.html
I haven't had time to play much with this stuff yet, but I DID try the KeynrTracker.apk listed here, however it does not seem to register any of the long presses, leaving us only with menubutton as 139 and back as 158. It could have something to do with the way this app is designed, or in the way Samsung is firing these button presses.
More to come.
Mix3d said:
Found this at the AOSP Site:
http://source.android.com/tech/input/key-layout-files.html
Another potentially useful resource is this list of keycodes:
http://source.android.com/tech/input/keyboard-devices.html
I haven't had time to play much with this stuff yet, but I DID try the KeynrTracker.apk listed here, however it does not seem to register any of the long presses, leaving us only with menubutton as 139 and back as 158. It could have something to do with the way this app is designed, or in the way Samsung is firing these button presses.
More to come.
Click to expand...
Click to collapse
I already explained how long presses work
Sent from my SGH-M919 using Tapatalk 2
elesbb said:
I already explained how long presses work
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
"Edit the smali code" doesn't really count... what file to decompile? Which lines?
I'm completely new to this level of android modifications
Can this be used to make "Menu" button work as recents and "Menu hold" as menu?
jastonas said:
Can this be used to make "Menu" button work as recents and "Menu hold" as menu?
Click to expand...
Click to collapse
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
3473 said:
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
Click to expand...
Click to collapse
Then how do you use the menu of so many apps that don't have the 3 dots?
3473 said:
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
Click to expand...
Click to collapse
decompiling WHICH file? throw me a bone, dude!
Mix3d said:
decompiling WHICH file? throw me a bone, dude!
Click to expand...
Click to collapse
That's what Google is for! We all started there!! I'll give you a hunt it lies within system/framework directory and starts with an a ^-^
Sent from my SGH-M919 using Tapatalk 2

[TWEAK] [WT19i] Changing Walkman button function using Dream Keys for noob

There are several ways to change your function of Walkman button on the top of Live With Walkman...
I will guide you to change it into your desire function in easy way even you are a noob...
The things you must have are:
1. Rooted WT19i phone
2. Root explorer
3. Dream Keys app [ Play Store Link ]
install the Dream Keys and follow the steps:
1. Open Root Explorer, go to /system/usr/keylayout/
2. Open the File named "pm8058-keypad.kl" using Text Editor
3. You will see the file like this
# this corresponds to kernel/arch/arm/mach-msm/keypad-coconut.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
# WALKMAN key
key 200 VENDOR_1
4. Change the most bottom :
# WALKMAN key
key 200 VENDOR_1
become like this :
# WALKMAN key
key 200 CALL
5. Save it when you done changing it [ don't worry because the original file will be backed up while you successfully save it as "pm8058-keypad.kl.bak" ]
6. Open Dream Keys setting in your app drawer, choose Setup Call Button and Check the Action >>> Launch an application
7. Press the Select an application, and choose what application you would like to choose... :fingers-crossed: for example, I choose PowerAmp application.
8. Save and Reboot
9. Try press the Walkman button and it will show to choose "Dream Keys" and "Phone"
10. Check "always perform this action" and choose Dream Keys
11. Done. for this case, because earlier I choose PowerAMP, now the Walkman will open PowerAmp :highfive:
To make it back to its original function, go to Setting > App > Dream Keys > Clear data and default setting, then replace the "pm8058-keypad.kl" with the one you already backed up earlier... :fingers-crossed:
Thanks man! Is there a way to use the "camera key" to take screenshots?
app
can you upload this --> Dream Keys app ....I can't find it in the play.store
thanks :cyclops:
pertilee said:
Thanks man! Is there a way to use the "camera key" to take screenshots?
Click to expand...
Click to collapse
If you want to change the function of the camera button to take screenshots, it has to be concerned with a screenshot app...
But basically, from ICS, Live with Walkman has its own screenshot with an easy way, so I suggest it is not really necessary to change it...
razzorchile said:
can you upload this --> Dream Keys app ....I can't find it in the play.store
thanks :cyclops:
Click to expand...
Click to collapse
You can find it in Play Store, pal... Type "Dreamkeys"
I can't upload it since it against the rules.. any application that doesn't concern with my authority should not be shared.. especially if the author of the application is charging the application with some prices.. Just regards the developers..
Can i change the function of the táctil keys? Or only physical buttons?
Sent from my WT19i using xda premium
Front-Line said:
Can i change the function of the táctil keys? Or only physical buttons?
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
I'm afraid it is only for physical button because Dreamkeys basically for camera, volume, and other physical buttons...
Sent from my WT19i using xda premium
Good
I'll Test It On My Rom With Which I'm Having This Button Prob.
Anyway Is That Dreamkeys app paid ??
If Not You Can Attach It
Pranto Roy said:
Good
I'll Test It On My Rom With Which I'm Having This Button Prob.
Anyway Is That Dreamkeys app paid ??
If Not You Can Attach It
Click to expand...
Click to collapse
that will be great...
and yes it is a paid application by Richard Zhang which worth $ 2.99 in Play Store..
That's why I don't have the authority to attach it...
Rei Zazie said:
that will be great...
and yes it is a paid application by Richard Zhang which worth $ 2.99 in Play Store..
That's why I don't have the authority to attach it...
Click to expand...
Click to collapse
Hm m m m m . . . . . . .
Good

Categories

Resources