-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
关于OPPO R9指纹 #12
Comments
@QuincySx |
我现在是这样做的
|
根据Build.MODEL来判断的话,纯在一定的稳定性,有些设备不一定能从这里区分出来。 |
在个别的非魅族的设备系统上,能获得实例,获取不了录入指纹个数,其实也就可以是说不支持呗 |
但是如果真的是魅族手机没录入指纹,这样就也会被误判为不支持了,所以我觉得需要去问下魅族那边的相关技术人员,或者说直接在魅族的指纹SDK调用部分,识别一下魅族的机型吧。 |
因为,“不支持指纹”和“支持指纹但是没录入指纹”这两种状态,是可以用于不同的业务情景的。 |
在调用魅族指纹SDK前判断一下 品牌 这个靠谱 |
好,那就改为不限制版本号,直接调用,去到魅族的就识别下魅族的设备。 |
FingerprintManagerCompat.class
static {
final int version = Build.VERSION.SDK_INT;
if (version >= 23) {
IMPL = new Api23FingerprintManagerCompatImpl();
} else {
IMPL = new LegacyFingerprintManagerCompatImpl();
}
}
这个类还需要改一改,因为OPPO R9 是Android 5.1,可能需要单独判断一下
The text was updated successfully, but these errors were encountered: