[LG L Fino ROMs, Kernels, Recoveries, & Other Devel] christpp:
New build 7.5.2016

Hello everyone,

I have came to a point where I can provide a new full rom zip package with some of the camera features working. By installing this zip, as well as some extra libraries provided separately (from the stock rom) , I am able to take still images using the front camera and record video using both cameras, using a third party camera app (I have used CameraMX and OpenCamera during my testing, the stock camera app crashes when changing to video mode because it cannot access some xml files). Video calling is working fine using both cameras (tested on Google Hangouts). In order to achieve all this I had to make a lot of changes both to kernel and android system, hex-edit some libraries and update a lot of proprietary binaries/libraries, so this rom needs intense testing. Anyone who has some free time, please test and report any bugs here. The only thing I have encountered is a couple of random reboots, but that might be device specific.

Now, for the extra stock libraries I put separately, I will include them in the next build. It would take some time to build again with them included and I think that this would cost us some testing time. We are already going really slow on fixing cameras.

I came to the conclusion that our device's kernel drivers are a mess. There are far behind the Code Aurora kernel code and contain a lot of custom code that makes building new versions of android extremely difficult. That is why I had to use lots of stock libraries, including OMX libraries, c2dcolorconvert, libstagefrighthw etc, which otherwise could be compiled normally. It would be better to build these libraries instead of using prebuilt stock ones, so I will have a try to build them after I get the rear camera fully working.

As for the rear camera not taking still images, I have no idea what is causing the api to hang after I take the picture. Logcat provides nothing, kernel log provides nothing. If anyone has got any clue on what might be the problem, please help me! EDIT: Rear Camera can take still pictures at the lowest resolution (320x240). It seems that the jpeg callback is not called on higher resolutions..

HERE ARE THE DOWNLOAD LINKS:

ROM ZIP:

https://www.dropbox.com/s/oijwc036d73y7wl/cm-12.1-20160507-UNOFFICIAL-l70pn.zip?dl=0

libstagefrighthw: https://www.dropbox.com/s/jn12tvvzty2ujnk/libstagefrighthw.so?dl=0

libc2dcolorconvert: https://www.dropbox.com/s/kojylw3d4axjac4/libc2dcolorconvert.so?dl=0

Install the zip normally and copy the two libraries to /system/lib, giving them the correct permissions. Reboot the device and your cameras will be able to record videos normally. Also, please, someone with a hosting site account, upload these somewhere else and provide some links, because my dropbox account cannot take much traffic, thanks.

For D295 users: I currently do not have the resources to build for both devices each time there is a change to the project. If anyone is interested to build for D295, please pm me. It should be a fairly easy task and I can provide instructions.

Code on Github will be updated in the next days, because I am currently very busy with my job.

Special Thanks to [MENTION=7310325]VegaRoXas[/MENTION] for decompiling the stock camera libraries and helping me out understand how the android camera stack works! You are great man!

Please report any bugs here.

Thank you very much:cool: