1. Home
  2. SureMDM
  3. How to grant run-time permissions to SureMDM agent on Android 10 devices?
  1. Home
  2. Android Management
  3. How to grant run-time permissions to SureMDM agent on Android 10 devices?

How to grant run-time permissions to SureMDM agent on Android 10 devices?

KB ID: 42G2011347
Views: 813
Updated: August 2021

When you are enrolling a device to SureMDM, the app on the device will ask to grant some of the permissions such as runtime permissions, system permission, Remote, etc. Upon granting these, there should not be any prompt asking for the same again.

However, lately, with some OEM devices running with Android 10 OS, it is noticed that even though the runtime permissions are granted for the SureMDM on the device, permissions for the app are still not granted.  

The work-around for the same would be to install/upgrade the Same SureMDM agent app version on the device.

Below are the steps to achieve this.

1. Create a run-script job with the below content

!#Suremdm
UsePrivateDownloadFolder(true)

2. Create a SureMDM Agent upgrade job with the same SureMDM Agent version .apk or the latest version .apk. 

3. Create another run-script job with the below content

!#Suremdm
UsePrivateDownloadFolder(false)

4. Once done, apply the jobs to the device in the same sequence or create a composite job with the above jobs in the same sequence and apply it to the device. 

Admin can check the SureMDM Agent permission list option in the dynamic jobs section to verify if all the permissions are updated. 

Note: Above script combination works only when the device is running the SureMDM agent v20.01 and above.

To register for a free trial, click here.
If you need further assistance, please submit a ticket here 

Related Articles