So after tinkering with this phone for quite awhile! With the help of another developer, we now have a decent working port of google camera for the razer phone. Portrait mode is not working in this version because portrait was introduced in version 5.1 and later. Also the razer phone has hardcoded front camera2 as legacy so there is no raw support so you will never get selfie portrait to work. Hopefully razer will remove this hardcode in Pie, but it's very unlikely. I have sold my phone so there will be no more development from me on this, I'm simply sharing back and actually CARING to have a decent camera!
First and foremost, you need to root your device and unlock the bootloader (recommended but does not have to), then replace all these chromatix files for color fix, using a file explorer of your type. I highly recommend Solid Explorer:
https://drive.google.com/open?id=1EreYInGhkaN08aay3StpHra1gluN9rUJ
After you replace the libs, install the apk and shoot. Modified to have locked 35 frames in all conditions, with raw so you can edit these amazing pictures afterwards.
https://drive.google.com/open?id=1DRab0IZ-0dY8C-AcZsIDYPfyAzmQFev-
First and foremost, you need to root your device and unlock the bootloader (recommended but does not have to), then replace all these chromatix files for color fix, using a file explorer of your type. I highly recommend Solid Explorer:
https://drive.google.com/open?id=1EreYInGhkaN08aay3StpHra1gluN9rUJ
After you replace the libs, install the apk and shoot. Modified to have locked 35 frames in all conditions, with raw so you can edit these amazing pictures afterwards.
https://drive.google.com/open?id=1DRab0IZ-0dY8C-AcZsIDYPfyAzmQFev-