[LG Optimus 4X HD] ksekhar:
Updated to version V5

Changes:

Photos: No over exposure. (0 ev)

Videos: As always videos look good in low light (more or less equal to the brightness you have when taking photos)

Install instructions same as below.

Links:

ADB: http://www.mediafire.com/?z0idch09sgl5r20

CWM: http://www.mediafire.com/?spiv8o9lav017t8

I see more than 60 downloads of v4 but surprisingly no feedback/report from anyone whether you see any difference with this mod. I ll not be able to improve this any further without feedback guys.

--

Please find the updated version V4.

I had to change lot of variables and also had to mod cameraapp to get this working. I used somboons camera apk and his script so you ll have sound off mod in this one. Thanks to somboons.

Also thanks to Somboons for creating automation scripts for us.

Prerequisites

Deodexed rom from here http://xdaforums.com/showthread.php?t=1871858

Firmware v10F

Changes you should notice:

Improvement in video brightness in low lights

Reduced over exposure (only +0.1ev)

Improvement in video quality when making video calls like over Skype/Gtalk

I am also trying to improve sharpness by changing the metering mode and increasing the meter spot size (feedback is important)

Reduced saturation (it helps improving video quality in low lights)

INSTALLATION

Method 1

:

Flash via CWM.

1. Download CWM_Install_Camera_mod_V4.zip

2. Flash it via recovery

Method2:

1. Download the adb_camera_mod_vV4.rar file

2. Extract it

3.run the script

4. let it reboot

5. It also makes backup of the original files so, if you dont like it you can always revert (backup will be at external_sd/backupcamera).

These methods are tested and confirmed working.

Do let me know your feedback.

I really really spent lot of hours understanding and modifying these files. So i dont mind small donation to motivate me to work more on such mods. Thanks.

Links:

CWM: http://www.mediafire.com/download.php?ph3scev44he3mvy

ADB: http://www.mediafire.com/download.php?d307z8c3ex2tm1l

---

I tested this on 10F Swedish rooted phone and confirm that it is working well. Should work on 10D and may be previous versions as well. But i cannot guarantee.

(this is my first ever mod I made it by myself and post it in XDA. So dont flame me if anything is not right, thou I am happy to take your suggestions and improve further).

---

Hi friends,

Finally after 3 days of continuous work (spent at least 20-30 hours on this project) I managed to make a breakthrough in this brightness issue when shooting in semi lit conditions. As mentioned earlier, problem is not with the camera app but with the drivers itself. For some reason LG chose not to support higher ISO or proper adjustment of exposure/brightness/contrast for low light settings (it was the same case on LG optimus 2x as well).

Attached is the modifed camera.tegra.so (camera driver for our LG 4X). You need to copy it to /system/lib/hw using Root Explorer or similar application and set permissions. When possible I ll make flashable zip or some other automated way for everyone and also comparison videos. If anyone can help me with that i'd really appreciate it.

Benefits of this new driver

:

1. Improved image quality. You ll see size of the photos will be about 2.5mb (instead of 1mb). You ll also notice ISO values in low light photos hitting around ISO2500 (even i didnt know that this camera can support such high ISO).

2. Improved visibility in the video recording in low light conditions.

3. Improved bit rate in video recording upto 25mbit/s.

4. Constant 25-30FPS in video recording.

Drawbacks

:

For video recording I increased the brightness level twice as much. So dont use highest brightness when taking videos in dark. If you do so you ll see very high noise.

Comparision videos in both indoor and outdoor

:

https://www.dropbox.com/sh/20rxmifrqzxjgby/dzY4BZuN6E (obviously difference is obvious in indoor than outdoor).

Installation

:

1. Download and extract LG4x_working_camera_driver_20120830.rar

2. Using Root Explorer, go to /system/lib/hw and backup existing camera.tegra.so to camera.tegra.so.bak

3. Copy camera.tegra.so to /system/lib/hw

4. Set rw-r--r- permissions

Reboot.

When you open native camera app you should see the improvements.

Let me know in case you have any questions.

Change log:

V3

: 20120901

a. Reverted to automatic saturation as pictures look better with unmodified one

b. Reduced exposure to +0.3ev so that picutres dont look over exposed yet we ll see some improvement in videos. Should you need higher brightness in videos please use +/- correction. (hard to please all, right?)

c. Reworked on sharpness. Pictures/Videos look much sharper now.

V2 (enhancements)

: 20120830

a. Optimised saturation. Pictures in bright light looks colorful and in low light reduced noise

b. Reduced over exposure on pictures taken in bright sunlight

c. Improved sharpness of the pictures by edge enhancement (read here http://en.wikipedia.org/wiki/Edge_enhancement)

V2 (no enhancements)

:

No saturation or sharpness enhancements but just reduced over exposure.

Also uploaded original file in case you forget backing up :)

As always you are responsible for the changes you make on your device. I dont want you to complain about phone transforming into aliens or turning to paper weights if you use my mods. I am happy to help if I can.

Hope you enjoy my mods. Looking forward for your feedback.

PS: One should not experience any bootloops or any major issues with this mod. So dont be worried :)

-S

----

In this thread I am seeking help to make LG 4X camera better. If you dont know what you are doing then thread is not for you, move on!!!

As I am really frustrated with the dark videos in a semi lit room and as there no other camera apps available to help get better videos I decided to mod the camera myself. I reached a point where I need help from experts here at XDA :)

Camera dark light problem video samples: https://www.dropbox.com/sh/r0xdgyo34oyhlq0/pPF8M8VNcj

To make it clear, problem lies with camera driver not the camera app (and thats the reason why other apps arent of much help). Camera driver is /system/lib/hw/tegra.camera.so

I took drivers from OneX and Asus Transformer Prime as an example (btw Asus prime takes amazing photos/videos even in low light) and modded the driver. Problem lies with ISO settings. Our dear LG 4X doesnt use ISO settings for video recording and seems it cannot change FPS on the fly when it is low light (still tries to record at 30 fps). High ISO and high fps causes dark videos. Read here: http://www.izzyvideo.com/low-light-video/

Now I managed to eliminate dark videos in low light successfully but

1. while taking video view finder is tilted by 90 degrees regardless of what direction you hold it. (see attachment camera.tegra_titled.rar)

or

2. It takes only photos but no videos. (see attachment camera.tegra_partlyWorking.rar)

You ll need HexEdit (http://www.hexedit.com/) to mod these files.

Just extract either of the two attachments and copy the tegra.camera.so file to /system/lib/hw and set permissions. Just backup old one before you do this thou. To save the noobs from flashing this file I put it in rar but not zip.

If anyone wants to know what changes i made, how I made please PM or write below and I can explain. Hoping for helping hands here to solve camera issue :)

-S