Give "device administrator" permission to Android app that don't request

1.2k Views Asked by At

How to make any Android app require Device administrator permission?

Reason: I want to give WhatsApp "Device admin" permission; So that my organization that manages the device cannot delete it.

Any thoughts?

1

There are 1 best solutions below

1
dgp On BEST ANSWER

This is not possible.

A device administrator app need to implement an DeviceAdminReceiver with a specific Manifest and declare admin policies on a specific xml file.

In other words, only an app designed to be device admin can have device admin permission. Which is not the case of WhatsApp.