开发者

Android PowerManagerService code to handle Screen standby or Auto lock

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜