如何禁用电源按钮? [英] How to disable power button?

查看:186
本文介绍了如何禁用电源按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以覆盖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.

这篇关于如何禁用电源按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆