I would like to display was always on, regardless of the time set in menu.
I changed "def_screen_off_timeout" in file /frameworks/base/packages/SettingsProvider/res/values/defaults.xml to "-1" value, however nothing has changed.
What should be amended to
- trun off default lock
- display was always on?
解決済! 解決策の投稿を見る。
Hi Kamil,
If you want to turn off the lock screen you can copy this overlay:
As for the timeout, although -1 should be working, you can try adding the following line to that same overlay:
<bool name="def_stay_on_while_plugged_in">true</bool>
Regards,
Gary
Hi Kamil,
If you want to turn off the lock screen you can copy this overlay:
As for the timeout, although -1 should be working, you can try adding the following line to that same overlay:
<bool name="def_stay_on_while_plugged_in">true</bool>
Regards,
Gary
Thaks for answer,
I set as the default no lock setting. I know method of use developer setting "stay awake", but I treat it as only a partial solution - user can disable this option.
I think we can be use this method, however it would require remove setting "stay awake" from "developer settings" menu. You could prompt where is the application of "settings" menu?
Hi Kamil,
Well the same goes with the timeout value, the user can still modify it under the Settings > Display. As for hiding the menu, you have to look under packages/apps/Settings.
For instance, you could disable the developer options menu here, so nobody could change the "Stay Awake" nor enable/disable ADB:
Cross Reference: /packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java
Regards,
Gary
Hello Kamil,
Do you mean you want to keep the screen on all the time?... do you want this to work on an specific app or running on the system?
Hello Sergio,
Its wall mounted controller with system suplly, so i want to have always active display (with system launcher), without sleep / suspend.