Forum Discussion
mhfaruk
10 months agoLevel 2.0: Eclair
Can I allow display over other app and battery optimization permission using amapi?
One of my client's requirements is to forcefully allow the following two of these permissions. Is there any policy in Android management API to do that? I appreciate any help you can provide.
jasonbayton
10 months agoLevel 4.0: Ice Cream Sandwich
Hi mhfaruk
I'm afraid these are what's known as Special Permissions and aren't possible to be set through policy with AMAPI. They will need to be requested through the application needing them on launch, and the end-user will have to enable them.
There are exceptions, for example Samsung devices have an API for battery optimisation through their OEMConfig application, Knox Service Plugin. Other OEMs do also, so depending on what you're using, you may be able to find a custom API that way.
Another alternative would be to work with the OEM directly if the application in scope is something you've developed yourself. The OEM would be able to offer permission allowlisting on these specific permissions.
Hope that helps.
Related Content
- 2 years ago
- 2 years ago