vendor: Add back FaceUnlock support

Change-Id: I361ce913dfb5f1db574b3cf3cdeeeaaca2338ac1
Signed-off-by: Ayan Mukherjee <mukherjeeayan725@gmail.com>
diff --git a/config/common.mk b/config/common.mk
index b3a0913..112a39d 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -111,6 +111,17 @@
 endif
 endif
 
+# Face Unlock
+TARGET_FACE_UNLOCK_SUPPORTED ?= true
+ifeq ($(TARGET_FACE_UNLOCK_SUPPORTED),true)
+PRODUCT_PACKAGES += \
+    FaceUnlockService
+PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
+    ro.face_unlock_service.enabled=$(TARGET_FACE_UNLOCK_SUPPORTED)
+PRODUCT_COPY_FILES += \
+    frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.biometrics.face.xml
+endif
+
 PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay
 
 # Bliss Bootanimation