我刚刚按照http://www.androidofficer.com/2016/06/g900vvru2dpd1-android-601-marshmallow.html上列出的手动指南将Verizion Samsung Galaxy S5 (SM-G900V) 更新到G900VVRU2DPD1版本。
当我运行下面的代码时,isHardwareDetected()返回“false”。我原本希望它会返回“true”。
我查找过谷歌,但没有找到关于S5指纹阅读器在 Marshmallow 下是否受支持的信息。是否有人了解S5的指纹阅读器是否受支持?
FingerprintManager manager = (FingerprintManager) getSystemService(FINGERPRINT_SERVICE);
if (manager != null) {
if (ActivityCompat.checkSelfPermission(this, permission.USE_FINGERPRINT) !=
PackageManager.PERMISSION_GRANTED) {
retVal.append(INDENT).append("Fingerprint permission was not granted")
.append(EOL);
} else {
retVal.append(INDENT).append("Fingerprint hardware detected: ")
.append(manager.isHardwareDetected()).append(EOL);
retVal.append(INDENT).append("Has Enrolled Fingerprint(s): ")
.append(manager.hasEnrolledFingerprints()).append(EOL);
}
} else {
retVal.append(INDENT).append("no FingerprintManager available").append(EOL);
}