BUTTON MAPPER

Advanced Setup

Windows Setup

*** NOTE: Android 12 users must use manual commands. Windows setup is not working with Android 12

Use this application on your Windows PC or laptop to allow Button Mapper to remap the Bixby Button or Active Edge, add more actions, simulate keycodes or enable screen off actions without root.

Some LG phones may require installing the LG Universal Mobile driver on your PC and rebooting

Requires USB debugging enabled on your Android phone, tablet or Android TV device

Simply download, unzip, and run ButtonMapperSetup.exe

Windows


ButtonMapperSetup.zip
2.6 MB

Download

Manual Setup (and more commands and features)

If you use Mac or Linux, or want to do this manually, here are the commands. Add an "-h" at the end of any of the scripts for more options.

You will need adb to run these commands, it can be downloaded here: SDK Platform Tools
Download and unzip the platform tools. Open a terminal or command prompt and go to the directory where you downloaded the platform tools, then run one or more of the commands below.

Remap Bixby, Active Edge, Assistant button or Motion Sense (one-time setup)
Android 12 ./adb shell sh /sdcard/Android/data/flar2.homebutton/logcat.sh
Earlier Android versions ./adb shell sh /data/data/flar2.homebutton/logcat.sh

Simulate keycodes (must run this command each time you reboot your phone)
Android 12 ./adb shell sh /sdcard/Android/data/flar2.homebutton/keycode.sh
Earlier Android versions ./adb shell sh /data/data/flar2.homebutton/keycode.sh

Screen off actions (works on most, but not all phones. You must run this command each time you reboot your phone)
Android 12 ./adb shell sh /sdcard/Android/data/flar2.homebutton/keyevent.sh
Earlier Android versions ./adb shell sh /data/data/flar2.homebutton/keyevent.sh

Long press actions with screen off (one-time command, only for Android versions 8 to 10)
./adb shell pm grant flar2.homebutton android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER

Unlock more actions
./adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS

For TVs without accessibility settings, allow Button Mapper to start accessibility service
./adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS

Disable Bixby
./adb shell pm disable-user com.samsung.android.bixby.agent

ADB over WiFi (useful for Android TV)
./adb connect [YOUR TV's IP ADDRESS]:5555


NOTE: Xiaomi users may need to enable an additional setting in Developer Options. It's called "USB debugging (Security settings)" with the subheading "Allow granting permissions and simulating input via USB debugging"



Download Button Mapper on the Play Store

Get it on Google Play