开发者

Android PowerManagerService code to handle Screen standby or Auto lock

开发者 https://www.devze.com 2023-03-06 13:51 出处:网络
In Android Source code Android\\mydroid\\frameworks\\base\\services\\java\\com\\android\\server\\开发者_开发问答 PowerManagerService.java which method I need to comment or change so that my Screen nev

In Android Source code Android\mydroid\frameworks\base\services\java\com\android\server\开发者_开发问答 PowerManagerService.java which method I need to comment or change so that my Screen never goes in standby mode or gets Auto lock.

I tried creating a service which captures boot complete intent. Tried capturing in broadcast receiver still the lock screen comes and goes.

Do let me know how I can disable screen auto lock and standby after system bootup.

I will make changes in the java file and again build the source code.

Thanks in advance.


There is a method called doKeyguard which is called from systemReady in PhoneWindowManager. You can give that flow a try.

0

精彩评论

暂无评论...
验证码 换一张
取 消