so,let's get started
The Camera2api port for our device is buggy as hell not only that but the dual pixel technology libraries are f**** by OnePlus so to overcome that and get both portrait mode working and front camera hdr+
you must be rooted(or at least have a custom recovery)
for non root you can still use HDR+ only for the back camera with lots of dots!
A-rooted downloads 1-the lib fix FOR ANDROID 8.1 ONLY
FOR ANDROID 9 PIE OOS 9.0.6 and above
2-Pixel Colours(optional)For OOS 9.0.6 and above you need Pixel Colours v3.0 HERE
B-APK download that's a bit easy
1-New Best Version Urnyx based on GCam 6.2 is excellent thanks Urnyx Download latest here
2-Gcam based on 5.1 Urnyx05 v6.2 for any OS for the 5t oreo and up of course
-For Gcam based on 5.1 only This one contains the settings I personally use with the current Google camera version Urnyx05 6.2 to get best results after testing many times(you can find yourself better settings anyways).
-the settings are attached as images in the post feel free to test them out.