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 the LG Universal Mobile driver
Requires USB debugging enabled on your Android phone, tablet or Android TV device
Simply download, unzip, and run ButtonMapperSetup.exe
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)
./adb shell sh /data/data/flar2.homebutton/logcat.sh
Simulate keycodes (must run this command each time you reboot your phone)
./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)
./adb shell sh /data/data/flar2.homebutton/keyevent.sh
Long press actions with screen off (one-time command)
./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
./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"