[ROOT] Remap Bixby Button w/o an app

Search This thread

tin2404

Senior Member
Hallo, I am trying to change that with one click I will open the POWERAMP app, but without success. How do I make this happen please?

I managed to work changing code 703 into MUSIC, but you need to uninstall or freeze stock Samsung and Google players before.
Also, when you remove stock video player it will launch any other video player if you enter code VIDEO (in my case it launch MX player).
 

tuckersmission

Senior Member
Oct 16, 2011
512
321
This is awesome. Just tried on my Note 8 running Pie Beta and works a treat. Just shared it over there.

Thanks a million
 

ssAndrey96

New member
May 1, 2019
2
2
I just want to confirm this method works. I just renamed "WINK" with "MENU" and now the bixby button works as menu button. And with gravitybox or xposed edge I can use the bixby button to launch shortcut->tasker action and this is AMAZING.

my phone is note 9, running stock rom 8.1.0
 

adrian0541

Member
Jul 28, 2019
11
5
Hey community. I just figured out how...

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/

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.
 
Last edited:

ckbhawsar

Senior Member
Feb 20, 2013
113
58
Tokyo
Thanks For you Hardwork
I am using HAVOC GSI on Galaxy S9 (SD845).
I am not able to find Bixby Key #703 in Generic.kl in keyboard layout.
Can i add key in Generic.kl? Will it work?
 

contradriver

Senior Member
Apr 26, 2016
179
31
How do I set it up so it doesn't open anything? I'd want to map it apart with another app, but it keeps conflicting with the system configuration. I can't leave key 703 blank because then it doesn't work at all
 
Last edited:

trankhoa2601

Member
Jan 9, 2015
20
3
Hi guys, anybody know the code for screen rotation toggle? I have try ROTATE but it doesn't work.
Please tell me if you know, thank you so much :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 85
    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:

    ---------------------
    9
    For Screen Capture :
    SYSRQ

    :) tested and approved
    8
    ON / OFF quick panel settings / notifications:
    Code:
    QPANEL_ON_OFF

    One press ON, second press OFF

    EDIT: I meant one press to pull down, second press to pull up, better explained.
    4
    Hey community. I just figured out how...

    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/

    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.
    3
    It just deleted my generic.kl file :) Failed to rename and original is gone. Could someone upload theirs? Thanks
    There you go. Just rename the file. Already mapped to CAMERA.