如何禁用电源按钮?按钮、电源

2023-09-12 23:48:12 作者:流光若逝丶情若殇

是否可以覆盖Android的电源按钮的功能? 我想禁用电源按钮。我的计划是覆盖此按钮,什么也不做的功能({};) 那么我的主要想法是禁用转动屏幕关闭。

我要当有人preSS电源按钮没有什么事情发生。

我怎样才能做到这一点?

解决方案   

是否可以覆盖Android的电源按钮的功能?我想禁用电源按钮。

幸好,这是不可能的,也许除了经由定制固件

Is it possible to override the functionality of the android power button ? I want to 'disable' the power button. My plan is to override the functionality of this button to do nothing ( {}; ) Well my main idea is to disable the turning the screen off.

I want when someone press the power button nothing to happen.

如何通过关闭声音控制的简单按钮来制作任何设备

How can I do this ?

解决方案

Is it possible to override the functionality of the android power button ? I want to 'disable' the power button.

Fortunately, this is not possible, except perhaps via custom firmware.