Jasonangel

V1

2022/03/31阅读:32主题:默认主题

Android 系统指纹识别架构

Android 系统架构

因此,指纹识别模块的代码也遍布每一层,如下目录基于 Android O 版本,其他版本差别不大。

Fingerprint Manager

/frameworks/base/core/java/android/hardware/fingerprint/IFingerprintClientActiveCallback.aidl
/frameworks/base/core/java/android/hardware/fingerprint/IFingerprintService.aidl
/frameworks/base/core/java/android/hardware/fingerprint/FingerprintManager.java
/frameworks/base/core/java/android/hardware/fingerprint/Fingerprint.java
/frameworks/base/core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl
/frameworks/base/core/java/android/hardware/fingerprint/Fingerprint.aidl

Fingerprint Service

/frameworks/base/services/core/java/com/android/server/fingerprint/FingerprintService.java
/frameworks/base/services/core/java/com/android/server/fingerprint/FingerprintsUserState.java
/frameworks/base/services/core/java/com/android/server/fingerprint/FingerprintUtils.java

JNI层

/frameworks/base/services/core/jni/com_android_server_fingerprint_FingerprintService.cpp

Fingerprint Native

/system/core/fingerprintd/fingerprintd.cpp
/system/core/fingerprintd/FingerprintDaemonProxy.cpp
/system/core/fingerprintd/FingerprintDaemonProxy.h
/system/core/fingerprintd/IFingerprintDaemon.cpp
/system/core/fingerprintd/IFingerprintDaemon.h
/system/core/fingerprintd/IFingerprintDaemonCallback.cpp
/system/core/fingerprintd/IFingerprintDaemonCallback.h

Fingerprint HAL

/hardware/libhardware/include/hardware/fingerprint.h
/hardware/libhardware/modules/fingerprint/Android.mk
/hardware/libhardware/modules/fingerprint/fingerprint.c
/vendor/....    由 IC 供应商提供

Linux Kernel

/kernel/drivers/input/fingerprint/....  由 IC 供应商提供
/kernel/arch/arm(64)/boot/dts/...   设备树节点

指纹识别芯片供应商

  1. 高通
  2. 瑞典FPC
  3. 汇顶科技(GOODiX)
  4. 思立微
  5. AuthenTec
  6. 迈瑞微MicroArray
  7. Synaptics(新思)
  8. 神盾光学
  9. ChipOne集创北方
  10. 信炜科技

大家一般用汇顶的就可以,比如GF316M、GF318M

分类:

移动端开发

标签:

Android

作者介绍

Jasonangel
V1