From d7ce913606618c3668547c75f03b86fa2a5d56c2 Mon Sep 17 00:00:00 2001 From: horngchuang Date: Tue, 22 Mar 2022 11:14:15 +0800 Subject: [PATCH] Add camera to feature list Copy the rule android.hardware.camera.xml for a non auto-focus camera. Bug: 225749853 Test: adb shell pm list features Change-Id: I61f47bd965bce476471325a38f6d136cc568d65c --- device.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.mk b/device.mk index c3123b5a..3548bc91 100644 --- a/device.mk +++ b/device.mk @@ -589,6 +589,9 @@ PRODUCT_COPY_FILES += \ ifneq ($(DISABLE_CAMERA_FS_AF),true) PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml +else +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml endif PRODUCT_COPY_FILES += \