Android LL disable screen lock and suspend

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Android LL disable screen lock and suspend

跳至解决方案
5,866 次查看
kamilbystryk
Contributor III

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?

标签 (2)
1 解答
4,642 次查看
gary_bisson
Senior Contributor III

Hi Kamil,

If you want to turn off the lock screen you can copy this overlay:

android_device_boundary/defaults.xml at boundary-imx-l5.0.0_1.0.0-ga · boundarydevices/android_devic...

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

在原帖中查看解决方案

0 项奖励
回复
5 回复数
4,643 次查看
gary_bisson
Senior Contributor III

Hi Kamil,

If you want to turn off the lock screen you can copy this overlay:

android_device_boundary/defaults.xml at boundary-imx-l5.0.0_1.0.0-ga · boundarydevices/android_devic...

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

0 项奖励
回复
4,642 次查看
kamilbystryk
Contributor III

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?

0 项奖励
回复
4,642 次查看
gary_bisson
Senior Contributor III

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

0 项奖励
回复
4,642 次查看
SergioSolis
NXP Employee
NXP Employee

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?

0 项奖励
回复
4,642 次查看
kamilbystryk
Contributor III

Hello Sergio,

Its wall mounted controller with system suplly, so i want to have always active display (with system launcher), without sleep / suspend.

0 项奖励
回复