camera: Add support for Xiaomi 13 Ultra
* also add some missing stuff for nuwa
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user