As of February 28, Bixby was updated on the Galaxy S8, S9 and Galaxy Note8 and Note9 devices running on Samsung’s One UI (Android 9) allowing the dedicated Bixby button to be remapped to a custom action or app. You still cant totally disable Bixby, but you can at least set Bixby to a double press so that it wont be as easy to accidentally trigger.
You can then set the single-press to open any app or set a custom action that you wish such as calling a contact or toggling Wi-Fi. It was discovered, however, that Samsung blacklisted certain apps, specifically competing voice assistants, from being mapped to the Bixby key. This included Amazon Alexa, Cortana, and Google Assistant.
Within a day, XDA-Developers managed to come up with a solution that would let you remap the key to work with Google Assistant and Cortana, circumventing Samsungs blacklist method. Amazon Alexa doesnt work with this method. A script was exported from an automation app called Tasker and can be side-loaded as an APK.
All you need to do is side-load the script APK and select it as the Bixby single-press action. This will prompt a voice command and in the Complete action using screen, choose the Google Assistant or Cortana if you wish.
Theres another method that involves setting a Quick Command manually to trigger an open assistant command. You can try this or the above methods by checking out XDA-Developers write up at the Source link.