android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

Android Enterprise app not detecting any fingerprints #27

Closed codingjeremy closed 4 years ago

codingjeremy commented 5 years ago

Issue by ruscles Monday Jul 03, 2017 at 14:18 GMT Originally opened as https://github.com/googlesamples/android-FingerprintDialog/issues/48


Hi,

I have an app that is developed to run inside the Android Enterprise container (for corporate devices). The fingerprint authentication from this sample works perfectly when the app is installed outside the enterprise container. However, when the app is running inside the container, it is unable to detect any fingerprints that the user registered outside the container (on the normal device).

It fails at this piece (line 137 of MainActivity):

if (!fingerprintManager.hasEnrolledFingerprints()) {
            // User hasn't enrolled any fingerprints to authenticate with
            Toast.makeText(this, "Go to 'Settings -> Security -> Fingerprint' and register at least one fingerprint", Toast.LENGTH_LONG).show();
            return;
        }

Is there a way to detect registered fingerprints outside the Enterprise container from an app that is running inside the container? I have tested this on an S7, S8, and Pixel. Thanks!

sam-devstudio commented 4 years ago

@codingjeremy Android enterprise have different setting for Biometric and you have to enroll separate Biometrics there. The settings depend on vendor and device. This might help you https://support.google.com/work/android/answer/7029958?hl=en