Selfmade App - How can I set the MobiControl permission in this case?

Selfmade App - How can I set the MobiControl permission in this case?

Hey there!

I'm not sure that this is the right subject for here... Our software department is currently developing an app that displays specific information about our CT60 devices. We also implemented a menu item that allows the user to switch the flashlight on / off and change the screen brightness.

Problem:

The app behaves completely normal after the start. When I switch to the page with the configuration possibilities the app trys to check the permissions. All permissions are set. The only problem I have is the "Modify system settings" of MobiControl permission.

I don't know if its only a permission problem of the Agent or if I grant permissions to the new application.

 

Screenshot:

6 Answers

Order By:   Standard | Newest | Votes
DDMOD@SOTI | posted this 02 July 2020

Hi Steve,

 

Thanks for the post!

Can you please raise a support case(click here) or call SOTI Support team(click here) to assist on this issue as this needs further troubleshooting?

 

Regards,

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

  • 0
  • 0
Raymond Chan | posted this 03 July 2020

What is your device firmwrae version?

What about the version and build numbers of your device agent?

 

From your description, I can't be sure if the problem of your own apps is related to the "Modify system settings" permission of the MobiControl device agent.   I don't think it's likely.   However,  I always strongly recommend all my customers to have the "Modify system settings" permission of MobiControl device agent granted right after device enrollment in any case. 

  • 1
  • 0
Steve | posted this 06 July 2020

Hi Raymond!

Thanks for the reply.

Device agent: 14.1.5.1059

OEM: 86.00.15-(0119) - (We currently use android 8.1 because of internal company conditions. Upgrade to 9.x soon...)

 

I already granted the permission WRITE_SETTINGS in the provisioning tasks from the beginning of using SOTI. Hmm... Do you know an other solution to fix it?

Thanks! 

  • 0
  • 0
JVMOD@SOTI | posted this 06 July 2020

Hello Steve,

 

Thank you for your response, please try following script -

request_appops_permission android.permission.WRITE_SETTINGS

 

Let me know if this works for you.

 

Regards,

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

  • 2
  • 0
Steve | posted this 07 July 2020

Thanks a lot! It's working.

One more question... I've never used an additional script in an installation package. 

If I'm right I can use this command as post script after the installation of the app - or? The key question is, which file extension must I use? Is ".cmd" right...? Sounds too much like windows :-D

Thanks for helping me!

  • 0
  • 0
Raymond Chan | posted this 07 July 2020

You are right. .cmd is the usual file extnesion I use for script files.

  • 1
  • 0

Give us your feedback
Give us your feedback
Feedback