[ROOT] Remap Bixby Button w/o an app

redplate

Senior Member
Feb 8, 2009
858
244
73
Hey community. I just figured out how to remap the Bixby button. I'm running a pre-rooted custom rom with deactivated Bixby and don't know if this is working with running Bixby. But I think it should:cowboy: so let's get started:



- Make a backup of your files -
Keycode for Bixby button is 703

1. Go with any root Explorer (I'm using Solid Explorer) to
/system/usr/keylayout
2. Rename the Generic.kl to Generic.txt
3. Open this file with an text editor
4. Search for 703 to get following entry:
# input_fw Intelligent Key for Dream key 703 WAKE
5. Change it to whatever you want. I simply tried following:
# input_fw Intelligent Key for Dream key 703 VOLUME_DOWN
!! 6. Rename it back to Generic.kl (otherwise you won't be able to press any hardware button after reboot; as me lol)
7. Check permissions
8. Restart your device
It works for me. My Bixby button is regulating the volume down :cowboy:
To 4. The entry could also be like following (after an update for Bixby Vision from 07.05.17):

# input_fw Intelligent Key for Dream key 703 WINK

---------------------

Some possible assignments so far:
VOLUME_DOWN - sets volume down
VOLUME_UP - sets volume up
HOME - Homebutton
POWER - Powermenu
MUSIC - starts your favorite music player
CAMERA - starts camera app
APP_SWITCH - Recent apps button
VOICE_ASSIST - Google Assistent
Have fun playing around and please report back if it's working with just a rooted stock Rom and share your assignments with us :)

---------------------

BTW: Thanks to RuggedHunter for sharing the script geteventsendevent.sh by GermainZ to get the Bixby key code :cowboy:

---------------------
 
Last edited:

risoobeon

Senior Member
Feb 18, 2011
61
17
38
Nottingham
My guess would be yes as these two would be the best to try.
key 580 APP_SWITCH
key 582 VOICE_ASSIST
Change to what ever you want but make a back up of the file first in case of error.
 
  • Like
Reactions: redplate

biyor

Senior Member
Feb 21, 2007
242
25
0
Doble tap or long press On softkeys should be incredible, i try but cant find how to do

Enviado desde mi SM-G950F mediante Tapatalk
 

luvgirl12345

Senior Member
Jan 24, 2010
300
40
0
My phone won't start anymore. Not sure if this is a coincidence. I get the message: Custom binary blocked by FRP Lock.

Edit: I think I disabled OEM unlock in settings after flashing. That is probably the more likely cause than changing a file...
 

KPOCAB4EG

Senior Member
Dec 10, 2009
108
38
0
Hi all! When used "CAMERA" bixby buttom take a shot or only launch camera app?

UPD: Yes, and take a shot on open app like a instagram/snapchat etc.)

Thanks!)
 
Last edited:

Interceptor777

Senior Member
Oct 26, 2016
693
254
73
19
Washington D.C.
For everyone who wants to use Google Now, change your language to anything besides US English.

I believe assistant is only rolled out in US so if you change it to Australian or UK English it should switch back to google Now.