I just here provide you information to run Google camera App which can Produce HDR and Portrait Images in Note 5, even far better from Stock cam.
If something goes wrong, im not responsible for that damages...
First You need root access and Nougat + magisk Sorry MM user
--> You need to add camera2api in build.prop
Download camera2api Enabler from this thread and flash it >> https://forum.xda-developers.com/app...abler-t3656651
This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1"
Now download this Google Camera App >> Click here
Then open app and give some permission
Now you need to do some setting in app, follow the screenshot >> https://postimg.org/gallery/1qi5mrgxo/
then close app/force stop app and reopen to apply those modifications
After using google camera app, your stock camera app may not work properly, but who cares