So we have that somewhat useless Bixby button on Galaxy phones. Now I am not against Bixby, quite the opposite. But I prefer to summon her via voice and use the button for something I commonly need to happen fast - turn on the flashlight.
The reason for writing this tutorial is that it was not very obvious, how to make the button turn the flashlight on from the lockscreen as well.
Download bxactions app: https://play.google.com/store/apps/details?id=com.jamworks.bxactions&hl=en&gl=US
After downloading it, enable developer mode on your phone and connect it to PC
Open terminal, type
adb devicesand check if your device is connected/confirm the connection on the phone
Grant the app the following permissions (it won’t work on lock screen without them):
# adb shell pm grant com.jamworks.bxactions android.permission.READ_LOGS # adb shell pm grant com.jamworks.bxactions android.permission.WRITE_SECURE_SETTINGS
Force close bxactions or restart the phone
Open bxactions and go through its usual setup process
Set the Bixby button action to flashlight
This article is part of the series Galaxy phone customization