It's like for Android M, but it will work on all Android Versions above 6.
I tested it on MIUI 9 Global, China, miui.am, xiaomi.eu/miuipolska, epicrom, LOS 15.1, PE 8.0 and it's working just fine.
I am not responsible for any issues that might happen in process of installing that mod.
How to Install it?
Step 1: Root your device [I recommend via Magisk flash, through TWRP]
Step 2: Enable Camera2Api, and there i have two options for you:
Method 1: An Magisk module that enables this feature, here is the thread and download *CLICK*
Method 2: By editing build.prop file, but how to do it?
1: Download any root file manager [I recommend MiX]
2: Find the prop.build file in folder "System"
3: Scroll to the last line, and add "persist.camera.HAL3.enabled=1", save and reboot.
Step 3: Install the APK file, which is under the tutorial!
Google Camera App: *CLICK*
MiXplorer App: *CLICK*
BUGS AND ERRORs
1. Selfie Camera bug - Selfie Cam is upside down
Search for msm8996_camera.xml file in /system/etc/camera
Then look for:
And replace "360" with "270" [U need to do it twice}
Then Save and Reboot.
2. Slow Motion error
POSSIBLE FIX: Download an Magisk module, i don't know if it's working at all.
3. Stock Camera HDR crash
I can't find any FIX for that, but Camera2Api is not always crashing HDR stock [But in my case it doesn't crash, working just fine.]
I hope u liked it!
If it helped u, just leave me an "Thank" or something like that, i will be grateful!