Grant permission automatic and silent

Hi, does anyone know if it's possible to grant

  • ACTION_MANAGE_OVERLAY_PERMISSION (which is i think not a permission but a setting: "Settings.ACTION_MANAGE_OVERLAY_PERMISSION")
  • Accessibility

to a specified app (package name) via script?

I don't have an idea how to do this maybe via writeprivateprofstring or sendintent.

Android 10/11 and Mobicontrol 15.4.1

3 years ago
Android Scripting
ANSWERS
MD
Matt Dermody Diamond Contributor
3 years ago
RS
Rafael Schäfer
3 years ago

Samsung and Nokia, so no Enterprise devices otherwise it would be relative easy. But thanks for showing up.

Even the permission you showed up has a different name, so tried with (afw_set_permission_grant_state PackageNameOfMyApp android.permission.SYSTEM_ALERT_WINDOW allow) that but same result.

D
DRMOD@SOTI
3 years ago

Hi Rafael Schäfer,

Thanks for your post.

I can see that there is a feature request in progress with a similar information. It would be a good idea if you raise a ticket with us so we can examinate and create a new feature request to fully comprehend your requirements.

You can grant permissions to MobiControl but for another third-party apps you need to contact the OEM or the app developer.

Please contact Samsung and Nokia and check if the “OEM config” have the options that you require.

Thank you for you time and please let us know any updates.

D
DRMOD@SOTI
3 years ago

Hi Rafael Schäfer,
Following up this post, I was wondering if you have any updates?

Kind Regards

RS
Rafael Schäfer
3 years ago

Not really. The app developers are just requesting these permissions on the phone actively, so you have to grant them manually.

I mean it would be nice if there's a automated/scripted way but for now it's ok.