Remove PRODUCT_COPY_FILES from lyric.mk.

Convert the digital image stabilization XML to prebuilt_etc rule.
Remove the stuff related to dualcamcapture, this test app has been
removed in ag/20832070.

Bug: 280523635
Bug: 280523636
Test: local build
Change-Id: I3f9f752311a349cfef486e75d0c6dcfb0fa45d5c
This commit is contained in:
Krzysztof Kosiński 2023-05-04 05:29:28 +00:00
parent 76993da5d4
commit b105faa34a
3 changed files with 17 additions and 8 deletions

View File

@ -18,3 +18,11 @@ cc_binary {
vendor: true,
relative_install_path: "dump",
}
prebuilt_etc {
name: "lyric_preview_dis_xml",
vendor: true,
filename: "vendor.android.hardware.camera.preview-dis.xml",
src: "vendor.android.hardware.camera.preview-dis.xml",
sub_dir: "permissions",
}

View File

@ -39,12 +39,6 @@ PRODUCT_SOONG_NAMESPACES += \
# Calibration tool for debug builds
PRODUCT_PACKAGES_DEBUG += tarasque_test
# dualcamcapture only works for GMS build. Only enable this apk for GMS userdebug/eng builds
ifeq (,$(filter aosp_% factory_%,$(TARGET_PRODUCT)))
PRODUCT_PACKAGES_DEBUG += dualcamcapture
PRODUCT_COPY_FILES += vendor/google/camera/devices/whi/preinstalled-packages-product-camera-device-vendor-debug.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/preinstalled-packages-product-camera-device-vendor-debug.xml
endif
endif # vendor/google/camera check
# Init-time log settings for Google 3A
@ -55,8 +49,7 @@ PRODUCT_PACKAGES += libg3a_standalone_ghawb_rc
# Vendor APEX which contains the camera HAL
PRODUCT_PACKAGES += com.google.pixel.camera.hal
PRODUCT_PACKAGES += init.camera.set-interrupts-ownership
PRODUCT_PACKAGES += lyric_preview_dis_xml
# sepolicy dir is added in dump.mk.
# Make doesn't deduplicate sepolicy dirs, so including it here causes build errors.
PRODUCT_COPY_FILES += vendor/google/services/LyricCameraHAL/src/vendor.android.hardware.camera.preview-dis.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor.android.hardware.camera.preview-dis.xml

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This is to advertise that the camera device supports preview digital image stabilization
in both front and back cameras-->
<permissions>
<feature name="vendor.android.hardware.camera.preview-dis.front" />
<feature name="vendor.android.hardware.camera.preview-dis.back" />
</permissions>