- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
28 lines
854 B
Java
28 lines
854 B
Java
package androidx.biometric;
|
|
|
|
import android.content.Context;
|
|
import android.content.pm.PackageManager;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* loaded from: classes.dex */
|
|
class PackageUtils {
|
|
private PackageUtils() {
|
|
}
|
|
|
|
public static boolean hasSystemFeatureFingerprint(@Nullable Context context) {
|
|
return (context == null || context.getPackageManager() == null || !Api23Impl.hasSystemFeatureFingerprint(context.getPackageManager())) ? false : true;
|
|
}
|
|
|
|
@RequiresApi(23)
|
|
public static class Api23Impl {
|
|
private Api23Impl() {
|
|
}
|
|
|
|
public static boolean hasSystemFeatureFingerprint(@NonNull PackageManager packageManager) {
|
|
return packageManager.hasSystemFeature("android.hardware.fingerprint");
|
|
}
|
|
}
|
|
}
|