Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

I added disable-camera on uses-policies in device_admin.xml file in order to use disable camera function for HMDM agent app.

There are two stituation:

1. If I update from older version to the newer ones, it dont specify for uses-policy for disable-camera. And the function is not working

2. If I reinstall the newer version, it works properly

I don't know how to fix the stituation 1, but i need to update app OTA, not reinstalling it

by (180 points)

1 Answer

0 votes
It looks like you are using the Device Administrator function, which is deprecated in Android. https://developers.google.com/android/work/device-admin-deprecation

Headwind MDM, when installed as a device owner (https://h-mdm.com/quick-start/#device), shouldn't have this problem.

However if you would like to proceed with Device Administrator, I believe you need to display the Administrator permissions request after the update. I suspect that the new permission should be explicitly granted by a user.
by (37.6k points)
...