[Xiaomi Redmi Note 3 [Snapdragon] ROMs, Kernels, Re] alex9yust:
unofficial RR 6.0.0 https://t.me/RR_6_kenzo

The biggest thing I managed to do on OREO for GOODIX

11-13 12:40:23.971 582 615 D FingerGoodix: server,NOTIFY_CALLBACK

11-13 12:40:23.971 582 615 D FingerGoodix: fpcode, GxFpDevice::notify(), fingerid = 1957747793

11-13 12:40:23.971 582 615 D FingerGoodix: fpcode, GxFpDevice::notify(), msgType=1, ext1=0, ext2=0

11-13 12:40:24.045 582 582 D FingerGoodix: server,NOTIFY_CALLBACK

11-13 12:40:24.047 582 582 D FingerGoodix: fpcode, GxFpDevice::notify(), fingerid = 1957747793

11-13 12:40:24.047 582 582 D FingerGoodix: fpcode, GxFpDevice::notify(), msgType=17, ext1=16, ext2=0

11-13 12:40:24.047 582 582 D FingerGoodix: fpcode, GxFpDevice::notify(), register, arg = 10

11-13 12:40:24.047 582 582 D FingerGoodix: fpcode, register progress increase 1

11-13 12:40:24.047 582 582 D FingerGoodix: fpcode, send_fp_scan_on(3, 1957747793, 0, 10, 0 ...)

11-13 12:40:24.047 582 2752 D FingerGoodix: fpcode, recv_fp_scan_data(), received

11-13 12:40:24.047 582 2752 D FingerGoodix: fpcode, recv_fp_scan_data(), result:{action=3, msg_type=3, custom_fp_id=1957747793, gx_fp_id=0, arg1=10

11-13 12:40:24.047 582 2752 D FingerGoodix: got finger 0

11-13 12:40:24.048 582 2752 D FingerGoodix: fpcode, got gx_finger 0, verifyScore=10

11-13 12:40:24.048 582 2752 D FingerGoodix: fpcode, listener_send_notice(0x7a91a70280), listener state: 1

11-13 12:40:24.048 582 2752 D FingerGoodix: notify acquired message:0

11-13 12:40:24.048 582 2752 E DaemonProxy: onAcquired(0) hncb

11-13 12:40:24.048 582 2752 E IFingerprintDaemonCallback: DaemonCallback onAcquired

11-13 12:40:24.048 582 2752 D FingerGoodix: fpcode, listener_send_notice, notified FINGERPRINT_ACQUIRED_GOOD, fid:0

11-13 12:40:24.048 582 2752 E DaemonProxy: onEnrollResult(fid=0, gid=0, rem=10)

The libraries of a goodix are called, the finger is scanned 11 times, but the callback does not work.

Next I'll try to tell how I did it on the example of the FPC scanner. With it it is easier, because there is a working variant with what it is possible to compare. Yes, and I apologize for my bad English.

biometrics-2.0-kenzo https://drive.google.com/file/d/1o3_4epHENb1wUpO7sIK_LpxV8nQ-7xao/view

diff12.patch with my changes for aosp 8.0 https://drive.google.com/file/d/1n3KE2RPB-9tAoKdjrjswCWMp1R2c5JAE/view

1. biometrics-2.0.zip is unzip to device.

2. from device I deleted fingerprint (if it exists)

3. in device.mk instead of what was there for # Fingerprint

# Fingerprint
PRODUCT_PACKAGES + = \
fingerprintd \
android.hardware.biometrics.fingerprint@2.0-service-kenzo \
fingerprint.wrapper.msm8952

4. the call to the gx_fpd service from init.target.rc moved to biometrics-2.0 ... rc, and fingerprintd is called there. remove from init.target.rc gx_fpd service

5. sepolicy rules to accurately be sure, may not need to be touched. although for biometrics-2.0 -... kenzo is probably needed.

further log, as this does not work with the FPS scanner

1-13 10:36:36.384 686 686 E android.hardware.biometrics.fingerprint@2.0-service: BIOMETRICS-2.0-kenzo enroll.

11-13 10:36:36.384 686 686 E FingerprintHal: fingerprint_enroll

11-13 10:36:36.384 686 686 E : Daemon enroll

11-13 10:36:36.385 687 687 E : Daemon onTransact 3

11-13 10:36:36.385 687 687 E : Daemon checkPermission

11-13 10:36:36.385 687 687 E fingerprintd: enroll(gid=0, timeout=60)

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: fpc_enroll

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->challenge 17859032535833436819

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->authenticator_id 0

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->authenticator_type 16777216

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->timestamp 5252042689955758080

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->user_id 17266609339145564952

11-13 10:36:36.385 687 687 D fpc_fingerprint_hal: hat->version 0

11-13 10:36:36.385 687 687 I fpc_fingerprint_hal: fpc_worker_set_state_locked worker_state_t = 0

11-13 10:36:36.396 687 1497 I fpc_fingerprint_hal: do_navigation end -

11-13 10:36:36.401 687 1497 D fpc_fingerprint_hal: workerFunction STATE_IDLE

11-13 10:36:36.401 687 687 I fpc_fingerprint_hal: fpc_worker_set_state_locked worker_state_t = 1

11-13 10:36:36.401 687 1497 D fpc_fingerprint_hal: workerFunction STATE_ENROLL

11-13 10:36:36.408 687 1497 D fpc_fingerprint_hal: fpc_wait_finger_up

11-13 10:36:36.615 687 1497 D fpc_fingerprint_hal: fpc_wait_finger_up FPC_LIB_FINGER_LOST

11-13 10:36:36.729 786 786 I MSM-irqbalance: Decided to move IRQ215 from CPU2 to CPU3

11-13 10:36:37.071 687 1497 D fpc_fingerprint_hal: fpc_handle_image_subscription

11-13 10:36:37.123 687 1497 E fingerprintd: onAcquired(0)

11-13 10:36:37.123 687 1497 E IFingerprintDaemonCallback: DaemonCallback onAcquired

11-13 10:36:37.126 687 1497 E fingerprintd: onEnrollResult(fid=0, gid=0, rem=11)

11-13 10:36:37.126 687 1497 E IFingerprintDaemonCallback: DaemonCallback onEnrollResult

11-13 10:36:37.126 687 1497 D fpc_fingerprint_hal: fpc_wait_finger_up

11-13 10:36:37.329 687 1497 D fpc_fingerprint_hal: fpc_wait_finger_up FPC_LIB_FINGER_LOST

11-13 10:36:37.785 687 1497 D fpc_fingerprint_hal: fpc_handle_image_subscription

11-13 10:36:37.871 687 1497 E fingerprintd: onAcquired(0)

11-13 10:36:37.871 687 1497 E IFingerprintDaemonCallback: DaemonCallback onAcquired

11-13 10:36:37.873 687 1497 E fingerprintd: onEnrollResult(fid=0, gid=0, rem=10)

11-13 10:36:37.874 687 1497 E IFingerprintDaemonCallback: DaemonCallback onEnrollResult