diff options
author | Changyeon Jo <changyeon@google.com> | 2022-08-15 14:33:54 -0700 |
---|---|---|
committer | Changyeon Jo <changyeon@google.com> | 2022-08-16 17:43:09 +0000 |
commit | 7eedbb1e49d10ab075501117f68be15bec5b0855 (patch) | |
tree | 1ad1ec1591997614cdac42f3475ce1720b137bd3 /shared/camera | |
parent | 7c9f47a498e1a183ddc2a1785a059b24b88b38be (diff) | |
download | cuttlefish-7eedbb1e49d10ab075501117f68be15bec5b0855.tar.gz |
Relocate Android Camera service configurations
This CL moves build configurations for the Android Camera service into
shared/camera/device_vendor.mk and modifies target makefiles to include
it if they need the Android Camera service.
Bug: 242550429
Test: atest AtsSettingsDeviceTest#testPrivacyCameraSettings
Change-Id: I2b09bfc55bbf5f1d36f5a18e1d592b019b713037
Diffstat (limited to 'shared/camera')
-rw-r--r-- | shared/camera/device_vendor.mk | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/shared/camera/device_vendor.mk b/shared/camera/device_vendor.mk new file mode 100644 index 000000000..ba36db7b8 --- /dev/null +++ b/shared/camera/device_vendor.mk @@ -0,0 +1,51 @@ +# +# Copyright (C) 2022 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +PRODUCT_VENDOR_PROPERTIES += \ + ro.camerax.extensions.enabled=true + +# Enable CameraX extension sample +PRODUCT_PACKAGES += androidx.camera.extensions.impl sample_camera_extensions.xml + +PRODUCT_SOONG_NAMESPACES += hardware/google/camera +PRODUCT_SOONG_NAMESPACES += hardware/google/camera/devices/EmulatedCamera + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \ + frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ + frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ + frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ + frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ + hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_back.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_back.json \ + hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_front.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_front.json \ + hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_depth.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_depth.json + +ifeq ($(TARGET_USE_VSOCK_CAMERA_HAL_IMPL),true) +PRODUCT_PACKAGES += \ + android.hardware.camera.provider@2.7-external-vsock-service \ + android.hardware.camera.provider@2.7-impl-cuttlefish +DEVICE_MANIFEST_FILE += \ + device/google/cuttlefish/guest/hals/camera/manifest.xml +else +ifeq ($(LOCAL_PREFER_VENDOR_APEX),true) +PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal +PRODUCT_PACKAGES += com.google.emulated.camera.provider.hal.fastscenecycle +endif +PRODUCT_PACKAGES += \ + android.hardware.camera.provider@2.7-service-google \ + libgooglecamerahwl_impl \ + android.hardware.camera.provider@2.7-impl-google +endif |