Go to file
Adithya R 3927818d5e Restructure to vendor/xiaomi/camera
Import from device/xiaomi/lisa-miuicamera:

commit 33f736aa61e224998d5c121f6c38c944e49fea8d
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Fri Apr 21 16:54:19 2023 +0530

    lisa-miuicamera: Update to V14.0.3.0.TKOMIXM

commit 569341615b88bf864c135356a11a5338e058c9d4
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Tue Jan 31 10:00:48 2023 +0530

    lisa-miuicamera: Label libSNPE and deps as sphal

    We already have these in public.libraries.txt, just
    needs to be labeled as sphal so that Miui Camera can
    load it for clone mode.

    01-30 23:10:20.988  5067  5067 I auditd  : type=1400 audit(0.0:2944): avc: denied { read } for comm="CameraSetup" name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera
    01-30 23:10:20.988  5067  5067 W CameraSetup: type=1400 audit(0.0:2944): avc: denied { read } for name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera
    01-30 23:10:20.992  5067  5121 E CloneSDK: Load native library failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libSNPE.so" not found: needed by /data/user/0/com.android.camera/app_qigsaw/5.0.0.0/movielens/31.0.0@31/nativeLib/arm64-v8a/libfenshen_snpe.so in namespace classloader-namespace-shared

commit d1ad3e40dd5c00fb97bb12d02668978698339599
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date:   Mon Jan 23 22:21:23 2023 +0530

    lisa-miuicamera: Initial commit
2023-04-23 23:56:04 +05:30
configs/permissions Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
proprietary/system lisa-miuicamera: Update to V14.0.3.0.TKOMIXM 2023-04-21 16:54:34 +05:30
sepolicy/vendor Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
Android.bp Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
Android.mk Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
BoardConfigVendor.mk Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
README.md Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
camera-vendor.mk Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
extract-files.sh Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
miuicamera.mk Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
proprietary-files.txt Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30
setup-makefiles.sh Restructure to vendor/xiaomi/camera 2023-04-23 23:56:04 +05:30

README.md

proprietary_vendor_xiaomi_camera

Prebuilt stock MIUI Camera to include in custom ROM builds.

Extracted from lisa MIUI package (refer proprietary-files.txt for version).

Supported devices

  • Xiaomi 11 Lite NE (lisa)

How to use?

  1. Clone this repo to vendor/xiaomi/camera

  2. Inherit it from device.mk in device tree:

# Camera
$(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
  1. Set ro.product.mod_device according to stock, and ro.miui.notch=1 if the device has a display cutout, for example:
PRODUCT_SYSTEM_PROPERTIES += \
    ro.miui.notch=1 \
    ro.product.mod_device=lisa