[android-security-discuss] Re: How to disable the installation of device administrator application? Gersprenz Mon Mar 12 06:01:45 2012
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/app/admin/DevicePolicyManager.java#122 Line 118 ff -> Return true if the given administrator component is currently active (enabled) in the system. Am Sonntag, 11. März 2012 05:14:09 UTC+1 schrieb perumal316: > > Hi Gersprenz, > > Yes, that sounds like a good idea. But is there any API to monitor whether > a admin app loose the admin status? If I am not mistaken, we can check > whether an admin app has been enabled as device admin but it is for that > app itself. Not sure whether this check can be done for another device > admin app. > > Any idea, how this can be done? > > Thanks and Regards, > Perumal > > On Friday, March 9, 2012 9:10:30 PM UTC+8, Gersprenz wrote: >> >> Hi, >> >> you can develop a second administration application to take care about >> the first one. If then the first administrator application loose the >> administrator status it's up to you to reset the device via the second >> administrator app, for example and vice versa. >> >> cheers, Gersprenz >> >> Am Freitag, 9. März 2012 11:45:47 UTC+1 schrieb perumal316: >>> >>> Hi All, >>> >>> We can create device administrator application which supposedly have >>> escalated privileges to enforce certain policies like password quality, >>> device encryption etc. >>> >>> See: >>> http://developer.android.com/guide/topics/admin/device-admin.html >>> >>> But for example the device is provisioned the first time by the >>> administrator (administrator install the app for user) and the device is >>> passed to the user, it can be easily disabled (Under Settings -> Security >>> -> Device Administrator) or even uninstalled. >>> >>> Is there any way this can be prevented? Like a password is required to >>> disable the device administrator? >>> >>> Can this be done? Is there any other way? >>> >>> Thanks In Advance, >>> Perumal >>> >> -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-security-discuss/-/6Z3SlaDjU_cJ. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-security-discuss?hl=en.