config: Adding an option to build DeviceAsWebcam

Change-Id: I8bf747579b89d9fda93f9efd517c02f575343cc1
This commit is contained in:
ShevT
2024-08-30 12:38:33 +03:00
committed by Zabuka_zuzu
parent b466f46102
commit ae075bda5d

View File

@@ -1,6 +1,15 @@
PRODUCT_PACKAGES += \
Updater
# DeviceAsWebcam
ifeq ($(TARGET_BUILD_DEVICE_AS_WEBCAM), true)
PRODUCT_PACKAGES += \
DeviceAsWebcam
PRODUCT_VENDOR_PROPERTIES += \
ro.usb.uvc.enabled=true
endif
# Face Unlock
ifeq ($(TARGET_SUPPORTS_64_BIT_APPS),true)
PRODUCT_PACKAGES += \
@@ -11,4 +20,4 @@ PRODUCT_SYSTEM_EXT_PROPERTIES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/android.hardware.biometrics.face.xml
endif
endif