Android: activate "developer options > stay awake" from source

77 views
Skip to first unread message

Andrew Jones

unread,
Apr 18, 2014, 6:38:16 AM4/18/14
to android...@googlegroups.com
Hi everyone,

After I upload my Android images, I always need to go into "Developer Options" >> "Stay Awake" to stop my device from going to sleep.
We need this option to be activated by default, from the source code.  

Does anybody know how I can do that?
Thanks!!

Andrew

Shaul Yermol

unread,
Apr 19, 2014, 11:45:07 PM4/19/14
to android...@googlegroups.com

Vishveshwar

unread,
Apr 21, 2014, 2:32:45 AM4/21/14
to android...@googlegroups.com


On Sunday, April 20, 2014 9:15:07 AM UTC+5:30, Shaul Yermol wrote:
http://developer.android.com/training/scheduling/wakelock.html

On Friday, April 18, 2014 1:38:16 PM UTC+3, Andrew Jones wrote:
Hi everyone,

After I upload my Android images, I always need to go into "Developer Options" >> "Stay Awake" to stop my device from going to sleep.
We need this option to be activated by default, from the source code.  

You can do this using the product-specific overlays.

See the beaglebone product in the rowboat project for an example:
https://gitorious.org/rowboat/vendor-ti-beaglebone/source/b705da2b820f49988979ff50968586674ab81f5e:overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

-Vishveshwar
Reply all
Reply to author
Forward
0 new messages