[Xiaomi Mi Note 2  Themes, Apps, and Mods] Mimi Mix:
[SIZE=+2][MOD][TESTING] Camera Sensor Fix and Google Camera[/SIZE]

Please test, share issues, questions and offer help!

What does this mod do?​

It replaces the libmmcamera_imx318*.so and libmmcamera_imx268*.so files inside /system/vendor/lib/ with ones I edited.

It also adds a missing reference to libadsprpc.so in /system/etc/public.libraries.txt on custom firmwares.

Warning​

From my experience this mod can't really break anything. At most you'll have a non working camera. In this situation you need to either flash your ROM again or restore these files from a backup.

If you're on MIUI use the installer that doesn't change your public.libraries.txt file! Otherwise your device won't boot.​

What does it fix?​

It fixes a sensor and active array size mismatch issue in our devices. It makes a lot of google camera mods work (to some degree).

It seems to have also fixed the cropping bug everyone has been complaining about. Since the array size mismatch appears to be cropping the resolution down to the next working one.

Shut up already, I just want to take some great looking photos!​

Go ahead and flash one of these zip files:

CFW: https://mega.nz/#!sfAERYxL!WdJO3u9sFwddB22echsp0-2AYsW1nVIynROo3rVjeqQ [v5] [14-05-2018]

MIUI: https://mega.nz/#!UexHDThY!O2CUQ1GVqG9CSAqfgMRXthKVq4vgPPq6-wbKflAGbio

Install the following gcam mod:

https://www.celsoazevedo.com/files/android/google-camera/f/GCam_5.1.018_by_SerJo87_1.6RC2_test4c.apk

What's working:

HDR+ and HDR enchanced (Back and Front)

Portrait Mode (Back and Front)

Zero Shutter Lag

Motion Photos

Video Recording

Slow Motion (120 and 240 fps)

What's Not Working:

Nothing!

What isn't working very well:

Light flickering in 240fps slowmo.

Low exposure in Lens Blur. (The current fix is to set the Lens Blur resolution to the default 5MP)

Low exposure in Panorama.

Cropped 4k Recording (Hardware enabled EIS. Doesn't seem to be a bug.)

Missing toggle between HDR modes on the back camera (It takes photos with HDR+)

Recommendations

If you don't mind losing Motion Photos on the Back Camera turn on the Use Hexagon DSP option for slightly better performance and stability

Change the HDR+ parameters to Pixel 2017 stable.

Turn on Portrait ZSL mode

Change Base model inside Tuning back cam to Nexus 6P. (More detailed photos plus better and faster autofocus)

SerJo87 Google Camera's default tuning settings are tweaked for another smartphone's camera sensor. As a personal recommendation go into Tuning back cam and disable the Tuning master switch for it to use the default Base Model values. I've spent hours tweaking and have found the default Nexus 6P values to be the best ones.

Change the Lens blur megapixels to 5MP. (Fixes the low exposure issue)

Compatibility​

Personally tested and fully working on the latest AospExtended.

Reported semi-working on the latest unofficial Resurrection Remix.

Reported working on the latest Lineage 15.1.

Reported working on crDroid.

Reported working in MIUI.

This mod is not needed on the latest Cardinal-AOSP. Psy_Man has included this fix.

Google Camera Mod Repository​

Go grab a bunch of other google camera mods if you're feeling adventurous and hope to find a more compatible one.

https://www.celsoazevedo.com/files/android/google-camera/

I need testers, helpers, anything and everything is welcome!​