On Android 9 I'd like to remap long press power button for showing a toast message instead of Power menu.
Until Android 8 I could do that using intent android.intent.action.CLOSE_SYSTEM_DIALOGS but this is not working anymore on Android 9.
Checking in the forum (Detect power button long press) I've found that I should get the same result using Accessibility Service.
Could you please tell me how I should write the intent in this case?
Thanks!