I have some problems whit the Samsung S5 and Huawei M2.
My Huawei has not API 23 but my S5 has Android 6.0 and fingerPrint.
public static boolean checkHaveFingerHardware(Context ctx) {
    FingerprintManager fingerprintManager;
    if (Build.VERSION.SDK_INT < Global.API23) {
        AppLogger.w("API < 23");
        return false;
    } else {
        fingerprintManager = (FingerprintManager) ctx.getSystemService(Service.FINGERPRINT_SERVICE);
    }
    if (!fingerprintManager.isHardwareDetected()) {
        AppLogger.w("Not FingerPrint");
        return false;
    }
    return true;
}
 
     
     
    