[GUIDE] Customize Bixby button in custom ROMs - Samsung Galaxy S10 Guides, News, & Discussion

For whoever is using a custom ROM and the bixby button is either disabled or cannot customize with the usual Bixby remap app, I have found a solution: (Root needed for #1, #2 works without root)
>Solution #1 (First try this, if it doesn't work - it didn't work for me for some reason - try solution #2):
With tips from the community, I have found these possible locations to edit the bixby key. Use root file explorer:
- /root/system/usr/keylayout/gpio_keys.kl
- /system/usr/keylayout/Generic.kl
- /vendor/usr/keylayout/gpio_keys.kl (?)
Search for key 703 in each of these files. If it does not exist, try to add it manually. Effects take place after a reboot.
Use this guide here for more details: https://forum.xda-developers.com/t/...on-with-simple-double-and-long-press.3839544/
>Solution #2 - Button Mapper: Remap your keys (Not my app)
First, try to see if you can remap the bixby key with this app. For me, it did not work again, but I found a nice workaround:
In the app, instead of changing "Bixby Button", go to "Add Buttons". Now, press the bixby key. The app should detect the key, and finally you can set it to whatever you want.
(But keep in mind, for this option, it is necessary to purchase the pro version).

FoxTheLegend said:
For whoever is using a custom ROM and the bixby button is either disabled or cannot customize with the usual Bixby remap app, I have found a solution: (Root needed for #1, #2 works without root)
>Solution #1 (First try this, if it doesn't work - it didn't work for me for some reason - try solution #2):
With tips from the community, I have found these possible locations to edit the bixby key. Use root file explorer:
- /root/system/usr/keylayout/gpio_keys.kl
- /system/usr/keylayout/Generic.kl
- /vendor/usr/keylayout/gpio_keys.kl (?)
Search for key 703 in each of these files. If it does not exist, try to add it manually. Effects take place after a reboot.
Use this guide here for more details: https://forum.xda-developers.com/t/...on-with-simple-double-and-long-press.3839544/
>Solution #2 - Button Mapper: Remap your keys (Not my app)
First, try to see if you can remap the bixby key with this app. For me, it did not work again, but I found a nice workaround:
In the app, instead of changing "Bixby Button", go to "Add Buttons". Now, press the bixby key. The app should detect the key, and finally you can set it to whatever you want.
(But keep in mind, for this option, it is necessary to purchase the pro version).
Click to expand...
Click to collapse
I installed Magisk and Root Explorer. I don't have 703. Since I don't know English well, the instructions on the link are complicated for me. Can you briefly explain to me how to get Bixby to launch the desired application with one click? Thank you in advance.

ZmisiS said:
I installed Magisk and Root Explorer. I don't have 703. Since I don't know English well, the instructions on the link are complicated for me. Can you briefly explain to me how to get Bixby to launch the desired application with one click? Thank you in advance.
Click to expand...
Click to collapse
Same problem as me, I didn't find 703 anywhere.. you can try manually adding it though, maybe it will work. Like:
key 703 CAMERA
save, reboot device, check if works.
Remember to save file with .kl extension, not .txt, or buttons wont work

FoxTheLegend said:
Same problem as me, I didn't find 703 anywhere.. you can try manually adding it though, maybe it will work. Like:
key 703 CAMERA
save, reboot device, check if works.
Remember to save file with .kl extension, not .txt, or buttons wont work
Click to expand...
Click to collapse
I don't know how can try manually adding it though? What do I need to write to start Bixby button to save?

ZmisiS said:
I don't know how can try manually adding it though? What do I need to write to start Bixby button to save?
Click to expand...
Click to collapse
if as you said you cant find anywhere "703" in the file, write at the end just like the others, (you can open and edit the file straight away from the root explorer)
key 703 [desired command]
for example
key 703 CAMERA
then save file and reboot phone. If it works, after pressing the bixby key the default camera app should open.
Some people say it works, for me it didn't work though.

FoxTheLegend said:
if as you said you cant find anywhere "703" in the file, write at the end just like the others, (you can open and edit the file straight away from the root explorer)
key 703 [desired command]
for example
key 703 CAMERA
then save file and reboot phone. If it works, after pressing the bixby key the default camera app should open.
Some people say it works, for me it didn't work though.
Click to expand...
Click to collapse
It didn't work for me either. I worked like that, but I also typed something like this, but without success.
# input_fw Intelligent Key for Dream
key 703 CAMERA
When I change everything, I save it, after that I change the txt name to kl. It needs Check Permissions after that, and I don't see it in Root Explorer. Maybe you need to go to Settings, select the app and check the permissions? I do not know.

ZmisiS said:
It didn't work for me either. I worked like that, but I also typed something like this, but without success.
# input_fw Intelligent Key for Dream
key 703 CAMERA
When I change everything, I save it, after that I change the txt name to kl. It needs Check Permissions after that, and I don't see it in Root Explorer. Maybe you need to go to Settings, select the app and check the permissions? I do not know.
Click to expand...
Click to collapse
Weird - first check in Magisk that root explorer has root permissions. Second try to edit the file at once without first chaning to .txt - most editors support it, no need to change. If that still doesnt work, try a different root file explorer app. For me worked "root browser".

FoxTheLegend said:
Weird - first check in Magisk that root explorer has root permissions. Second try to edit the file at once without first chaning to .txt - most editors support it, no need to change. If that still doesnt work, try a different root file explorer app. For me worked "root browser".
Click to expand...
Click to collapse
Root Explorer works for me. The system is rooted, and I confirmed it when I opened Root Explorer. You say it didn't work for you. Neither did I. I did everything according to the instructions.

FoxTheLegend said:
- /vendor/usr/keylayout/gpio_keys.kl
Click to expand...
Click to collapse
FoxTheLegend said:
It Worked for me. Big Thank You!
Click to expand...
Click to collapse

Related

[Q] Disable wakeup using home button? [SOLVED]

Anybody know if there is a way to disable wakeup using home button?
__________________________________________________________
SOLUTION
You will need Root and Root Explorer (app)
Start Root Explorer and tap on "Mount r/w" then go in /system/usr/keylayout
and edit the file "es209ra_keypad.kl"
Find string:
Code:
key 102 HOME WAKE_DROPPED
and delete WAKE_DROPPED from it, save->exit->reboot = DONE.
Didn't know it did that! Cheers ma dears.
Sent from my X10i using XDA App
This might be helpful but I haven't got time to try them out.
http://forum.xda-developers.com/showthread.php?t=683902
Thx, it works!
Please help me disable wakeup using home button
amisk said:
Please help me disable wakeup using home button
Click to expand...
Click to collapse
Please read the link.
amisk,
You will need Root and Root Explorer (app)
Start Root Explorer and tap on "Mount r/w" then go in /system/usr/keylayout
and edit the file "es209ra_keypad.kl"
Find string:
Code:
key 102 HOME WAKE_DROPPED
and delete WAKE_DROPPED from it, save->exit->reboot = DONE.
Dear prewed!
You are the best! Thank`s
prewed said:
amisk,
You will need Root and Root Explorer (app)
Start Root Explorer and tap on "Mount r/w" then go in /system/usr/keylayout
and edit the file "es209ra_keypad.kl"
Find string:
Code:
key 102 HOME WAKE_DROPPED
and delete WAKE_DROPPED from it, save and exit, DONE.
Click to expand...
Click to collapse
Thanks =D
For what is "key 399 grave"?
Sent from my rooted 026 x10i using XDA App
Wonderful, thanks!
So I'm wondering then.. Is it possible to disable the (power button) from hanging up everytime I'm on the phone?
Every time I'm on the phone and want to wake up the phone sometimes I forget that pressing the "power button" would hang up the call. is it possible to disable that?
Thank You!
prewed said:
amisk,
You will need Root and Root Explorer (app)
Start Root Explorer and tap on "Mount r/w" then go in /system/usr/keylayout
and edit the file "es209ra_keypad.kl"
Find string:
Code:
key 102 HOME WAKE_DROPPED
and delete WAKE_DROPPED from it, save and exit, DONE.
Click to expand...
Click to collapse
Just want to say THANK YOU!!!
My phone was driving me crazy, unlocked in my pocket and lived its own life.
Now it will sleep lika a little baby
+1 Thanks!!!
Sent from my one-click-rooted X10i using XDA App
Thanx for the link for fixing the Home button wakeup thingy
Sighx said:
So I'm wondering then.. Is it possible to disable the (power button) from hanging up everytime I'm on the phone?
Every time I'm on the phone and want to wake up the phone sometimes I forget that pressing the "power button" would hang up the call. is it possible to disable that?
Click to expand...
Click to collapse
+1 on that... it's SO annoying
- Martin
Does this enable to lock the screen whilst in a call?
Sent from my X10i using XDA App
crap, need some help, could someone post me their the section showing the x10 2.1 key layout...did this change to disable my home key and somehow disabled the power key as well...not sure if I might have deleted another key so just need a listing of the key number section.
Nevermind, just realized it makes an automatic backup...saw that the original file had the word HOME in caps but I had written it as Home...odd that it would be so case sensitive.
Anybody know if this method could be used to turn one of the hardware buttons into a PLAY/PAUSE button?
I take it this method still works on 2.1?
All I want to do is disable the wake for the Home button to stop my X10 waking in my pocket but I'm an ADB noob and I tried to read the thread linked (Desire) but it talks about recovery-windows.bat and windows root tools and I have no idea where this is?
I have Android SDK installed correctly I think?
Could somebody point me in the right direction please?
Thanks, Jason.
EDIT- Also confused that a post above says this can be done with root explorer but the linked thread says it cannot, I tried with Root Explorer but I cannot open the es209ra_keypad.kl file?
works the same way, but from version 2.1 only after reboot
What do you meant only after reboot?
And did you do this with Root Explorer? Did you copy the file and edit it else where?
Sorry and thanks!

[Q] enabling capacitive buttons

ive read on other threads that you can disable the capacitive buttons on the GT-i9300 by going inputting '#' in front of lines 'key 132 back' and 'key 158 menu'. however when i remove the '#'s my capacitive buttons still stay disabled. how to i re enable them?
remove the #, check the permissions and reboot
ive removed the '#'s but i dont know what you mean by the permissions. is that superSu? if it is ive rebooted the phone and still they wont work.
check the file permissions with a file manager and make sure they're so the same as the other files in the folder
Glebun said:
check the file permissions with a file manager and make sure they're so the same as the other files in the folder
Click to expand...
Click to collapse
Thank you sooo much!! it worked

[Q] .kl file issues

I've been running my xperia Z2 for a month or two now and one of the first things I did was disable the camera button, and attempt to rebind it to a different button in the .kl files within system/usr/keylayout. Initially, it worked great. I commented out the key 212 camera in a few files with a #, and added a new line.
It's been a month or so since then and I hadn't been using the camera button and all, and recently I've noticed that the kl file changed back in one of my restores to just being commented out, so the camera button is now non functional. I attempted to add a line of code to change the camera to media next like this: key 212 MEDIA_NEXT, but was getting no response after restarting my phone. I removed the line, deleted the comment on the previous line in every file that I had disabled it in, and restarted the phone. Camera is still non functional even after confirming it stayed unchecked.
After this, I attempted to copy all of the files to my SD card and mass edited every single camera key reference to media_next for the sake of testing, and the button was still disabled. I completely purged my .kl files, and uploaded notepad++ edited copies and restarted my phone. None of my buttons worked. I did a restore from my SD card backup, and nothing worked after restarting, still. I did a backup from a TWRP backup and everything is functional again... however, I'm left wondering why my .kl files might not be reading.
I apologize for the long post, but I'm trying to understand where I've went wrong. I'm on a stock bell rom(canadian) firmware 4.4.2 model D6503 build 17.1.A.2.55. I'm rooted, with only minimal modifications to the device(cydia substrate, xposed framework using rootcloak, youtube adaway, a radio modification to allow headphoneless scanning and xposed additions).
Does anyone know where I might've went wrong? My end goal is to rebind a controller's R2(simple button) controller to the R2 axis as well as button press, so if anyone has any information on rebinding a key to a maxed out axis I would appreciate information on that as well(Eg. R2 key 105 to RTrigger 1.0 + key 105).
Not sure
Perhaps copy a working existing file and try from there
I had trouble understanding your problem
Envious_Data said:
Not sure
Perhaps copy a working existing file and try from there
I had trouble understanding your problem
Click to expand...
Click to collapse
I've restored a CRM backup and the .kl files all work great, but when I attempt to modify the files they don't seem to update any system functions or buttons unless I'm just disabling the button. Even if I copy the file to another directory, break all the buttons then overwrite it with the copy and restart, the buttons stay disabled until I restore a CRM recovery.
I hope that's a little easier to read, the phone just doesn't seem to update its internal system with button definitions except to disable them, and I'm trying to figure out why.
Zarreck said:
I've restored a CRM backup and the .kl files all work great, but when I attempt to modify the files they don't seem to update any system functions or buttons unless I'm just disabling the button. Even if I copy the file to another directory, break all the buttons then overwrite it with the copy and restart, the buttons stay disabled until I restore a CRM recovery.
I hope that's a little easier to read, the phone just doesn't seem to update its internal system with button definitions except to disable them, and I'm trying to figure out why.
Click to expand...
Click to collapse
Just a thought, not pretty sure.
When you are copying files from sd-card, you should also check for correct permissions.
Your permissions must match with original files, otherwise it may create an issue.
mvv1277 said:
Just a thought, not pretty sure.
When you are copying files from sd-card, you should also check for correct permissions.
Your permissions must match with original files, otherwise it may create an issue.
Click to expand...
Click to collapse
I hadn't even thought of that, thank you, I'll try that out

Mod for A510F

After rooting the phone, i have tried to edit others.xml file to enable:
1. Exit option for Browser.
2. Call block and sms block (in the system setting)
3. Turn on or off camera shutter sound.
And some other things.
You just download the attachement, and put it onto system/csc folder. Set permission for this file.
Remember to rename the original file to use later if you want.
Hit Thank button if you appreciate my work. That makes me happier to post in our forum. Thank all.
Great work.
But i have one Error.
If i click on "smart block", settings crashes.
Sorry for my english.
I hope you understand what i mean.
nhthiencp said:
After rooting the phone, i have tried to edit others.xml file to enable:
1. Exit option for Browser.
2. Call block and sms block (in the system setting)
3. Turn on or off camera shutter sound.
And some other things.
You just download the attachement, and put it onto system/csc folder. Set permission for this file.
Remember to rename the original file to use later if you want.
Hit Thank button if you appreciate my work. That makes me happier to post in our forum. Thank all.
Click to expand...
Click to collapse
Hi.
So, dont use this function. It does not matter.
There has been no comment since so far. Sad threat!
Nice work but I just got the a5 not long ago so not rooting it yet

*[ROOT] Remap Bixby Button*with CAMERA

1. Go to /system/usr/keylayout
2. Rename the Generic.kl to Generic.txt
3. Open this file with an text editor*
4. Search for WINK and replace it with CAMERA
5. Rename it back to Generic.kl (otherwise you won't be able to press any hardware button after reboot
6. Restart your device
you can change Bixby Button to several things but i prefer CAMERA on this great note8 .
There's Root available?
Root is available via Magisk and Super SU. Exynos only though.
Magisk:
https://forum.xda-developers.com/galaxy-note-8/how-to/n950fd-root-via-magisk-t3673451
SuperSU:
https://forum.xda-developers.com/galaxy-note-8/how-to/guide-how-to-root-note8-efs-backup-t3677038
Quick question, the unlocked us version is exynos or snapdragon?
Sent from my iPhone using Tapatalk
tanquef said:
Quick question, the unlocked us version is exynos or snapdragon?
Click to expand...
Click to collapse
The US is a Snapdragon variant.
root is coming, it always does....
Sent from my SM-N950U1 using Tapatalk
Bofahad said:
1. Go to /system/usr/keylayout
2. Rename the Generic.kl to Generic.txt
3. Open this file with an text editor*
4. Search for WINK and replace it with CAMERA
5. Rename it back to Generic.kl (otherwise you won't be able to press any hardware button after reboot
6. Restart your device
you can change Bixby Button to several things but i prefer CAMERA on this great note8 .
Click to expand...
Click to collapse
Can't you just edit it with it's name as is?
Kalm_Traveler said:
Can't you just edit it with it's name as is?
Click to expand...
Click to collapse
What?
Bofahad said:
What?
Click to expand...
Click to collapse
I'm asking why it is necessary to change the file name before editing. Can't you just open it in a text editor and save it?
Kalm_Traveler said:
I'm asking why it is necessary to change the file name before editing. Can't you just open it in a text editor and save it?
Click to expand...
Click to collapse
Text editors can not open files with .kl extention
hello!
what else are options? camera, and?
second question is also an offscreen funtion available? all the bixby remappers work when screen is on.
thx
gepataki said:
hello!
what else are options? camera, and?
second question is also an offscreen funtion available? all the bixby remappers work when screen is on.
thx
Click to expand...
Click to collapse
Hi,
Take a look here: https://forum.xda-developers.com/galaxy-s8+/how-to/root-remap-bixby-button-o-app-t3601061.
Bofahad said:
1. Go to /system/usr/keylayout...
Click to expand...
Click to collapse
I've been looking how to apply theses steps o a Samsung Galaxy with Lineage OS.
You can follow the steps as described in the post, but you won't find button 703 on the "Generic.kl" file. You have to search for a file named "gpio_keys.kl" on the same folder:
/root/system/usr/keylayout/
Click to expand...
Click to collapse
Also, I've found other commands to try if you wish:
APP_SWITCH - Recent apps button
ASSIST - Google Assistant (with item display on the screen)
CALCULATOR - Open default calculator app
CALENDAR - Open default calendar
CALL - Open default call app
CAMERA - Open camera
CONTACTS - Open default contacts app
EXPLORER - Favorite internet browser
HOME - Homebutton
MEDIA_PLAY_PAUSE - Play pause media
MESSAGE - Default messenger
MUSIC - starts your favorite music player
POWER - Power menu
QPANEL_ON_OFF - Notification area
SYSRQ - Take a screenshot
VOICE_ASSIST - Google Assistant
VOLUME_DOWN - Sets volume down
VOLUME_MUTE - Volume media (set default media volume in phone setting)
VOLUME_UP - Sets volume up
All the steps described above have worked for me on a Galaxy S8 and a Galaxy S9+, with Lineage OS 15.1 and Lineage OS 16.

Categories

Resources