This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android JB : Never timeout option.

Hi All,

I am porting Android JB on OMAP4 based platform.
I am trying to add support for Never timeout option to screen timeout preference.
The value for never timeout is -1.
With this support, the android screen timeouts in 10 seconds.
I understood, from the PowerManagerService file, the minimum timeout option set is 10 sec.
Now how do I change this behavior.
Is anyone ever tried it?
Changing the minimum timeout value in the PowerMangerService alone will allow this option to work or is there any other work around.
Any inputs??
Thanks in advance.
Regards,
Ramya.
  • Hi Ramya, 

    Do you have any progress by modifying  getScreenOffTimeoutLocked() function in :

    services/java/com/android/server/power/PowerManagerService.java ?

    I Haven't observed if there is an odd behavior if you make a value for never invoking sleep function.

    May sound simple and kind of unpractical, but doesn't the option from the developers options that makes the screen to never sleep useful enough for your purpose?

    Regards Boyko