camera: Add support for Xiaomi 13 Ultra

* also add some missing stuff for nuwa
This commit is contained in:
Fabian Leutenegger
2024-05-03 14:40:05 -03:00
parent b22f5f7458
commit 21d63ec541
5 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
LOCAL_PATH := $(call my-dir)
ifneq ($(filter fuxi,$(TARGET_DEVICE)),)
ifneq ($(filter fuxi nuwa ishtar,$(TARGET_DEVICE)),)
CAMERA_LIBRARIES := libcamera_algoup_jni.xiaomi.so libcamera_mianode_jni.xiaomi.so
+2
View File
@@ -4,6 +4,8 @@ Prebuilt MIUI Camera to include in custom ROM builds.
### Supported devices
* Xiaomi 13 (fuxi)
* Xiaomi 13 Pro (nuwa)
* Xiaomi 13 Ultra (ishtar)
### How to use?
@@ -0,0 +1 @@
ro.product.mod_device=ishtar_global
+1
View File
@@ -21,6 +21,7 @@ PRODUCT_COPY_FILES += \
TARGET_SYSTEM_PROP += vendor/xiaomi/camera/configs/properties/system.prop
PRODUCT_COPY_FILES += \
vendor/xiaomi/camera/configs/properties/system_camera_fuxi.prop:$(TARGET_COPY_OUT_SYSTEM)/etc/build_camera_fuxi.prop \
vendor/xiaomi/camera/configs/properties/system_camera_ishtar.prop:$(TARGET_COPY_OUT_SYSTEM)/etc/build_camera_ishtar.prop \
vendor/xiaomi/camera/configs/properties/system_camera_nuwa.prop:$(TARGET_COPY_OUT_SYSTEM)/etc/build_camera_nuwa.prop
# Sepolicy
+1 -1
View File
@@ -29,7 +29,7 @@ source "${HELPER}"
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
write_headers "fuxi"
write_headers "fuxi nuwa ishtar"
sed -i 's|device/|vendor/|g' "$ANDROIDBP" "$ANDROIDMK" "$BOARDMK" "$PRODUCTMK"
cat << 'EOF' >> "$ANDROIDMK"