Friday, April 29, 2011

Re: [android-developers] Getting notified when a device administrator is enabled/disabled

I don't understand how you can require some device admin.  If it isn't your own admin, how can you trust that it is actually doing what you want in any way.

If you want to have some controls provided by a device admin, you should write one and it can implement whatever communication with your apps that you want.

On Fri, Apr 29, 2011 at 9:24 PM, Rick Alther <rick.alther@gmail.com> wrote:
Thanks for the quick response Diane.  No, I am not writing an Admin, nor do I want to.  However, I am writing some security tools for our corporation and we require a Device Admin on the device to enforce our security policy.  So, one of the things I'm doing is looking to see that they have a Device Admin installed and active (easy enough), but since the user can turn it off anytime they want, I'd like to be notified when it becomes disabled (and reenabled again).  I don't intend to do anything more with the info and I never expected to be able to affect an Admin in any way.  It's more of a notification/awareness thing.

I can set an alarm and query the list of active device admins periodically, but polling seems such a waste when a simple broadcast would suffice.

Thanks,
- Rick Alther

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Dianne Hackborn
Android framework engineer
hackbod@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate