is there any way to ask password on deactivating a device admin from android device or else to hide or to protect app from un-checking in device administrator.
What you are asking for is not possible. It would actually be a problem if applications could protect themselves from being uninstalled. Just think about a malware application that gets installed and than you can't get rid of it.
来源:https://stackoverflow.com/questions/15898971/android-ask-password-on-disabling-app-from-device-admin