Script for "overlay" and "notification" settings

ÖC
Ömercan C.
Spital STS AG

Hello 

I am looking for a way to enable app permission for the app "Ascom Unite Axess" automatically (please check printscreen)

Does anybody know a way to enable this notifications with a script?

Soti version: 15.4.2.1020

Soti agent: 15.1.3.1071

Android version: 10

Device: Ascom Myco 3

3 years ago
Android Scripting
ANSWERS
S
SSMOD@SOTI
3 years ago

Hello Omercan, 

Thank you for requesting a response from SOTI Support Staff.  

To automatically grant permission to app “Ascom Unite Axess” you could try an afw_set_permission_grant_state script:

To allow permissions, use this:
Example: afw_set_permission_grant_state org.videlolan.vlc android.permission.VIBRATE enable

I suggest attempting the "afw_set_permission_policy grant" command and see if the behavior changes.

For reference, you can check

https://soti.net/mc/help/v15.4/en/scriptcmds/reference/androidplus_enterprise_do.html

https://discussions.soti.net/thread/automated-grant-permisson

Let us know if it worked for you.

Regards,  

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net

ÖC
Ömercan C.
3 years ago

Hello SSMOD@SOTI,

I have tried as you said but it didn't work.

afw_set_permission_grant_state com.ascom.unite.axess android.permission.ACCESS_NOTIFICATION_POLICY enable

afw_set_permission_grant_state com.ascom.unite.axess android.permission.SYSTEM_ALERT_WINDOW enable

Best regards,

Ömercan

R
RSMOD@SOTI
3 years ago
R
RSMOD@SOTI
3 years ago

Hi Ömercan,

Since my reply to your question, there has not been any reply from you.

It looks the issue has been resolved on your side.

So I will close this case.

If the issue is not resolved yet, please open another case.

Thank you,