[Redmi Note 10] Ham1do:
Mi Camera port [ magisk module]

Version 4.3

Build date : 18-11-2022

For mojito AOSP A13 Custom Roms

Mi Camera magisk module:

➥ Download [Gdrive]

Installation on magisk:

• Delete any anx / miui camera magisk modules if there is already.

• Flash via magisk manager Mi Camera magisk module and reboot to system.

•

If necessary

, flash 48MP fix magisk module according to android security patch then reboot to system ( uninstall 48MP fix if you get "can't connect to camera").

48MP fix for android 13 magisk module (November 2022 security patch and previous):

➥ Download [Gdrive]

48MP fix for android 13 magisk module (+December 2022 security patch):

➥ Download [Mega]

48MP fix for android 12 magisk module:

➥ Download [Gdrive]

Installation on KSU:

• Open KernelSU app, install magisk overlayfs then reboot ( this will create ≈2gb of free space for KSU modules.. ).

• Open KernelSU app and Install Mi camera module then reboot.

Changelog:

• Optimized for mojito.

• Added necessary vendor libraries.

• Unnecessary codes removed.

• Experimental features unlocked.

• Enabled Night, 48MP, Short video, Panorama, Documents, VLOG, Time-Laps, Slow motion, Movie Effects, Ai Watermark, Custom Watermark, Clone modes..

15-12-2022

• added new 48MP fix for December security patch.

29-12-2022

• Removed parallel processing from experimental features.

• Switched to platform keys.

• Fixed few sepolicy rules.

11-06-2023

• Fixed timed burst in pro mode.

• Fixed back portrait in some ROMs.

• Removed experimental features and its annoying message.

• Switched to original mi camera icon.

• Added monet support (only in camera settings for now).

• Fixed parallel-processing on Android 13 (by ceracz)

• Set default HDR mode to Auto (by ceracz).

• Dropped stock camera provider (by ceracz), so no need to 48MP fix.

19-06-2023

• Fixed blur in background on portrait mode.

10.07.2023

• Added KernelSU support.

• Debloated useless libs about 230mb (including vendor files).

• Added long exposure feature.

• Improve document mode.

• Added aperture camera to the hidden apps list.

19.07.2023

• Added 2 mi camera variants:

1- With parallel processing disabled to work on all ROMs.

2- with PP enabled for ROMs that support mi camera.

• Fixed freezing issue on KernelSU in some ROMs (installation on KSU method is above).

The recommended builds :

First try 19-07-2023 build (PP enabled) , if it has issues that means the ROM is not compatible with mi camera , then try 19-07-23 build (PP disabled) or 19-06-23 build.

Notes:

• ROMs builders should add this commit, to fix front camera & portrait issues if it is not included in rom source: https://github.com/SpiceOS/android_bionic/commit/e1b0c860ea4dfc74cf9c016812b0d3aea315b1d0

• For those who want include Mi Camera on their builds, use this repo, this commit and this commit.

• To fix camera crashes when parallel process is enabled , this commit is necessary:

Revert "sm6150-common: overlay: Enable config_forceMultiResolution" · AhmedGamal09/android_device_xiaomi_sm6150-common@76e06cb

This reverts commit ee1ef133fa0ab4e6e433ce592a8d64afe42b02b4.

github.com

• To fix 48mp from source add this commit:

https://review.lineageos.org/q/topic:twelve-camera-privapp

• Magisk alpha/delta known they have issues with modules, the module tested with magisk v25.2.

• Don't use spoofing module like Dolby Atmos or Pixel props .. Otherwise they will affect camera functionalities.

Thanks to:

AmrGamal, Ceracz ,Praditia Nur, Anush,

Anx team and all testers.