MobileNews

Google details ‘Biometric API’ for Android which enables Pixel 4’s face unlock

Biometric authentication has been a part of Android for a few years at this point, but times are changing and so is the way we log into our phones. Face unlock is the next big thing, and Google is urging developers to add support for the “Biometric API” for Android which makes biometrics better for everyone.

In a blog post targeted at developers, Google explains why it shifted over to this new API as well as detailing how developers can shift over to it.

Back in Android Marshmallow, Google introduced support for fingerprint sensors with the “FingerprintManager” class, but it was a very basic solution. Developers had to create their own UI for fingerprints and it  supported fingerprints. Things started changing in Android Pie when “BiometricPrompt” was added. It delivered a common design that developers could use which also worked across more types of biometric authentication.

Now, with Android 10, Google is making further changes with the “Biometric API.” The company explains:

With the launch of  (), developers can now use the part of the AndroidX Biometric Library for all their on-device user authentication needs.

…in Android 10, the team introduced some pivotal features to turn the biometric API into a one-stop-shop for in-app user authentication. BiometricManager enables developers to check whether a device supports biometric authentication. Furthermore, the setDeviceCredentialAllowed() method was added to allow developers the option to use a device’s PIN/pattern/password instead of biometric credentials, if it makes sense for their app.

The team has now packaged every biometric feature you get in  into the androidx.biometric Gradle dependency so that a single, consistent, interface is available all the way back to  ().

Going forward, Google wants all apps to be using this new API and it’s also heavily relying on their updates for its new phone. The Pixel 4’s new face unlock system actually requires apps to support these new APIs, so clearly there’s a reason for Google to push faster adoption. However, Google isn’t forcing developers into the new biometric library. Those who do upgrade, though, will be able to have a consistent interface that works all the way back to Marshmallow.

If you’re a developer looking to support these new APIs, Google’s blog post offers more details on how to implement it.


Check out the latest Samsung phones at great prices from Gizmofashion – our recommended retail partner.


Author: Ben Schoon
Source: 9TO5Google

Related posts
DefenseNews

Navy’s next amphibious ship named for Marines’ Helmand province fight

DefenseNews

Navy pauses T-45C Goshawk fleet operations after ‘engine malfunction’

DefenseNews

V-22 Osprey could see second life, with new drive system, wings in 2050s

Cleantech & EV'sNews

Acura ZDX S-Line first drive: A smooth, comfy ride, but it doesn't scream 'performance EV' [Video]

Sign up for our Newsletter and
stay informed!