[Q] How do I disable hardware keys (recent apps and back)? - Galaxy S6 Q&A, Help & Troubleshooting

I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?

3bs11 said:
I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?
Click to expand...
Click to collapse
You can do that with an app from Play Store. The app is called All in one Gesture. It allows you to change actions on all keys on your phone. It worked for me.

Ninolina said:
You can do that with an app from Play Store. The app is called All in one Gesture. It allows you to change actions on all keys on your phone. It worked for me.
Click to expand...
Click to collapse
Thanks a lot!

3bs11 said:
I can't customise what the short press does
Click to expand...
Click to collapse
That screen look a bit different on my S6. Did you activated it when it asked for it? When you first started it did it asked you for something?

3bs11 said:
I managed to disable the back button by going to /system/usr/keylayout/Generic.kl and adding # in front of key 139 menu and key 158 back but the recents button still works after rebooting. This was the old method when the left button was a menu not recent apps button. Which button number is for recents?
Click to expand...
Click to collapse
I just did this myself. I made the same mistake as you did, such that the recent key/button was still operational. I then realized that it's not a menu button, but it's an app switcher function, hence "recent". Under "# samsung", there should be "key 254 APP_SWITCH". That's the one to disable the app switcher key or "recents" button.
Hope this helps out anyone out there looking for this.

How do I get to this coding

hoang51 said:
I just did this myself. I made the same mistake as you did, such that the recent key/button was still operational. I then realized that it's not a menu button, but it's an app switcher function, hence "recent". Under "# samsung", there should be "key 254 APP_SWITCH". That's the one to disable the app switcher key or "recents" button.
Hope this helps out anyone out there looking for this.
Click to expand...
Click to collapse
hi, sorry for bother you but can you tell me how to do that? my recent apps key is always pressing and i go in holidays so i don t have time to take the phone to warranty.. can i perform that without root? thank you

macgaitas said:
hi, sorry for bother you but can you tell me how to do that? my recent apps key is always pressing and i go in holidays so i don t have time to take the phone to warranty.. can i perform that without root? thank you
Click to expand...
Click to collapse
To disable the capacitive button , you need root.

Rakcoon said:
To disable the capacitive button , you need root.
Click to expand...
Click to collapse
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..

macgaitas said:
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..
Click to expand...
Click to collapse
Dont root the phone. Take it to samsung for warranty claim when you get a chance.
They should be held accountable for the defect. Good luck.

macgaitas said:
Thank you for your answer. the phone is three months old and already got a problem ..Basically is unusable the recent tab is always pop up..
Click to expand...
Click to collapse
Rakcoon said:
Dont root the phone. Take it to samsung for warranty claim when you get a chance.
They should be held accountable for the defect. Good luck.
Click to expand...
Click to collapse
Just to verify, do you have any type of case on the phone, and if so, does the button do the same thing if you remove the case.
Otherwise, Rakcoon is correct. They should fix it under warranty.

THe best way to do is, add: qemu.hw.mainkeys=0 in build.prop, reboot and done.
There is another way to do is: Disable the hardware/back keys through: /system/usr/keylayout/Generic.kl and add # in front of key 139 menu and key 158. Also add the same to key 254 APP_SWITCH
Hope this helps..

vdbhb59 said:
THe best way to do is, add: qemu.hw.mainkeys=0 in build.prop, reboot and done.
There is another way to do is: Disable the hardware/back keys through: /system/usr/keylayout/Generic.kl and add # in front of key 139 menu and key 158. Also add the same to key 254 APP_SWITCH
Hope this helps..
Click to expand...
Click to collapse
Thanks to the above listing, I was in the middle of factory resetting my Samsung S6 back to stock (but still rooted) and my physical keys (app switcher and back buttons) wasn't working. I had to go in build.prop and generic.kl and reset them back to default values (e.g., put 1 for the mainkeys value and remove # in front of 158 and 254). Now the physical keys are working.

I font know

hoang51 said:
Thanks to the above listing, I was in the middle of factory resetting my Samsung S6 back to stock (but still rooted) and my physical keys (app switcher and back buttons) wasn't working. I had to go in build.prop and generic.kl and reset them back to default values (e.g., put 1 for the mainkeys value and remove # in front of 158 and 254). Now the physical keys are working.
Click to expand...
Click to collapse
You are always welcome mate.

If you want to disable the recent button all you have to do is download all in on gesture. There you can disable any button.

i cant find any of these places where the text is used to block these buttons.. build.prop? system-usr??? what do these even mean

Related

FB button assignable?

Is that FB assignable to a different task or app? I don't use FB.
Sent from my GT-P1000 using XDA App
FB Button?
astro49 said:
Is that FB assignable to a different task or app? I don't use FB.
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Does anyone have an idea yet? This device seems fine apart from the FB button and it would great if it could be changed.
no idea with the FB-Button ?
I can't believe that the FB button is not user assignable. I don't actually own one of these phones but I am very interested (as I love physical keyboards)
I'd rather it be a Google+ button! or maybe control the camera or something that's actually useful.
Not sure, but you can disable it or switch to camera.
You need to be rooted
Install rootexplorer app or similar
go to: /system/usr/keylayout/
tap mount r/w
edit chacha-keypad.kl
put a # in front of 184 HTC_SHARE to disable it or change HTC_SHARE to CAMERA
save
then switch back r/o
then reboot
(if you switch to camera, you need to long press fb button for camera)
zebdi said:
Not sure, but you can disable it or switch to camera.
You need to be rooted
Install rootexplorer app or similar
go to: /system/usr/keylayout/
tap mount r/w
edit chacha-keypad.kl
put a # in front of 184 HTC_SHARE to disable it or change HTC_SHARE to CAMERA
save
then switch back r/o
then reboot
(if you switch to camera, you need to long press fb button for camera)
Click to expand...
Click to collapse
Cheers mate!
Thanks a lot, it worked like a charm. Now I need to see which shortcut should I assign it to (not using the camera that much as I have a DSLR ).
I'm gonna try this later
Sent from my Chacha
zebdi said:
Not sure, but you can disable it or switch to camera.
(if you switch to camera, you need to long press fb button for camera)
Click to expand...
Click to collapse
exist any trick to assign the button as power on/off switch ?
cheers, Peter
zebdi said:
Not sure, but you can disable it or switch to camera.
You need to be rooted
Install rootexplorer app or similar
go to: /system/usr/keylayout/
tap mount r/w
edit chacha-keypad.kl
put a # in front of 184 HTC_SHARE to disable it or change HTC_SHARE to CAMERA
save
then switch back r/o
then reboot
(if you switch to camera, you need to long press fb button for camera)
Click to expand...
Click to collapse
Hi, I think if we had a way to change it so it can access any application (not just the camera) would be more 'productive' and a whole lot cooler (Twitter, Skype, Google+). Then you could purchase customizable same size stickers to give it a more 'refreshing' look.
greddy said:
exist any trick to assign the button as power on/off switch ?
cheers, Peter
Click to expand...
Click to collapse
Yes, change it to POWER. I haven't tried it yet but it should work. (try long press)
So:
# column 4
key 184 CAMERA - works with long press
haven't tried
key 184 POWER
hi
after getting s-off and finally rooted
my "@" sign became "£" sign (on FN+Y)
help would be very much appreciated
curently on software: 1.21.707.2
tnx a lot
Alex C. said:
Yes, change it to POWER. I haven't tried it yet but it should work. (try long press)
So:
# column 4
key 184 CAMERA - works with long press
haven't tried
key 184 POWER
Click to expand...
Click to collapse
If you change line 184 to POWER you can only power off, you can not wake it up
Try WAKE_DROPPED and check if that one works.
Alex C. said:
Try WAKE_DROPPED and check if that one works.
Click to expand...
Click to collapse
NOPE! Doesn`t work and DON`T try it, I messed up my keyboard, now some letters don`t work
I put back CAMERA and everything is back to normal
Hmm, weird.. Sorry for that then.. I'll perform some tests and check to see which command is the correct one. I presume you rebooted the phone after you changed the file, right?
Alex C. said:
Hmm, weird.. Sorry for that then.. I'll perform some tests and check to see which command is the correct one. I presume you rebooted the phone after you changed the file, right?
Click to expand...
Click to collapse
Yes I did...
I also noticed some odd behavior, when I try to set the WAKE_DROPPED parameter to assign the "screen wake" capability to other keys than the power button.
Let's say for example, that I added WAKE_DROPPED next to HTC_SHARE in the .kl file & I rebooted properly.
Then the screen will sometimes wake up when I press the FB key...but sometimes, never. The behavior seems completely random.
Also noticed the same behavior when trying to enable WAKE_DROPPED for other keys such as END_CALL for example.
My rom : default sense from latest OTA
Version : 1.54.401.2
S-OFF+ Root + CWM installed
azerty keyboard
I still have to look into this but time is not on my side, once again.
+ I'm using SuperOSR and CM builds and QWERTY layout.
astro49 said:
Is that FB assignable to a different task or app?
Click to expand...
Click to collapse
Yes, this is possible even on unrooted devices.
riorim said:
I also noticed some odd behavior, when I try to set the WAKE_DROPPED parameter to assign the "screen wake" capability to other keys than the power button.
Let's say for example, that I added WAKE_DROPPED next to HTC_SHARE in the .kl file & I rebooted properly.
Then the screen will sometimes wake up when I press the FB key...but sometimes, never. The behavior seems completely random.
Also noticed the same behavior when trying to enable WAKE_DROPPED for other keys such as END_CALL for example.
Click to expand...
Click to collapse
Actually this is not random...
The Chacha CPU is sleeping most of the time when screen is off, even Wifi is turned to max saving and prevents to receive data. Only some internal events wakes CPU up. And it wakes up on few seconds some times to times, to allow gmail sync and other things. It can stay up to several minutes without waking up.
In case the Chacha CPU is sleeping no key except the power button can wake it up.
In case the CPU is in wake up state, which is not often when screen is off, some other buttons can turn back the screen on.
As example, most of the time, right after screen turns off, you can turn back screen on with call button within 5 seconds or less, but later, only power button can because CPU went to sleep.

Home offscreen button during typing

Is anybody else having this issue? I am coming from Galaxy S4, where the home button is actual physical button, so there I didn't have any issues, but with OPO, when typing, many times when I try to hit spacebar, it hits the top of the Home button. Before it comes up, I do not want to use on screen buttons, I like the size of the screen and don't want it up with software buttons.
I was wondering if anyone has/could write a script to set the buttons to
(Menu)
Short press - Menu
Long Press - Recent Aps
(Home)
Short press - Nothing
Long Press - Home
(Back)
Short Press - back
Long Press - nothing
Or of there is an app that would give me a bit more control over the buttons... or something that can help with this. This is absolutely the only issue I have with the OPO otherwise I love the phone.
shiroimin said:
Is anybody else having this issue? I am coming from Galaxy S4, where the home button is actual physical button, so there I didn't have any issues, but with OPO, when typing, many times when I try to hit spacebar, it hits the top of the Home button. Before it comes up, I do not want to use on screen buttons, I like the size of the screen and don't want it up with software buttons.
I was wondering if anyone has/could write a script to set the buttons to
(Menu)
Short press - Menu
Long Press - Recent Aps
(Home)
Short press - Nothing
Long Press - Home
(Back)
Short Press - back
Long Press - nothing
Or of there is an app that would give me a bit more control over the buttons... or something that can help with this. This is absolutely the only issue I have with the OPO otherwise I love the phone.
Click to expand...
Click to collapse
Because i currently am running CM12 i can't give exact insturctions but it should be somewhere in settings -> buttons -> ? over there you should be able to give the buttons other values. It is something like menu button: recent apps switcher and if you press that you can change it to a few other things. If this doesn't fill your needs, ask a bit more around I know it is there, because i saw it once.
Watermelons said:
Because i currently am running CM12 i can't give exact insturctions but it should be somewhere in settings -> buttons -> ? over there you should be able to give the buttons other values. It is something like menu button: recent apps switcher and if you press that you can change it to a few other things. If this doesn't fill your needs, ask a bit more around I know it is there, because i saw it once.
Click to expand...
Click to collapse
Yes it is there, but the option for "Home Short Press" is not there, that is hard coded. At least on the ROM I run (LiquidSmooth)
What I need to know is this:
Which key mapping is for Short Press Home, Long Press Home and Long Press Menu. I am within /system/usr/keylayout/Generic.kl to adjust the mapping manually, but can't seem to find the correct mapping for those 3.
*EDIT*
Ok, so found the key for Home and that is 172, but that disables both the short and long press...
shiroimin said:
What I need to know is this:
Which key mapping is for Short Press Home, Long Press Home and Long Press Menu. I am within /system/usr/keylayout/Generic.kl to adjust the mapping manually, but can't seem to find the correct mapping for those 3.
*EDIT*
Ok, so found the key for Home and that is 172, but that disables both the short and long press...
Click to expand...
Click to collapse
I'm sorry but with this i can't help.
Have you also tried the official OnePlus Forums?
Watermelons said:
I'm sorry but with this i can't help.
Have you also tried the official OnePlus Forums?
Click to expand...
Click to collapse
Yeah, sadly, someone suggested to come here
If you have root try it with the Xposed Module "Xposed Additions".
holzfeli said:
If you have root try it with the Xposed Module "Xposed Additions".
Click to expand...
Click to collapse
Unfortunately can't install Xposed as it tells me that my device does not support it. Is there one specifically built for us?
I get this error :
Xposed is not (yet) compatible with Android SDK Version 21 or your processor architecture (armeabi-7va).
CANNOT LINK EXECUTABLE: could not load library "libdvm.so" needed by "/data/data/de.robv.android.xposed.installer/cache/app_process"; caused by library "libdvm.so" not found.
shiroimin said:
Unfortunately can't install Xposed as it tells me that my device does not support it. Is there one specifically built for us?
Click to expand...
Click to collapse
I can't post the link because I haven't 10 messages :crying:
You have got a private message!
holzfeli said:
I can't post the link because I haven't 10 messages :crying:
You have got a private message!
Click to expand...
Click to collapse
Thank you for the link, unfortunately still doesn't work. Same error. I think it is because the ROM I am using is LP and LP uses ART instead of Dalvik and XPosed doesn't work with that. Thank you though for the effort
shiroimin said:
Thank you for the link, unfortunately still doesn't work. Same error. I think it is because the ROM I am using is LP and LP uses ART instead of Dalvik and XPosed doesn't work with that. Thank you though for the effort
Click to expand...
Click to collapse
Yes, ART is the problem.
So I came up with a solution for this issue.
The file in question to be working with is /system/usr/keylayout/Generic.kl
Navigate to this file using a File Browser (Root Explorer is the one I use) that has access to Root and make sure you have R/W rights.
Edit the file above in a text editor > find line : "key 139 MENU" and change it to "key 139 HOME" > and then find line : "key 172 HOME" and change it to "key 172 MENU" > Reboot device for it to take effect after you save
Then, within Settings > Buttons, you can adjust (at least on the ROM I am on), the long and short press of the Menu button.
What comes out is: left button is HOME button, with short/long press actions, middle button is MENU with just long action (set short action to NONE), and right button is BACK button untouched.
This way if I am typing, and want to hit space bar, accidentally hitting the middle button will not bring me to the main screen. It will take a while to get used to it, but it does resolve my issue.

[Q] Onscreen buttons??

Hi people,
Question? Did someone managed the script for using onscreen buttons (back, home & show programs)? I knew the Galaxy s5 can be showed the buttons by editing a script.
Thanks in advance!
You can add this line to your build.prop
qemu.hw.mainkeys=0
Note that the soft keys will cover the close all button in recents (in portrait) , some parts of the camera, and cause s-voice settings to force close
piccit said:
You can add this line to your build.prop
qemu.hw.mainkeys=0
Note that the soft keys will cover the close all button in recents (in portrait) , some parts of the camera, and cause s-voice settings to force close
Click to expand...
Click to collapse
Plus it is pointless on a device that has hardware buttons. Just my two cents
Stevles said:
Plus it is pointless on a device that has hardware buttons. Just my two cents
Click to expand...
Click to collapse
Well to each his own. I personally don't like having to physically press the home button. That being said, I turned off the softkeys b/c the little glitches were bugging me.
piccit said:
Well to each his own. I personally don't like having to physically press the home button. That being said, I turned off the softkeys b/c the little glitches were bugging me.
Click to expand...
Click to collapse
I hate pressing the button as well, which is why I'm using SwipeHome (and now actually Pie Control which let's me do the same but with a smaller activation area) to just swipe up from above the button onto the screen. Works great!
Thanks guys, i like the onscreen buttons.
I hope in the future we can only put a single touch on the fingerprint/home button to go the home screen.

Anyone Else not able to Simulate a "Menu Button" press?

I cannot simulate a menu button press on this phone. Blu's ESL customer support didn't help at all.
On the Note 4, you hold down the recent apps button and the phone treats it like a menu button press. I use a few somewhat legacy apps and not having menu press completely breaks those apps.
RDProgrammer said:
I cannot simulate a menu button press on this phone. Blu's ESL customer support didn't help at all.
On the Note 4, you hold down the recent apps button and the phone treats it like a menu button press. I use a few somewhat legacy apps and not having menu press completely breaks those apps.
Click to expand...
Click to collapse
Current apps should not need a menu button. However, if you have old outdated apps you can simulate it with the (weirdly named) built in "suspend button." Settings > Advanced settings > Suspend option. Enable that and it will overlay a round button on the screen. When you need the menu button tap the on-screen button. It will expand and show more buttons. The button with three dots is the menu button. If you'd prefer to hide the "suspend button" so that it's not always visible you can do so by long pressing on it. You can unhide it in the notification panel.
Awesome, that works, but what a sad work around to an issue solved so much more efficiently on other devices.
RDProgrammer said:
Awesome, that works, but what a sad work around to an issue solved so much more efficiently on other devices.
Click to expand...
Click to collapse
Sad indeed. I will continue to poke around for another solution to this, with the ultimate goal of remapping that recent apps button to a menu. I am not sure this will be possible without root access though. Good news is there is another thread here on XDA with a bounty/reward of around $200 at the moment for anyone who can get a workable root and TWRP recovery goin for this phone. :fingers-crossed:
RDProgrammer said:
Awesome, that works, but what a sad work around to an issue solved so much more efficiently on other devices.
Click to expand...
Click to collapse
True, but as I said no current app should need a menu key. Most new Android phones have no menu key because it's not needed. I have about 200 apps installed and only one needs the menu key workaround because it hasn't been updated in years.

Multitasking button making problems

Hey,
My multitasking button got fuxked up and it making the multitasking screen and split screen to go up by it self.
Is there a mod to cancel the function of all the physical buttons?
I have a on screen buttons mod so it wont be a problem not using them.
edit: I was able to fix it by putting # before the menu key in the generic.kl file in system/usr/ keys(something)
now the only problem that remains is that the screen change by itself from negative colors mode to the normal colors mod.
is there a way to cancel it? in generic.kl or in other way?
Thanks
someone?
Really?! No one?!
dial *#2663# and tap the first option
elprince_99 said:
dial *#2663# and tap the first option
Click to expand...
Click to collapse
doesnt work
please someone!!!! three days and no one can help?!
that **** drive me crazy it doesnt stop
buy a new one

Categories

Resources