Use static linking for virtual fingerprint hal

To make the binary smaller in APEX, use static linking.

For aosp_cf_x86_64_phone target, the APEX is reduced from 1576960 to
643072 (by 933888).

Bug: 306314086
Test: m
Change-Id: I1d745f64fb98a97e7adb417870034044a03ce88c
This commit is contained in:
Jooyung Han 2023-10-26 11:07:08 +09:00
parent 80baad2ccf
commit e458294ba1

View file

@ -22,15 +22,20 @@ cc_binary {
"Session.cpp",
"main.cpp",
],
stl: "c++_static",
shared_libs: [
"libbase",
"libbinder_ndk",
"liblog",
],
static_libs: [
"libandroid.hardware.biometrics.fingerprint.VirtualProps",
"libbase",
"android.hardware.biometrics.fingerprint-V3-ndk",
"android.hardware.biometrics.common-V3-ndk",
"android.hardware.biometrics.common.thread",
"android.hardware.biometrics.common.util",
"android.hardware.keymaster-V4-ndk",
],
static_libs: ["libandroid.hardware.biometrics.fingerprint.VirtualProps"],
installable: false, // install APEX instead
}