[FIX] CM7 End Call with Power Button - Galaxy Ace S5830 General

I'm sure i'm not the only one who hate that ...
Actually it's a bug in my point of view, can't take screenshots in call screen, when u press Power Button, it ends call (nasty thing)
Well, now we have a fix for those who want ...
Here is what you gonna do !
1. Open Root Explorer, navigate in system/usr/keylayout
2. Open "qwerty.kl" with Open Text Editor (press and hold on qwerty.kl)
3. U will see this line "key 107 ENDCALL WAKE_DROPPED
4. Go ahead and modify it like this " key 107 POWER WAKE_DROPPED
5. Save changes, u can safely delete "qwerty.kl.bak"
6. Reboot phone and that's it !
Enjoy !

couldnt this be disabled from accesibility settings ?
Sent from my S500 using xda app-developers app

SpaceCaker said:
couldnt this be disabled from accesibility settings ?
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
The rom i have right (THIS ONE) now doesn't have that in accesibility ...

Related

[Q] Disable Power ON with Home Button?

Hi all,
the new Xperia Mini goes ON when i press the Home Button. (and with the Power Button too)...
Is there a way to disable Power ON with the Home Button?
Thanks!
Not that I know of. I actually like pressing the home button to turn on phone. Its more natural for me bc iv been using iphone for long time. To each his own I guess
Why is it you have a problem? just wonderin
Sent from my SK17i using XDA App
Too bad...
Using a Leather Case, and the Close "Button" is direct over the Home Button.
So everytime the Case is "Pressed" the Phone turns on.
ahhh i see. at least is minimal drain on the battery for lock screen to be on 10-20 sec.
but then again the battery life for xperia isn't all that great so i see your concern. guess back to playing the waiting game
Yes, but i like the Phone really!
Just wrote an eMail to SonyEricsson...
Brudertac try changing your leather case, solved.
Brudertac said:
Is there a way to disable Power ON with the Home Button?
Click to expand...
Click to collapse
Try this (you need to be rooted):
1. using root explorer or similar, go to folder /system/usr/keylayout, make sure the filesystem is mounted as R/W
2. edit file pm8058_keypad.kl
3. change the following line:
Code:
key 102 HOME WAKE_DROPPED
into this:
Code:
key 102 HOME
4. save the file, reboot and done

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.

How to make long pressing search open camera app

I did some searching but finally found something that worked. CSDevCTRL, which I found in the market, can make long pressing the search button open your camera app. Just download, run the app, scroll down to long press search button ctrl and select quick camera. Now if you want this to be persistant after a reboot then scroll down to run CSDevCTRL at startup and click save changes. Now when you long press search, choose CSDevCTRL and use by default. That's it.
You can also do this in CM7 under cm settings it will open camera and then you can take pictures with search button also.
sent from my CM7-dx2 using XDA premium

remap left capacitive button functions to switch apps

I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app
_delice_doluca_ said:
Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app
Click to expand...
Click to collapse
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.
anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:
Actually, mounting function to a long press capacitive key is not that simple,therefore I think it is not worthy to do so.
Alternatively, I would suggest installing virtual button apps such as button savior and add the menu function to it.
Sent from my GT-I9305 using xda app-developers app
neato4u said:
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:
Click to expand...
Click to collapse
1+
I would like to be able to do that long press thing too, in the meantime I use LMT to get to my multitasking, that's definitely a lot snappier than the home button
anguslaw said:
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!
nguyen2011 said:
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!
Click to expand...
Click to collapse
Sorry I am using omni 4.4.2 ROM now, there is already an option to assign functions to the keys, so I have no need to do in the other way. Can't help.
This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!
molm said:
This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!
Click to expand...
Click to collapse
use xposed, there are modules to force enable 3-dot menu button
anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Thank you for the generosity to share such a great knowledge. you really made my day. Wish you the best in life.
I also want the same thing if is possible
how to have menu or other function by press and holding the capacitive button.
Sent from my GT-I9500 using Tapatalk
Actually i would suggest installing xposed framework and use the module menubegone to performe same function-remap menu key to switch app key.
In addition it forced every apps to show the 3 dots menu button on the top left corner. That means the menu function is no longer needed. Try it out guys. This is the simplest way now.
Sent from my GT-I9305 using XDA Premium 4 mobile app
Help Remap Home key on galaxy note 4
anguslaw said:
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.
Click to expand...
Click to collapse
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
eddi3chan said:
What is the key number for long press home key?
Click to expand...
Click to collapse
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.
eddi3chan said:
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.
Click to expand...
Click to collapse
sorry man , its a very old post . i now didnt do it this way. i install xposed framework and the xposed addition module to remap the keys. try it out.
let me know if you need further help.
in addition , as far as i remember, the home button need not use this method, my method in op is for captative buttons. for hardware buttons it is easier. try search in xda if you dont want to use xposed framework.
Sent from my GT-I9305 using XDA Free mobile app
Is there any chance of soft bricking the phone by doing this? I tried to bring soft keys with an app and after restarting the phone was stuck in bootload.
So simple
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.
cowleygail said:
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.
Click to expand...
Click to collapse
It worked like a charm on My Samsung Galaxy J7 pro. Thank you. You made my day.

[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