• Clone this repo in vendor/xiaomi/miuicamera in your working directory by :
git clone https://codeberg.org/reche/proprietary_vendor_xiaomi_miuicamera.git vendor/xiaomi/miuicamera
• You will need following changes in your device tree:
• Makefile changes
# MiuiCamera
$(call inherit-product-if-exists, vendor/xiaomi/miuicamera/config.mk)
• Props Changes
- Add miuicamera to aux packagelist
- Skip stream size check for miuicamera
- Add more props needed for miuicamera
• Sepolicy changes
• Furthermore, below are the patches needed in ROMs sources
• Done, continue building your ROM as you do normally.