Android: Detect whether device can be unlocked with fingerprint
<p>I have an app that uses fingerprint-authentication. As an extra security-measure I'd like to detect whether the fingerprint is used to unlock the device. I tried retrieving the lock-mode in the following way:</p>

<pre><code>long mode = android.provider.Settings.Secure.getLong(contentResolver, PASSWORD_TYPE_KEY,
            DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
</code></pre>

<p>But according to this post <a href="https://stackoverflow.com/questions/7768879/check-whether-lock-was-enabled-or-not">check whether lock was enabled or not</a> the results may be different.</p>

<p>Is there a way to determine that fingerprint is used to unlock the device?</p>