Skip to content

Commit

Permalink
BGT_sprout: Hardcode FINGERPRINT_HARDWARE_MODULE_ID to "fingerprint.fpc"
Browse files Browse the repository at this point in the history
Change-Id: Id545287bed468f39738dbaa4c069660047055585
  • Loading branch information
SebaUbuntu authored and KaguraRinko committed Aug 22, 2024
1 parent edb13c7 commit 0cb0c56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ PRODUCT_PACKAGES += \
# Fingerprint
PRODUCT_PACKAGES += \
[email protected]_sprout \
[email protected].BGT_sprout
[email protected]

# Gatekeeper
PRODUCT_PACKAGES += \
Expand Down
9 changes: 0 additions & 9 deletions fingerprint/Android.bp
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}

cc_binary {
name: "[email protected]_sprout",
defaults: ["hidl_defaults"],
Expand Down
2 changes: 1 addition & 1 deletion fingerprint/BiometricsFingerprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fingerprint_device_t* BiometricsFingerprint::openHal() {
int err;
const hw_module_t *hw_mdl = nullptr;
ALOGD("Opening fingerprint hal library...");
if (0 != (err = hw_get_module(FINGERPRINT_HARDWARE_MODULE_ID, &hw_mdl))) {
if (0 != (err = hw_get_module("fingerprint.fpc", &hw_mdl))) {
ALOGE("Can't open fingerprint HW Module, error: %d", err);
return nullptr;
}
Expand Down
5 changes: 2 additions & 3 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,9 @@ vendor/firmware/lagoon_ipa_fws.mdt
vendor/firmware/mcfcheck.txt

# Fingerprint
vendor/lib64/hw/fingerprint.fpc.default.so:vendor/lib64/hw/fingerprint.lito.so
vendor/lib64/hw/fingerprint.fpc.default.so:vendor/lib64/hw/fingerprint.fpc.lito.so
vendor/lib/hw/fingerprint.fpc.default.so:vendor/lib/hw/fingerprint.fpc.lito.so
vendor/lib64/[email protected]
vendor/etc/init/vendor.fingerprint.rc
vendor/bin/fingerprint

# Gatekeeper
vendor/bin/hw/[email protected]
Expand Down

0 comments on commit 0cb0c56

Please sign in to comment.