Screen Timeout script

JM
Johnathon Marshall
Saint Elizabeth Healthcare

Good Afternoon!

I used to use the following script to set the screen time out on our android + devices however this doesn't appear to be working for Android 9.0.

Does anyone know if the syntax has changed? I've tried both of the following:

Writesecureprofstring –sys screen_off_timeout 600000

writesecuresetting –sys screen_off_timeout 600000

From what I can tell this should still work.. when I do Watchsetting On I get the following log when I manually change the setting:

Custom log (URI:content://settings/system SETTING:screen_off_timeout VALUE:600000)

Cheers,

Johnathon

6 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
6 years ago

watchsettings is working for you with and Android 9.0 device presumably managed under AE? I haven't been able to use that under AE at all on Zebra devices on 9.0. What manufacturer, server, and agent version combination do you have?

RC
Raymond Chan Diamond Contributor
6 years ago (edited 6 years ago)

The syntax should remain the same.

Have you checked if you have granted the"Modify system settings" permission of your device agent?

MD
Matt Dermody Diamond Contributor
6 years ago (edited 6 years ago)
JM

Sorry for the delayed response. We're not using AE yet but do plan to get there, currently just using Android Plus. 

Manufacturer: Samsung

Model: A705W

Agent Version : 13.7.3.1045

Server Version: 14.3.4.1087

JM

Yes, I have confirmed we have that permission.