Possible alternative - an NFC sticker that activates when pressed, and an accompanying app https://air-button.com/product/air-button-customizable-nfc-button-for-android-phones/ I've not used it, just happened to remember their kickstarter from back in the day.