MiuiCamera: Add support of CameraX Vendor Extensions

This commit is contained in:
johnmart19
2025-01-08 23:12:14 +02:00
parent 3f84f5100c
commit 4f0edce7e0
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="camerax-vendor-extensions.jar"
file="/system_ext/framework/camerax-vendor-extensions.jar" />
</permissions>

View File

@@ -14,6 +14,14 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(CAMERA_PATH)/configs/camera/camxoverridesettings.txt:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camxoverridesettings.txt
# Camera Extensions
PRODUCT_SYSTEM_PROPERTIES += \
ro.camerax.extensions.enabled=true
# Camera Extensions permissions
PRODUCT_COPY_FILES += \
$(CAMERA_PATH)/configs/permissions/extensions/camerax-vendor-extensions.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/camerax-vendor-extensions.xml
# Device-Features
PRODUCT_COPY_FILES += \
$(CAMERA_PATH)/configs/device_features/alioth.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/device_features/alioth.xml \

View File

@@ -98,3 +98,6 @@ vendor/etc/camera/126_Fantasy2.png
vendor/etc/camera/127_Creamy.png
vendor/etc/camera/128_Sepia.png
vendor/etc/camera/sceneDetection.xml
# Camera Extensions
system_ext/framework/camerax-vendor-extensions.jar