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

Solved Locked
S
Steve
Zollner Elektronik AG

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:

5 years ago
Android
ANSWERS
J
JVMOD@SOTI
5 years ago

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,

Solution
D
DDMOD@SOTI
5 years ago

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,

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

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. 

S
Steve
5 years ago

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! 

S
Steve
5 years ago

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!

RC
Raymond Chan Diamond Contributor
5 years ago

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