Credits go to **********
A rooted LG G3 with TWRP Recovery installed.
Make sure you have 90MB free system space available on the device.
MOD EDIT: LINKS REMOVED.
Work of Jishnu Sur is banned from XDA
The resolution patch will fix the resolution issue on your phone.
How to Install
1-Download both the Zip files from above and copy them to your phone.
2-Reboot your device to CWM/TWRP recovery.
3-First of all, create a backup of your ROM as precaution.
4-Select the Install option, navigate to HTC One M9 camera Port V1.zip and flash it.
5-Then also install the resolution patch file the same way.
7-Return to the main menu and reboot the device.
When you phone boots up, you will be able to use the HTC M9 camera on your G3