Reduce the burden of the power button.
Call the original factory's Shutdown/Reboot interface.
Use the "BIND ACCESSIBILITY SERVICE" permission to open the default power menu of the device.
Call the original factory's Shutdown/Reboot interface.
Use the "BIND ACCESSIBILITY SERVICE" permission to open the default power menu of the device.