diff --git a/common/Android.bp b/common/Android.bp index e75334b..a8fb4ed 100644 --- a/common/Android.bp +++ b/common/Android.bp @@ -7,3 +7,113 @@ soong_namespace { ], } +cc_prebuilt_library_shared { + name: "libcamera_algoup_jni.xiaomi", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, +} + +cc_prebuilt_library_shared { + name: "libcamera_mianode_jni.xiaomi", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, +} + +cc_prebuilt_library_shared { + name: "libmicampostproc_client", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/system/lib64/libmicampostproc_client.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, +} + +cc_prebuilt_library_shared { + name: "vendor.xiaomi.hardware.campostproc@1.0", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, +} + +cc_prebuilt_library_shared { + name: "libarcdualcamsat", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/vendor/lib64/libarcdualcamsat.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libarcsat", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: ["proprietary/vendor/lib64/libarcsat.so"], + }, + }, + compile_multilib: "64", + check_elf_files: false, + prefer: true, + soc_specific: true, +} + +android_app_import { + name: "MiuiCamera", + owner: "xiaomi", + apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk", + overrides: ["Aperture", "Snap", "Camera2", "GoogleCameraGo"], + certificate: "platform", + dex_preopt: { + enabled: false, + }, + privileged: true, +} + diff --git a/common/common-vendor.mk b/common/common-vendor.mk index dda880d..455ec5e 100644 --- a/common/common-vendor.mk +++ b/common/common-vendor.mk @@ -5,3 +5,12 @@ PRODUCT_SOONG_NAMESPACES += \ vendor/xiaomi/sweet-miuicamera/common + +PRODUCT_PACKAGES += \ + libcamera_algoup_jni.xiaomi \ + libcamera_mianode_jni.xiaomi \ + libmicampostproc_client \ + vendor.xiaomi.hardware.campostproc@1.0 \ + libarcdualcamsat \ + libarcsat \ + MiuiCamera diff --git a/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so new file mode 100644 index 0000000..4e1ee04 Binary files /dev/null and b/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so differ diff --git a/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so new file mode 100644 index 0000000..a74e914 Binary files /dev/null and b/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so differ diff --git a/common/proprietary/system/lib64/libmicampostproc_client.so b/common/proprietary/system/lib64/libmicampostproc_client.so new file mode 100644 index 0000000..4da94ce Binary files /dev/null and b/common/proprietary/system/lib64/libmicampostproc_client.so differ diff --git a/common/proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so b/common/proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so new file mode 100644 index 0000000..299ae0b Binary files /dev/null and b/common/proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so differ diff --git a/common/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk b/common/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk new file mode 100644 index 0000000..2ce1d54 Binary files /dev/null and b/common/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk differ diff --git a/common/proprietary/vendor/lib64/libarcdualcamsat.so b/common/proprietary/vendor/lib64/libarcdualcamsat.so new file mode 100644 index 0000000..d415aae Binary files /dev/null and b/common/proprietary/vendor/lib64/libarcdualcamsat.so differ diff --git a/common/proprietary/vendor/lib64/libarcsat.so b/common/proprietary/vendor/lib64/libarcsat.so new file mode 100644 index 0000000..3289c21 Binary files /dev/null and b/common/proprietary/vendor/lib64/libarcsat.so differ diff --git a/proprietary-files.txt b/proprietary-files.txt index e69de29..75bb66d 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -0,0 +1,9 @@ +# These proprietary files are extracted from Redmi Note 10 Pro (codenamed `sweet`) MIUI V14.0.9.0.TKFMIXM, unless pinned + +-product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=Aperture,Snap,Camera2,GoogleCameraGo +-system/lib64/libcamera_algoup_jni.xiaomi.so +-system/lib64/libcamera_mianode_jni.xiaomi.so +-system/lib64/libmicampostproc_client.so +-system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so +-vendor/lib64/libarcdualcamsat.so +-vendor/lib64/libarcsat.so