Screen Timeout script

Screen Timeout script

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

5 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 06 August 2019

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?

 

  • 0
  • 0
Raymond Chan | posted this 07 August 2019

The syntax should remain the same.

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

 

  • 0
  • 0
Matt Dermody | posted this 07 August 2019

Good point RC,

 

Johnathan, here are some recent posts discussing the state of that permission:

 

https://discussions.soti.net/thread/how-to-accept-write-settings-permission-programatically/

https://discussions.soti.net/thread/questions-for-aedo-device/

  • 0
  • 0
Johnathon Marshall | posted this 08 August 2019

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

  • 0
  • 0
Johnathon Marshall | posted this 08 August 2019

Yes, I have confirmed we have that permission.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback