Skip to content

TelegramAt25/android_vendor_xiaomi_miuicamera-selene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiuiCamera-selene

  1. Clone the main MiuiCamera repository to vendor/xiaomi/miuicamera
  2. Clone this repository to vendor/xiaomi/miuicamera-selene
  3. Add the line below to device.mk
    $(call inherit-product, vendor/xiaomi/miuicamera-selene/MiuiCamera-selene.mk)
  4. Include SELinux policy in BoardConfig.mk
    include vendor/xiaomi/miuicamera-selene/SEPolicy-selene.mk

Technical details

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"],

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •