[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
UPDATE: As of today this fixes already went into LineageOS official, but keeping the thread for future reference and extra info...

PROBLEM

Some users report that their US996 and LS997 variants are only able to utilize 2 cameras in LineageOS or AOSP based ROMs.

The problem happens regardless of camera being used.

This is not the 'dark screen' capture on the Snap Camera happening on LineageOS, the problem is the 3rd camera not being active at all.

On further investigation this phones use a similar (spec wise) but different camera sensor and actuators for the 3rd camera.

DESCRIPTION

As of today (Sep-12-2017) The current LineageOS and AOSP builds that use LGE 8996 common repository are still missing some information for some variants of our beloved US996 and LS997 phones. Seems like these variants use a different camera sensor on some called the s5k2p7.

So I have decided to share my personal patches for users who might have problems with only being able to utilize 2 cameras (users whose only cameras that work are wide angle and selfie, and not the normal rear camera). I hope this is temporary and that we can get the fixes upsteam sometime soon but I am sure I can make some V20 users happy with this.

The other added benefit of using this is that this Kernel is based on CM's August version and will not have the touch-screen bug that has been recently seen and experienced on LineageOS recent automated builds.

The way it works is that in order for LineageOS or any AOSP ROM to see and activate this camera it needs a proper library and binary blobs for qcamera server. I have extracted these new'ish updated binary blobs from the US996 firmware and after doing so and flashing them on top of your ROM you should now be able to see the 3rd camera on these phones. However after patching the above it is still lacking proper Kernel support so that focusing works and hence will need to flash a re-compiled Kernel on top of your ROM to make it work.

INSTRUCTIONS

Be in recovery, if you are looking for this post you most likely already have AOSP and are facing these issues

Please just try the builds from this post #20 and flash it as [MENTION=2881807]x86cpu[/MENTION] has incorporated those fixes in this UNOFFICIAL builds

Flash the optional "flashable-snap.zip" if your Snap camera starts up black by default. This will make some users happy, this is not related to the sensor fix but it is just using an older Snap version that does proper auto shutter speed.

Reboot

KERNEL CHANGES

The changes lie in the following files that can be obtained and extracted from LG's LS997 Kernel sources:

drivers/media/platform/msm/camera_v2/sensor/actuator/msm_actuator.c
drivers/media/platform/msm/camera_v2/sensor/ois/msm_ois.c
drivers/media/platform/msm/camera_v2/sensor/ois/Makefile
drivers/media/platform/msm/camera_v2/sensor/ois/lgit_s5k2p7_rohm_ois.h
drivers/media/platform/msm/camera_v2/sensor/ois/lgit_s5k2p7_rohm_ois.c

DOWNLOADS

flashable-lge-v20-s5k2p7-eeprom-camera-libs.zip [NOT NEEDED ANYMORE, THIS IS JUST A PLACEHOLDER, READ THE INSTRUCTIONS]

flashable-snap.zip

Please just try the builds from this post #20

<< If you like my work here is my hat, please donate! >>​

​