Hi all, I'm a noob here on xda but I've been playing around with our Ace for a lot of time! I open this thread to share with you a little trick that I really can't find anywhere in the internet, so I hope it can helps you, sorry for my English.
First, did you ever tried a lockscreen replacement app on stock roms and noticed that everytime you put your phone in the pocket and press the volume buttons accidentally (or just to turn up the music's volume), the screen turns on? Well, for a lot of people it's a good thing, not judging, but what if like me you hate that thing and want to fix it? The only lockscreen replacement app that do it natively is WidgetLocker Lockscreen, but what if an app like GO Locker/MIHome/MILocker or any other lockscreen replacement app has a theme that we like a lot and cannot replicate on the teslacoil's app? Then here's the fix:
Notice: you need to have a rooted phone and a root file manager like Root Explorer (suggested) to make this happen
[1] With the file manager, navigate to /system/usr/keylayout;
[2] Open the file "qwerty.kl" with a text editor (should be integrated in the file browser app, if not copy the file on your sdcard, copy it on your PC and then edit it on your PC, next you have to restore the edited file in its original location, setting permissions to rw-r--r--)
[3] In qwerty.kl, find these lines:
"key 115 VOLUME_UP WAKE"
"key 114 VOLUME_DOWN WAKE"
and delete the "WAKE" so they looks like "key 115 VOLUME_UP" and
"key 114 VOLUME_DOWN"
[4] Save the file (and if you modified it from pc, copy it back to /system/usr/keylayout and set permission like explained on step 2
[5] Do the same with "sec_key.kl" (only the key 115 VOLUME_UP and key 114 VOLUME_DOWN lines, remember)
[6] Reboot your phone
NOTE: IF YOU WANT TO DISABLE WAKE EVEN WHEN YOU USE THE MICROPHONE BUTTON ON ORIGINAL SAMSUNG EARPHONES
[A] Edit the AVRCP.kl file deleting every "WAKE" from the file
Edit the sec_jack.kl file, scroll down to the bottom and delete the WAKE from the line "key 226 HEADSETHOOK WAKE"
Guess that's all, hope this thread isn't against forum rules or useless, so hope it helped
Related
How to disable the home key button at screen off in Cobrato's miui GB 1.7.15?
i 've try Pierre's method which is :
•Open Root Explorer
•Go to /system/usr/keylayout
•Click on the button ‘Mount R/W’ (upper right)
•Locate, press and hold es209ra_keypad.kl file
•Select ‘open in text editor’
•Find this line:
•key 102 HOME WAKE_DROPPED
•Remove the WAKE_DROPPED, so that the end result is:
•key 102 HOME
•Save the file
•Reboot
•Done
my problem is after i edit, save&exit, the "WAKE_DROPPED" can't be removed or cant edit at all. Why? How come this rom won't allow me to edit es209ra_keypad.kl file?
i'm using root explorer ver 2.16,Click on the button ‘Mount R/W’ ,set permission rw-r--r--
Hope some1 can help. TQ
maybe copy your file to pc, edit it with notepad ++ or something & copy it back to your phone in its original location & overwrite the existing file & set the permissions?
thanks!! It's work with ur method. But it also disable the long press to on the torch as well. That's ok for me.
does anybody know how to do this? it's kinda annoying having to switch between android keyboard and the physical keyboard just for an underscore (_)..
Dude sorry but I gotta laugh at you. If i understand you correctly you want to now where is the underscore button in your x10mp? try hitting the sym(bol) in the lower right most of you KB
i know. that symbol doesnt do ****, except act as a right arrow key, like the one next to it. Im using minicm9 by naa btw.
I'm using mini cm9. for me it's at C (normally is in that place, I have a greek x10 mini pro). I mean "blue button" and then "C" (for the android keyboard as an input). I had changed the "keyboard layout" and "keyboard keyprint" to "latin-on-greek".
The setting is in "settings">"advanced". You could try different configurations.
You could also change to the default input method (for which "Sym" key works normally).
When writing somewhere pull down the notification bar and press on "select input method". There you can choose "default input".
cant we add underscore to the C? the latin-on-greek messed up a few key assignments on my phone..
You can try this with the qwerty-en layout, but you have to edit a system file.
So:
1. MAKE A BACKUP (just in case)
2. Go to /system/usr/keychars.
3. Open with text editor the file mimmi_keypad.kcm
4. Find these lines:
key C{
label: 'C'
base: 'c'
shift, capslock: 'C'
alt: none
shift+alt, capslock+alt: none
}
5. Change alt: none to alt: '_'
6. Save the file and change permissions to rw- r-- r-- (I'm not sure if the second part is necessary)
7. Reboot your phone
8. If it works (i.e. if blue button and then c gives you _) you got yourself an _, if not just restore the backup you made in step 1 and wait for someone else to answer (sorry, I don't know much).
(For the steps I described I used "es file explorer" with "root explorer" and "mount file system" settings enabled. I guess you can use whatever you like with some small changes.)
(Obviously you can set "_" to whatever letter you like, I actually tried with "a" and "x")
this is awesome. thanks!
So, here's how to edit the physical and virtual buttons on your phone, tested on Live with Walkman and should work on any Android ROM and version.
Using Root Explorer:
Navigate to /system/usr/keylayout and open cyttsp_key.kl for soft buttons and pm8085-keypad.kl for physical buttons.
Open the above file(s) using Text Editor (long press).
Change the values to what you want, examples:
MENU = menu
BACK = back
SEARCH = search
APP_SWITCH = recent apps
MUSIC = music player
POWER = lock/power
HOME = home/recent apps
Using ADB:
Type:
adb remount
adb pull system/usr/keylayout/cyttsp_key.kl
adb pull system/usr/keylayout/pm8085-keypad.kl
Then open them in Notepad++ , NOT IN WINDOWS NOTEPAD!
Change the values to what you want, examples:
MENU = menu
BACK = back
SEARCH = search
APP_SWITCH = recent apps
MUSIC = music player
POWER = lock/power
HOME = home/recent apps
Then type:
adb push cyttsp_key.kl system/usr/keylayout
adb push pm8085-keypad.kl system/usr/keylayout
adb shell chmod 655 system/usr/keylayout/cyttsp_key.kl
adb shell chmod 655 system/usr/keylayout/pm8085-keypad.kl
adb reboot
Done!
Please press Thankes if I helped
do you know how to use the music key to open the xperia s player like the stock player? because the only way to make it works with that player (by lasan) its for pause and play button...
attack11 said:
do you know how to use the music key to open the xperia s player like the stock player? because the only way to make it works with that player (by lasan) its for pause and play button...
Click to expand...
Click to collapse
My guess is that you go to system/app and copy xperia s music player to there and rename it to the name of the music player that opens when you press the key, example:
Rename apollo.apk to music.apk or whatever the name is
Hey, how are you, hope you well, as I activate the music player with the button on the camera when it is off the screen? That is, play and pause tracks. I have a SK17. Thanks in advance.
markbonn said:
Hey, how are you, hope you well, as I activate the music player with the button on the camera when it is off the screen? That is, play and pause tracks. I have a SK17. Thanks in advance.
Click to expand...
Click to collapse
I think that is related to app modding, I don't want to enter that now since I'm going to format my PC, so I suggest you to PM someone like Lasan or ask it in the forum of the ROM
xdevilium said:
So, here's how to edit the physical and virtual buttons on your phone, tested on Live with Walkman and should work on any Android ROM and version.
Using Root Explorer:
Navigate to /system/usr/keylayout and open cyttsp_key.kl for soft buttons and pm8085-keypad.kl for physical buttons.
Open the above file(s) using Text Editor (long press).
Change the values to what you want, examples:
MENU = menu
BACK = back
SEARCH = search
APP_SWITCH = recent apps
MUSIC = music player
POWER = lock/power
HOME = home/recent apps
............
.........
Click to expand...
Click to collapse
TNX A LOT BRO...
I JUST NEEDED THE WORD : "APP_SWITCH" !
IT WORKS )
do u know how to disable Long-Press Home button ?!
hi, i'm trying to add a shortcut to a volume control app when i press both volume up and down keys following this thread:
http://forum.xda-developers.com/showthread.php?t=695936&page=9
i changed the init.rc with rootexplorer and added this lines
"service volumecontrol /system/bin/volumecontrol
oneshot
disabled
keycodes 114 115 "
114 and 115 are the key numbers to volume up and down.
In /system/bin i created a file with the text:
"#!/system/bin/sh
am start -a com.revsodev.volumecontrol -n com.revsodev.volumecontrol/.VolumeControl "
Which is the code to start the app (tested wwith adb terminal and worked) named volumecontrol.
But when i reboot my phone init.rc changes to what it was before i edited it. And the shortcut doesn't work.
What i'm doing wrong?
Well, if anyone want to try this i made it. Used a .sh file in the system/bin and just inverted the order of the keycodes...
Warning!!!
Please make a nandroid backup before you make any changes in system because I know there will be a person in hundred who will mess with his/her device.
This Tutorial is only for rearranging back and menu softkeys . If you want some other arrangement comment below and I will tell you what to do in that.
Apps we required
1. Es File Explorer
Links for downloading above apps
1. Es File Explorer --> Download
Let's Start and follow steps
Note: If you have already have Read Write premissions then skip to Step 4 else start from Step 1.
Step 1 :- Open "Es file Explorer" and swipe from extream left towards right.
Step 2 :- Swipe up and locate "Root Explorer" and tap on it.
Step 3 :- Touch on " Mount R/W" and enable those circular box which are uncheck ( means Change the permission from Read Only (RO) to Read Write (RW) ) and press OK then grant the Super user permission.
Step 4 :- Now goto device/system/usr/Keylayout and open file named "Generic.kl" as "Text" with "Es note editor".
Step 5 :- Now locate "Key 158" ( for back key ) and "Key 139" ( for menu ) and tap on three dots at right top of display and then "Edit"
Step 6 :- Now change these lines as written below
HTML:
"Key 158 BACK" TO " Key 158 MENU"
"Key 139 MENU" TO " Key 139 BACK"
Step 7 :- Press back key and hit "Yes".
Step 8 :- Now reboot Your device.
Thats it wait till device reboots
Yeah you have successfully remapped your hardware keys.
If you face any problem just ask me
If This post helped you hit THANKS