- Clone the main MiuiCamera repository to
vendor/xiaomi/miuicamera
- Clone this repository to
vendor/xiaomi/miuicamera-selene
- Add the line below to
device.mk
$(call inherit-product, vendor/xiaomi/miuicamera-selene/MiuiCamera-selene.mk)
- Include SELinux policy in
BoardConfig.mk
include vendor/xiaomi/miuicamera-selene/SEPolicy-selene.mk
libcamera_algoup_jni.xiaomi.so
was extracted from V12.5.26.0.RKUEUXM and patched for AOSP:
patchelf --add-needed "libgui_shim_miuicamera.so" prebuilt/libcamera_algoup_jni.xiaomi.so
When the correct shared_libs
list is not present in Android.bp, check_elf_file.py
prints it on build:
FAILED: Check prebuilt ELF binary: out/soong/.intermediates/vendor/xiaomi/miuicamera-selene/libcamera_algoup_jni.xiaomi/android_arm64_armv8-2a-dotprod_cortex-a55_shared/libcamera_algoup_jni.xiaomi.so
...
out/soong/.intermediates/vendor/xiaomi/miuicamera-selene/libcamera_algoup_jni.xiaomi/android_arm64_armv8-2a-dotprod_cortex-a55_shared/libcamera_algoup_jni.xiaomi.so: note: Fix suggestions:
out/soong/.intermediates/vendor/xiaomi/miuicamera-selene/libcamera_algoup_jni.xiaomi/android_arm64_armv8-2a-dotprod_cortex-a55_shared/libcamera_algoup_jni.xiaomi.so: note: Android.bp: shared_libs: ["[email protected]", "libandroid", "libandroid_runtime", "libbase", "libbinder", "libc++", "libcamera_client", "libcamera_metadata", "libcutils", "libgui", "libgui_shim_miuicamera", "liblog", "libmedia_jni_utils", "libnativehelper", "libnativewindow", "libui", "libutils", "libvndksupport"],