Skip to content

Commit 11c8fa7

Browse files
author
bo.li
committed
[hardware][fingerprint][add bl229x]
Change-Id: I7e355e98763b9427cfd5900f71061beb710ad046
1 parent 6606e34 commit 11c8fa7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libhardware/hardware.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,11 @@ int hw_get_module_by_class(const char *class_id, const char *inst,
192192
strlcpy(prop, "default", PATH_MAX);
193193
if(strcmp(name, "fingerprint") == 0)
194194
{
195-
if(access("/dev/madev0", R_OK) == 0)
196-
strlcpy(prop, "afs", PATH_MAX);
195+
if(access("/dev/madev0", R_OK) == 0){
196+
strlcpy(prop, "afs", PATH_MAX);
197+
}else if(access("/dev/bl229x", R_OK) == 0) {
198+
strlcpy(prop, "btl", PATH_MAX);
199+
}
197200
}
198201
ALOGE("hw_get_module_by_class name:%s, prop: %s",name,prop);
199202

0 commit comments

Comments
 (0)