yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] mmapcpro:
I really haven't read much complaining about artifacts and pixelation, nor have I experienced that with either camera. The complaining was mostly about 2 things: 1) MUCH darker image, both on the display as well as the picture taken, and 2) MUCH fewer and less user-friendly customization settings within the interface itself.

Changing the exposure to +1, +2, or +3 doesn't quite cut it...yes, it makes the overall picture brighter, but then you end up with certain parts of your picture overly bright and washed out. There is definitely something more going on beyond just exposure and focus settings. And I don't know about you, but when I'm out and about, trying to take pictures of family and friends, they don't particularly like holding poses for 5 minutes while I try manually adjust every setting on the camera in hopes that I can get a decent shot.

The stock LG camera just took a much better picture...brighter, more evenly balanced lighting, and without having to manually adjust anything. It seems that this modified version will at least offer us a solution for the 2nd complaint, but I'm sure MOST of us are very hopeful and anxiously awaiting to find out if we will regain our stock image quality.

As it stands right now, if I KNOW I'm going out on a special occasion and will definitely be taking pictures, I flash back to stock froyo rom for that night. But for every other time, I just enjoy the customization of CM7 too much to let it go. But sometimes I wanna take an impromptu picture while I'm on my CM7 rom, and it just gets me frustrated. It sucks that I have to make a choice between camera and android experience.

I think I'm not alone in this, which is PROBABLY why the OP, several other devs, and countless xda members have put so much effort AND $$$ into this modification. I'm pretty sure everybody involved already knows how to wait for gallery to fully load the pic before judging it's quality.
[T-Mobile LG G2x] eagle1967:
yeah

YEah thats what i was thinking since qik works with the front facing camera. thought it may be possible to look through and recognize something or maybe find another .so file needed.

just an idea.
[T-Mobile LG G2x] Danishswag:
@yodataco

I did't want to quote all of that. I hadn't ever thought of the gallery not showing the pictures well and that could be part of the problem, however I do notice the difference on the computer

Just look at the size of the files. For me the LG cam pictures are larger (file size) than the stock camera ones. That's also why I've been so sad to lose that, although I still prefer cm7 based roms.

Thanks everybody who's working on this by the way, we all appreciate it.
[T-Mobile LG G2x] flak0:
Your welcome. New version will be up shortly. Doniqq is the man, now all we have to fix is the FFC
[T-Mobile LG G2x] Schizoeffective:
Are there any other phones that run Ginger bread and have the LG cam?
[T-Mobile LG G2x] Xenolance:
I seem to be having an odd issue. Running xBoarders latest Stock/Tweaked GB OTA and it keeps telling me the memory is full when I use internal storage, but can save to my external SD card fine. Did a search and seems I'm the only one. I did a clean flash, etc. Should I revert to stock GB cam and then back to this one again?

Wait wait wait.. False alarm. I was sitting here and noticed a little sync icon at the top, Google Music was busy downloading 20GB of music onto a 8 gig SD card. its been a long day.
[T-Mobile LG G2x] queman2010:
I'm running xBoarders latest Stock/Tweaked GB OTA 1.2.2 and LGCamV1.2.1. Not have any issues but FFC same issue (stretched image) Picture quality seems to be good.
[T-Mobile LG G2x] flak0:
New version will be posted shortly. I am having trouble downloading from the link doniqq sent on my phone.
[T-Mobile LG G2x] KingDavid63:
Works good on eblood 107
[T-Mobile LG G2x] flak0:
New Version Posted. OP Updated. Sorry for the wait, I was at the gym
[T-Mobile LG G2x] queman2010:
Anyone else having issues with the update. Flashed and received error installed aborted on xBoarders latest Stock/Tweaked GB OTA 1.2.2
[T-Mobile LG G2x] steve841:
Yep.... same results here with same ROM
[T-Mobile LG G2x] Schizoeffective:
Me too install aborted
[T-Mobile LG G2x] billydroid:
Same on eb :(
[T-Mobile LG G2x] bimmer325:
Yup.. Installation Aborted on EB 1.0.7.....
[T-Mobile LG G2x] Schizoeffective:
I'm using regular ota rooted with green icon tweaks cry animation tweak
[T-Mobile LG G2x] Schizoeffective:
Crt animation*
[T-Mobile LG G2x] bimmer325:
Woops

Wooops.. EB changelog says updated LG Camera.. I have to reflash..:rolleyes:
[T-Mobile LG G2x] tantan20171:
Same here installation aborted :(
[T-Mobile LG G2x] bimmer325:
Its working on EB...

This is what I did:

1.Factory reset

2.Wipe Dalvik

3.Format system

I don't know if a factory reset would have done it... but I decided to do all of those steps.
[T-Mobile LG G2x] FastJoe78:
Not working on EVIL GB 2.0.2...install aborted
[T-Mobile LG G2x] Schizoeffective:
Noob question if I do that on my rom will it delete my apps and stuff
[T-Mobile LG G2x] bimmer325:
You have the stock rooted rom right?

If you flash the Eaglesblood 1.0.7 rom.. it will delete the apps.. but the LG camera will be flashed with the rom.

... or you can just wait until there is a fix for the aborted installation..
[T-Mobile LG G2x] leoolo:
yep 2..... xborderes install aborted
[T-Mobile LG G2x] Schizoeffective:
It must be eb specific
[T-Mobile LG G2x] queman2010:
Just wait for the fix, that would suck to have to redo your entire phone just for the camera.:rolleyes:
[T-Mobile LG G2x] Schizoeffective:
Yea ur right queman cause I like my phone the way it is,:( maybe its cause he uploaded it from his phone. Maybe tonight he will fix it I hope I wanna try it out.
[T-Mobile LG G2x] flak0:
Ooops Camera.apk was not signed right thats why the installation is aborting. Can someone please sign the Camera.apk and PM it to me. Im at work. Thanks.

OP Updated
[T-Mobile LG G2x] Schizoeffective:
Does open updated mean that someone signed it lol
[T-Mobile LG G2x] flak0:
lol no. It means I updated the OP and removed the link to the file
[T-Mobile LG G2x] jabhome:
Would love to help, how does one going about signing the camera.apk. Just trying to learn.

Just googled "how to sign and APK" and it tooks like it is fairly compllicated and required adb so I am out. Learning at work is not the best time for an education.
[T-Mobile LG G2x] flak0:
You have to download a tool called "autosign.bat" its made by the same guy who created the themer for android . If you look in the g1 fiorums under apps&themes its stickied there. Or you can google. You need the latest JDK from Oracle.
[T-Mobile LG G2x] doniqcc:
Flak0

The files that I sent u earlier it's not flashable.zip u have to make a flashable.zip no need for signing app or I'll make a flashable.zip a little later getting off work soon.
[T-Mobile LG G2x] jeep447:
I feel like a crackhead waiting for my dealer to get off work! LOL :D

Sent telepathically using the new "Mind Control" app on the market...Didn't believe it worked until I tried it myself!
[T-Mobile LG G2x] Schizoeffective:
Lol same here
[T-Mobile LG G2x] pettigrew95:
Trying to install zip from SD in CWM with Cam 1.4 but says installation aborted...is it applying though? Thanks.
[T-Mobile LG G2x] jabhome:
Go back two pages and read, bad apk.
[T-Mobile LG G2x] pettigrew95:
Sorry should have looked first, thanks for clarifying.
[T-Mobile LG G2x] jeep447:
Ok I gotta question just because I'm curious..Since it's not a flashable zip yet is it basically just an apk zipped up? If it is would it work the same if I just took the apk out of the zip and pushed it with adb? I'm gonna wait for a flashable one anyway but just wanted to see if that would work or if there's actually way more involved than that :D

Edit: Answered my own question by opening the zip! :D

Sent telepathically using the new "Mind Control" app on the market...Didn't believe it worked until I tried it myself!
[T-Mobile LG G2x] eagle1967:
flaq

check your pm's

sorry flak0
[T-Mobile LG G2x] flak0:
Dude I totally spaced it earlier when I came back from the gym. I hurried drank my protein shake and hurried to edit the res and sign the zip but totally forgot to look for the com-android-google folder in the hash folder. My bad..

Anyways OP Updated with correct flashable zip. Please thank Doniqq for his fixes. I can confirm 1080 P @ 24/30 FPS working and zoom during video (even though it doesnt zoom yet). All thats left is the FFC since its rotated and fixing the double flash before the final flash. I need a drink after work lol.....
[T-Mobile LG G2x] c_brown93:
I still got a installation aborted with the new file.
[T-Mobile LG G2x] eagle1967:
yeah

I let him know , think he uploaded the wrong file that one is still not flashable.
[T-Mobile LG G2x] queman2010:
Yup same here! same error message
[T-Mobile LG G2x] flak0:
Ok for real this time its fixed. The tool I used to sign the file replaced the whole folder and deleted the update-script

Op Updated : Download Here
[T-Mobile LG G2x] burhanistan:
Sorry, it force closes for me immediately after opening. It flashed ok, but doesn't work. I'm on Xboarder's tweaked OTA 2.3.3 ROM.
[T-Mobile LG G2x] queman2010:
Installed but force closes on xboarder56 OTA 2.3.3 v1.2.2
[T-Mobile LG G2x] flak0:
this is nuts. ..... I am having bad luck with this file tonight. Ill look at it again one more time and reupload again.

edit figured out the problem. libnvomx.so gets deleted by the script but was not in the zip package. Reuploading now. Version changed to 5 cuz 4 is pissing me off.
[T-Mobile LG G2x] burhanistan:
Thanks. Don't kill yourself on it. If you're worn out we won't die if we have to wait another day.
[T-Mobile LG G2x] queman2010:
burhanistan, I was just going to say the same thing. Its all good man we appreciate all your hard work. We can wait until tomorrow.:cool:
[T-Mobile LG G2x] FatalityBoyZahy:
Force Close on EaglesBlood 2.3.3, can't wait for the fix!
[T-Mobile LG G2x] flak0:
V1.5 in the OP and below. I flashed it twice and its working...

Download Here

Report any issues, or if you know how to fix the FFC let me know. That is the last most important thing left.
[T-Mobile LG G2x] FatalityBoyZahy:
<33333 we love you!
[T-Mobile LG G2x] doniqcc:
Eb 2.3.3 ROM has the updated camera already .

Anyway flak0 will fix it soon.

And there u go LOL
[T-Mobile LG G2x] flak0:
Is it working for everyone else?
[T-Mobile LG G2x] flak0:
lol yup 8 mins til I leave work .
[T-Mobile LG G2x] queman2010:
Nope still FCC on xboarder56 OTA 2.3.3 V1.2.2
[T-Mobile LG G2x] c_brown93:
FC as soon as I open. 1.5.
[T-Mobile LG G2x] flak0:
ahhhhh I will take care of it when I get home. This is ridiculous. I dont know whats wrong. I have adb and Ubuntu there.
[T-Mobile LG G2x] queman2010:
Yup its cool, I'll check back in in the morning.
[T-Mobile LG G2x] c_brown93:
Don't stress man.

You'll get it.
[T-Mobile LG G2x] Jason_V:
Does the Optimus 2x use the same camera that we are trying to include here? Haven't they released the GB update for the Korean markets out something? Just curious if those libraries might help.
[T-Mobile LG G2x] pettigrew95:
So if I'm running EB 2.3.3 1.07 then I don't need LGCam 1.5 correct? Thanks!
[T-Mobile LG G2x] doniqcc:
Correct :)
[T-Mobile LG G2x] Razorblood:
I get force close on Xboarders tweaked 2.3.3. Would switching to EB 2.3.3 make it work? Talking about v 1.5. Thanks.
[T-Mobile LG G2x] pettigrew95:
If you switch to EB 2.3.3 1.07 then you don't need this...that ROM comes with LGCam 1.5 already.
[T-Mobile LG G2x] Schizoeffective:
1.5 still doesn't work :(
[T-Mobile LG G2x] flak0:
Testing before I post the fixed version. (that way you dont have too =) )

Edit:Confirmed it works. OP Updated

If your lazy download here
[T-Mobile LG G2x] Schizoeffective:
Yaaay
[T-Mobile LG G2x] Razorblood:
Thanks. I might switch to EB but I'm getting tired of switching roms. I want to play my games. PvZ, Peggle, etc lol. The cam looks great. V1.5 didnt work for me but thanks for the update of you testing it. Cant wait.
[T-Mobile LG G2x] flak0:
EB is by far the most stable ROM for the G2x. I used to be a hardcore CM fan since the g1 days but they just cant get it quite right yet atleast until LG releases the source. Doniqq has done an amazing Job on all EB versions.

Special Thanks for helping with the CAM bro, u helped bring a dream and something LG couldn't do a reality.
[T-Mobile LG G2x] bakedpatato:
Looks like CM7 97 added some camera fixes (flip reset on nvidia cameras and a P999 specific hack for the front facing camera). Still too scared to try installing this though ;)
[T-Mobile LG G2x] flak0:
Dude that maybe what we need to get the FFC to work right. Im going to peak in CM github for a bit. Cant hurt right
[T-Mobile LG G2x] bakedpatato:
Save you a bit of time
[T-Mobile LG G2x] burhanistan:
Holy crap. It....works! (Xboarder's tweaked OTA 2.3.3)
[T-Mobile LG G2x] nucleartoasteroven:
Flashing 97. I had problems with oovoo and vtok as well, and I will see if this fixes it. If you want me to test out a new update for cm7, I'm up for it.

BTW, shoutout to all the people involved, thanks so much, we really appreciate all your hard work!!! Don't stress about these problems, we can wait as others have said :)
[T-Mobile LG G2x] pdxmatts:
I'm on that Rom v1.2.2 and it just force closes :( Are you talking about the new camera version 1.5?
[T-Mobile LG G2x] flak0:
Finally lol
[T-Mobile LG G2x] flak0:
Thanks bro, it seems I wont be able to use it since the Gerrit entry and fix is specifically in the libcameraservice.so =(

Damn LG for not open sourcing
[T-Mobile LG G2x] flak0:
Did u download the newest one?
[T-Mobile LG G2x] bakedpatato:
Yeah, I was going to say...but it does mean that there will be less of a hurdle when we get the CM7 port rollin? :cool: And LG's not too bad about OSS...*cough HTC *cough
[T-Mobile LG G2x] flak0:
lol True.. So dude maybe you can help me. I noticed in the new Cam that Doniqq modified the FFC is now flipped 90 degrees to the right but when you take a picture it shows it right side up so we are getting closer. My question is do you know where in the actual apk when decompiled do I see the FFC code?
[T-Mobile LG G2x] bakedpatato:
He probably applied a flip before displaying it on the screen(*think think think) I would do that in java by flipping orientation(something like:

import android.hardware.camera;
Camera cam=cam.open(1); //selects ffc
cam.setDisplayOrientation(//degree offset);
//set surface to render Preview
//render preview

Google also has some sample code to set the camera to the current display orientation...

Otherwise I don't know ;)
[T-Mobile LG G2x] flak0:
hmm do you think he backsmali / smali?

I cant understand smali lol
[T-Mobile LG G2x] bakedpatato:
Heh I can barely understand smali...4 years of CS and much learning about stack/heap machines and some classes on java bytecode...

I wouldn't use dex asm(or smali) cause it's so much easier to just do it at an higher level (ie: java) then again...I wouldn't count it out. Wouldn't be hard to create the method in Java and then smali it to see how it works and then copy the smali in:D
[T-Mobile LG G2x] flak0:
Hmm very true. So I decompiled the Camera using Dex2JAr and im reviewing the code however Still I dont see where the FFC is?

Dude I attached the Dex2Jar and the Java Decompiler so you can take a look. Open the Java Decompiler then open the file Camera_dex2jar.jar. Thanks
[T-Mobile LG G2x] pdxmatts:
I dl'd the 1.5 zip on the first post. I will try the zip that you put in Xboarders thread and see if that works.
[T-Mobile LG G2x] bakedpatato:
Ok got all the .class files...

I'll install 2.3.3 and DDMS this guy tomorrow(i'm taking a day off work tomorrow and i'm effing tired now)...but I bet doniqq will have a good laugh at this;)

Can't guarantee you anything though. :p
[T-Mobile LG G2x] pdxmatts:
Ok, that worked, but ffc view is sideways. When you take a ffc pic it turns out right side up and grainy green. The action box is still sideways. The back camera pics save upside down :(
[T-Mobile LG G2x] bakedpatato:
Mmmkay for those of you following in at home it seems like the "camera" is implemented in com.arcsoft.android.camera.engine...now to find which one of these guys controls ffc. Remember RTFM ;)
[T-Mobile LG G2x] flak0:
Dude thanks for all your help. I am learning :-D
[T-Mobile LG G2x] jsauce75:
Jesus! When do you guys sleep?
[T-Mobile LG G2x] tantan20171:
I was trying to create a logcat because at the beginning when I first recorded a video and deleted the video the screen froze up on me but I can still press buttons... so when I put the still camera button the app fore closed on me. But know its not doing it again????? Weird....I understand the zoom while recording still doesn't work but hey to get this far is amazing.

... flak0 I still wanna pinch in for the bounty I got some money saved up man... where's the links señor???

P.s here's a logcat it did it again :)
[T-Mobile LG G2x] basilbasha:
Is 1.5 also gonna fix the auto brightness/ white balancing issue for darker photos ? Or is that impossible to be fixed on GB builds?!! I went back to froyo and waiting for this issue to be fixed :(
[T-Mobile LG G2x] bakedpatato:
sleep is for the weak!
[T-Mobile LG G2x] steve841:
Thanks for taking the time gentlemen... excellent work!

In my few minutes of testing .... I see definite picture quality improvement by turning IMAGE stabilization OFF and brightness up about 2 ticks.

Anyone else have suggested settings?
[T-Mobile LG G2x] FatalityBoyZahy:
Squished FFC is fixed, but the orientation is messed up -.-

But eh, I don't use FFC THAT much, but everything else works great! :D
[T-Mobile LG G2x] queman2010:
flak0, good work man! Now we just need to get the FFC and we are good. :D
[T-Mobile LG G2x] queman2010:
Seems to be some issues with the screen orientation after the pictures are taken. They are coming out upside down. And has anyone noticed when you take a picture the options at the top "Rename", "Set as", "Share" screen turn horizontal?
[T-Mobile LG G2x] steve841:
Xboarder 1.2.2 rom ... and I don't have any of those issues at all.

EDIT: See future post ... issues noted.
[T-Mobile LG G2x] flak0:
The LG cam is working on GB?
[T-Mobile LG G2x] jabhome:
I think they are taking DSP Manager.
[T-Mobile LG G2x] nextgin:
The camera app is a big deal. There were a lot of features built into LG's camer apk. Stock android doesn't do nearly any of it. 8MP camera is only as good as the software.
[T-Mobile LG G2x] mmapcpro:
Yes it is that big of a deal...the aosp camera is very dark and the resulting picture quality is very poor in comparison to that of the LG interface.

Obviously it's not that important to you, and that's fine. People spend their money for different reasons, and I respect that. But for many of us, one of the major selling points of this phone was the absolutely fantastic images that we could capture to the phone and then instantly share them. Since I'm not much of a gamer, and any phone can text, voice, and web...it seems that the camera is a pretty important component.
[T-Mobile LG G2x] overground:
This thread is not a debate about the value of the LG camera, nor is it about DSP Manager. Please stay on topic.

Wanna thank the OP for working on this project hit, click, the "Thanks" button.

Don't clutter the thread with thank yous.

Let me help:

Skin: XDA 2010

Bottom of each post click on ---------->

​
[T-Mobile LG G2x] flak0:
Hey everyone i will continue trying to Port the LG Cam to GB. I will do more hacking when i get home from work tonight
[T-Mobile LG G2x] Yuhfhrh:
Maybe we need to start a bounty to get more dev's involved. Ill donate to whoever can get this working!
[T-Mobile LG G2x] Flucero28:
+1! I will also donate. The AOSP camera is so bad that I am debating going back to froyo.
[T-Mobile LG G2x] Suprah:
Lol I see u deleted my posts. Good one
[T-Mobile LG G2x] c_brown93:
IF SOMEONE GETS THIS WORKING I WILL JIZZ MY PANTS.
[T-Mobile LG G2x] yodataco:
Since the LG Camera drivers are obviously lost to froyo, is it possible to port camera drivers from another Tegra2 device? Say the Galaxy Z, Droid X2 or Moto Atrix? Maybe there is a way to get the LG, or another camera, working with research into those devices?
[T-Mobile LG G2x] flak0:
Hmm i never thought of this. Its worth a shot.
[T-Mobile LG G2x] flak0:
OP updated with bounty information
[T-Mobile LG G2x] lindel:
I found this LG camera apk. It loads, looks to have most or all of the options of the froyo camera app. When you press the shutter, you'll get a circular "wait" icon in the center of the screen. It does not force close, but it doesn't take a picture either.

Download is here: MOD EDIT: WAREZ NOT PERMITTED HERE

I don't know if it'll help or not, it might even be the stock froyo camera. If you can use it or do something with it, I'll be happy.
[T-Mobile LG G2x] flak0:
What phone is this from?
[T-Mobile LG G2x] lindel:
I'm not sure, in fact, I'm not positive it's from an LG phone at all. I played with it some more and it will record video, I have yet for it to actually take a picture.

Sorry I'm not much help, but I'm not a software person.
[T-Mobile LG G2x] overground:
It is a paid app in the Market "LG Camera PRO", thus making the link, warez.
[T-Mobile LG G2x] eleeo037037:
Flako you can add 10$ on my behalf to the bounty if anyone can get a good working port.
[T-Mobile LG G2x] adevilfish:
and another $10 from me for that matter.

my worry though is that there is some significant reason why it's not in the GB OTA.
[T-Mobile LG G2x] bakedpatato:
I'll add $5 to the pot to make it a round benji but...

Exactly.Not doubting you flak0 but if LG decided it was better to release GB without the app something's up...
[T-Mobile LG G2x] queman2010:
Interesting I have the same rom.....
[T-Mobile LG G2x] burhanistan:
File names

One thing that v1.5 doesn't do that most cams do is put the date/time in the file name of each picture. Dunno if that was intentional or an oversight?
[T-Mobile LG G2x] SOULJAHX6:
** Bug Report **

Hey Im using Xboarder's Stock Tweaked OTA Gingerbread build v1.2.2 and installed the LG v1.5. Only bug to report is that when I have FFC on and I have the phone vertical the camera is Horizontal and when I have the phone horizontal the camera is horizontal upside down.
[T-Mobile LG G2x] Schizoeffective:
Weird thing I went back to stock gb cam and video recording won't open it force closes
[T-Mobile LG G2x] queman2010:
I went back to the LG Cam V1.2.1 for now until some of the issues are resolved. It works well except FFC, 1080p 14 frames per sec. and Icon which I think this icon is kinda cool..lol So for now I just wait.
[T-Mobile LG G2x] bakedpatato:
I think the LG cam follows the exif standards by listing its pictures as "ANDO_xxx" (or something like that)instead of the AOSP's cam's date time scheme,correct?
[T-Mobile LG G2x] Schizoeffective:
Stock cam doesnt let me record what should I do I went from stock to 1.5 to stock again
[T-Mobile LG G2x] siresh:
Anyone mention that when u take a vertical photo and preview it the camera flips it upside down . Or is it just mine?
[T-Mobile LG G2x] steve841:
This I can confirm this is a bug ....

One other weird thing I just noticed .... I took a bunch of pics and deleted them ... rebooted phone ... those pics remained in the gallery when I opened the camera app.
[T-Mobile LG G2x] queman2010:
Yup that was the issues that I was getting
[T-Mobile LG G2x] bimmer325:
Anyone try continuous shot?

In Settings > Shot mode > Continuous shot

Continuous Shot doesn't appear to be working..
[T-Mobile LG G2x] flak0:
That just means the thumbnail cache needs to b cleared.

Thanks everyone for reporting the bugs. I am going to work on this tonight, I'm going Camaro shopping today ;-)
[T-Mobile LG G2x] FatalityBoyZahy:
That's not a bug. That's how the app always was.
[T-Mobile LG G2x] overground:
I don't think so. I'm using the stock Froyo and there's nothing weird with those button orientations in either landscape or portrait.
[T-Mobile LG G2x] burhanistan:
Nah, I'm pretty sure the app worked normally in the original Froyo ROM.
[T-Mobile LG G2x] queman2010:
Yeah thats what I remember as well, I think its something for us to look into.