rotiation mode in lockdown / screen timout

Solved Locked

Hi,

i have 2 problems which i cannot solve. The device i use is a samsung galaxy x cover pro with android 10.

Frist i want to fix the rotation mode to portrait. But every setting and every script doens't work. I set the setting "screen rotation" off in the profile "security in the "settings manager" or sent a skript like:

writeprivateprofstring RcOrientationFix <manufacturer>_<model> <value>

-manufacturer is from android.os.Build.MANUFACTURER("ro.product.manufacturer") and falling back to android.os.Build.BRAND("ro.product.brand") if manufacturer is "unknown" -model is from android.os.Build.MODEL("ro.product.model")

 
-value is one of:

public static final String DIRECTION_CLOCKWISE = "CW";

public static final String DIRECTION_COUNTER_CLOCKWISE = "CCW";

public static final String DIRECTION_COUNTER_NONE = "NONE";

public static final String DIRECTION_UPSIDEDOWN = "UPSIDEDOWN";

UserExample: writeprivateprofstring RcOrientationFix Honeywell_CT60 CW

For screen timeout i need the setting, that timeout in every time is after 30 minutes. I set the setting "screen timeout configure by user" off in the settings manager and the setting screen timeout in "authentification" on 30 Minutes.

Is there anybody who can help me?

Regards!

Edited 5 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
5 years ago

Your  Samsung device has been enrolled in AE-DO mode. So, you should be able to use the following script command to set the screen timeout to 30 minutes:

     writesecuresetting -sys screen_off_timeout 1800000

Solution
RC
Raymond Chan Diamond Contributor
5 years ago (edited 5 years ago)

The script command "writeprivateprofstring RcOrientationFix <manufacturer>_<model> <value>"  is for fixing orientation problem in remote-control session, not for setting orientation in kiosk mode.

What are the active MDM api's reported in the configuration tab of the device agent?   What about the version and build numbers of your device agent?

SL

The agent version: 14.3.3 Build 1038

active MDM API: Samsung MDM 5.7, Samsung Knox 3.3, Work Managed Device, RC1 (1.18.1.100)

SL

I get an error every time:

Custom log (missing ; before statement (UserScript#1)

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

Could you show screenshot or give details on how you sent/ran the script?

SL
Sabrina Langenberg
5 years ago (edited 5 years ago)

i found the misstake. I doesn't edit the script type to legacy.