Querying a device administrator's isActivePasswordSufficient value on Android
<p>My app isn't a device administrator, but it knows about another app which is a device administrator. These two apps are friends, but not so close as to share a uid or signatures. I don't want my app to be a device administrator because I don't want this app to confront uses with that complexity (which is handled in the other app, which is a device administrator).</p>

<p>I'd like to know how my app can learn isActivePasswordSufficient.  Is that possible?</p>

<p>My app can easily find the other device administrator and call its isActivePasswordSufficient.  My app can also fetch getSystemService(Context.DEVICE_POLICY_SERVICE). In both cases, isActivePasswordSufficient throws an exception, presumably because my app isn't a device administrator (and can't load USES_POLICY_LIMIT_PASSWORD any other way).</p>

<p>In the end, I implemented a content provider in my device administrator app that returns isActivePasswordSufficient. I could have used any of the various IPC mechanisms but content provider is easy. It's fine, but is there a better way?</p>
