[Resurrected][MOD] LG Cam V3.0 for OTA Based Roms [ (10/28/11)]

Search This thread

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
Bounty Link:
Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself


Bugs List (Last updated 9/5/11)
Code:
-FFC Squished on some versions
-FFC roatated 90 Degrees CW on V1.5 & Up
-FFC @ Full Res Video still shows green boxes (missing libs?)

Update (9/5/11): LG Cam V3.0 -Major Fixes in this one
Testing now... if all goes well expect update package shortly. 2:42AM EST
Stitch Shot: Confirmed working
Panorama Shot: Confirmed Working
Continuous Shot: Confirmed Working
Zoom while recording Video in all modes : Confirmed working
Touch to focus : Confirmed Working
Taking Pictures in portrait flipped : Confirmed working
Recording at 1080P @ 24 FPS / 720P @ 30 FPS : Confirmed Working
Download LG Cam V3.0: Here

Update (8/5/11): LGCam V1.5 - Fxied for Real This Time - for the trolls i mean the update package
Download LGCam V1.5: Here
THIS WILL NOT WORK ON CM7 OR ANYTHING BASED ON CM7/AOSP FOR NOW

Restore AOSP/OTA GB Cam

V1.4
Don't want to talk about it

Code:
V1.5 Updates:
-Fixed ZIP Package, now flashable, I promise (Damn Signtool replaced the com folder :/) :o
-Fixed 1080P @ 24FPS/30 FPS same as stock FROYO
-Fixed Zoom while recording Video
- Stock Cam Icon
- Still needs to fix FFC
-Enjoy, Report any bugs in the thread
-Donate and help me buy a bottle of Belevedere Black:)

V1.4
Burning in hell somewhere
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    96.2 KB · Views: 38,663
  • LGCameraV1.0.zip
    3.4 MB · Views: 750
  • LGCameraV1.0.0.1.zip
    3.4 MB · Views: 745
  • Stock_Gingerbread_Camera.zip
    734.9 KB · Views: 2,680
  • LGCamV1.2-Signed.zip
    4.8 MB · Views: 1,034
  • CM7_Camera.zip
    799.3 KB · Views: 938
Last edited:

OuncE718

Senior Member
Feb 27, 2010
2,219
361
34
DC by way of BK
:D Hey Devs and ofcourse Doniqq first off amazing work on EB i love it. Im using the FR version. Ok so basically I am posting this thread because I figured out for sure why the LG Camera will not work on GB. It is not a lack of drivers like everyone has said. Basically when the Camera.Apk(LG Camera) is launched it looks for Libamce.so (i figured this out by reverse engineering the LG Camera and found the referrence on where it looks for the shared library libamce.so.) I went ahead and tried to push the LG Camera with the libamce.so yet still got a force close, this time the error was a reloc lbrary error looking for a _NZCamera6Connect function. I then went ahead an decompiled the libamce.so and found that it depends on libnvomx.so, then I decompiled libnvomx.so and found that it depends on libm.so, then I tried pushing all three libs to GB and still got a force close. After digging deep enough I found that libm.so depends on libcamera_client.so which I also decompiled and then I found the _NZCamera6Connect fuction is contained here. I attempted to push the libcamera_cleint.so to to GB and boot failed, then I tried editing the update-zip file to include the libcamera_client.so (From Froyo) and boot also failed. I am positive that once we get this libcamera_client.so ported from FROYO to GB the LG Camera will work. Luckily there is no dependency on the framework. This is where I need your help since I know your the dev who made EB possible or any Dev thats out there Faux, Morific Thanks.

Here is the header of the decompiled libamce.so just in case:

I'm no dev, but I just want to thank you for continuing to try and bring the LG cam to Gingerbread. Hopefully a dev will gladly help you out with this issue. Once again thank you for taking the time to try and get this hard headed app to work.

Sent from my LG-P999 using XDA Premium App
 
  • Like
Reactions: chompipe

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL

[depricated as of 9/5/11 - history of lgcam on gb]


Update (8/3/11): LG CAM for CM7 removed until fixed. Too many people were flashing on MIUI and CM7 Based ROMS
New Version for Stock OTA based ROMS coming out tonight.
Proposed fixes include -> 24/30 FPS @ 1080P and Zoom while video recording
Also moved some of the original OP two posts down to clean up the OP.


Update(8/2/11): LG Cam for CM 7 Beta
Below is what you have all been asking for, it is a beta of LG Cam for CM7. If you are willing to take the risk go ahead and flash BUT FIRST MAKE SURE YOU NANDROID. I have also attached CM7 Cam again if it fails to work and/or if you wish to go back. Please update the thread with any errors, logcats preferred.

Edit: Update(8/2/11 @ 4:42AM EST) below.
I was able to Port the LGE folder from GB to CM7 into the framework successfully however now when I open the CAM I am getting a null pointer exception. Anyone willing to help here please.
Code:
I/ActivityManager( 1074): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.ArcCamera } from pid 1279
I/ActivityManager( 1074): Start proc com.android.camera for activity com.android.camera/.ArcCamera: pid=3750 uid=10034 gids={1006, 1015}
D/        (  984): NVRM_DAEMON(819): rt_exist=2, add client ref
D/        (  984): set continue (1280x960)
D/        (  984): set continue (1280x1024)
D/        (  984): set continue (1280x1024)
D/        (  984): set continue (1360x768)
D/        (  984): set continue (1440x900)
D/        (  984): set continue (1680x1050)
D/        (  984): set BetterMode (1280x720)
D/        (  984): set BetterMode (1920x1080)
D/        (  984): set BetterMode (1280x720)
D/        (  984): set BetterMode (1920x1080)
D/        (  984): set BetterMode (1920x1080)
D/        (  984): set BetterMode (1920x1080)
D/        (  984): set BetterMode (1920x1080)
I/WindowManager( 1074): Setting rotation to 1, animFlags=1
I/ActivityManager( 1074): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 seq=7 themeResource=null}
I/PowerWidget( 1243): Clearing any old widget stuffs
I/PowerWidget( 1243): Setting up widget
I/PowerWidget( 1243): Default buttons being loaded
I/PowerWidget( 1243): Button list: toggleWifi|toggleBluetooth|toggleGPS|toggleSound
I/PowerWidget( 1243): Setting up button: toggleWifi
I/PowerWidget( 1243): Setting up button: toggleBluetooth
I/PowerWidget( 1243): Setting up button: toggleGPS
I/PowerWidget( 1243): Setting up button: toggleSound
D/szipinf ( 3750): Initializing inflate state
I/===ArcCamera=== 1.1.0.1( 3750): Performance log:Load so2011-08-02 08:36:10.376 cost:6ms
I/===ArcCamera=== 1.1.0.1( 3750): Performance log:Launch camera

[color="blue"][size="4"]major update 7/28/11[/size]
[/color]
working lg cam on 2.3.3 ota & xborders stock rom (huge thanks to jumaaneface) once the cam is confirmed working on cm7 & aosp the bounty will be paid. I will also be looking into the actual cam app by decompiling source to see if we can fix the 1080p recording to make it record at 30 fps. 

Again thanks to all the supporters and to jumaaneface who made this possible.

:d hey devs and ofcourse doniqq first off amazing work on eb i love it. Im using the fr version. Ok so basically i am posting this thread because i figured out for sure why the lg camera will not work on gb. It is not a lack of drivers like everyone has said. Basically when the camera.apk(lg camera) is launched it looks for libamce.so (i figured this out by reverse engineering the lg camera and found the referrence on where it looks for the shared library libamce.so.) i went ahead and tried to push the lg camera with the libamce.so yet still got a force close, this time the error was a reloc lbrary error looking for a [b]_nzcamera6connect[/b] function. I then went ahead an decompiled the libamce.so and found that it depends on libnvomx.so, then i decompiled libnvomx.so and found that it depends on libm.so, then i tried pushing all three libs to gb and still got a force close. After digging deep enough i found that libm.so depends on libcamera_client.so which i also decompiled and then i found the [b]_nzcamera6connect[/b] fuction is contained here. I attempted to push the libcamera_cleint.so to to gb and boot failed, then i tried editing the update-zip file to include the libcamera_client.so (from froyo) and boot also failed. I am positive that once we get this libcamera_client.so ported from froyo to gb the lg camera will work. Luckily there is no dependency on the framework. This is where i need your help since i know your the dev who made eb possible or any dev thats out there faux, morific thanks.

[b]update(7/27/11): Bounty increased to $100.00 thanks to:
[quote]eleeo037037 :$10
adevilfish :$10
bakedpatato : $5.00[/quote][/b]

[b]major update (7/26/11)
since the ota is official and the lg cam is not contained i am starting a bounty at $75.00 for the first person who can figure this out. I have tried numerous attempts using different approaches to no avail. There are others in the thread who mentioned they will also put up a bounty. I alone will pay $75.00 plus whatever anyone else decides to throw in the pot. [/b]
[b]update 3 (7/22/11): Attempted again to change some files in the framework and upon boot logcat threw error for missing decl from the camera$files in the framework. I pushed the libcamera_client.so from froyo and then the messaged changed to this:
[quote]i//system/xbin/busybox( 1015): Sysctl: /etc/sysctl.conf: No such file or directory
i//system/xbin/busybox( 1015): -k: No such file or directory
i//system/xbin/busybox( 1015): [: 61m: Bad number[/b][/quote]

[b]update 2(7/22/11) : Flashing eb 1.0.5 gr v21e rom with modified framework and it failed, so i pushed libcamera_client.so and it failed, error below [/b]
[quote]- waiting for device -
--------- beginning of /dev/log/main
i/netd    ( 1018): Netd 1.0 starting
--------- beginning of /dev/log/system
i/vold    ( 1017): Vold 2.1 (the revenge) firing up
d/vold    ( 1017): Usb_configuration switch is not enabled in the kernel
d/vold    ( 1017): Volume extsdcard state changing -1 (initializing) -> 0 (no-media)
d/vold    ( 1017): Volume sdcard state changing -1 (initializing) -> 0 (no-media)
d/vold    ( 1017): Volume extsdcard state changing 0 (no-media) -> 1 (idle-unmounted)
w/vold    ( 1017): Duplicate state (1)
d/vold    ( 1017): Volume sdcard state changing 0 (no-media) -> 1 (idle-unmounted)
w/vold    ( 1017): Duplicate state (1)
w/vold    ( 1017): Duplicate state (1)
i/debug   ( 1019): Debuggerd: Jul 15 2011 10:15:43
d/        ( 1029): Open is ok, now, we are in user_land!
D/        ( 1029): Set continue (1280x960)
d/        ( 1029): Set continue (1280x1024)
d/        ( 1029): Set continue (1280x1024)
d/        ( 1029): Set continue (1360x768)
d/        ( 1029): Set continue (1440x900)
d/        ( 1029): Set continue (1680x1050)
d/        ( 1029): Set bettermode (1280x720)
d/        ( 1029): Set bettermode (1920x1080)
d/        ( 1029): Set bettermode (1280x720)
d/        ( 1029): Set bettermode (1920x1080)
d/        ( 1029): Set bettermode (1920x1080)
d/        ( 1029): Set bettermode (1920x1080)
d/        ( 1029): Set bettermode (1920x1080)
d/kipc    ( 1020): Kipc_init()
d/kipc    ( 1020): Address is 127.0.0.1, port is 45211
d/kipc    ( 1020): Binding...
D/kipc    ( 1020): Listening...
D/kipc    ( 1020): Accepting...
D/ganril  ( 1020): Gan ril starting
d/ganril  ( 1020): Entering main loop
d/ganat   ( 1020):  65 6e 74 65 72 69 6e 67 20 6d 61 69 6e 4c 6f 6f
d/ganat   ( 1020):  70 28 29
d/ganat   ( 1020): Gan_at_open
d/ganpsat ( 1020): Gan_ps_at_open
d/ganat   ( 1020): Additional logging enabled. Going to call readline()
d/ganat   ( 1020): Readline
d/ganat   ( 1020): Readline : Before read
i/        ( 1030):  Screencaptured accept lsocket: 9
i/vold    ( 1017): Usb_mass_storage function disabled
e/netlinkevent( 1017): Netlinkevent::findparam(): Parameter 'switch_name' not found
e/netlinkevent( 1017): Netlinkevent::findparam(): Parameter 'switch_state' not found
w/vold    ( 1017): Switch /devices/virtual/switch/usb_mass_storage event missing name/state info
i/rescuestarter( 1026): Rescuestarter 6.3.274 starts
i/rescuestarter( 1026): Ready, waiting for connection
e/netlinkevent( 1017): Netlinkevent::findparam(): Parameter 'switch_name' not found
e/netlinkevent( 1017): Netlinkevent::findparam(): Parameter 'switch_state' not found
w/vold    ( 1017): Switch /devices/virtual/switch/usb_mass_storage event missing name/state info
i//system/xbin/busybox( 1015): Sysctl: /etc/sysctl.conf: No such file or directory
i//system/xbin/busybox( 1015): -k: No such file or directory
i//system/xbin/busybox( 1015): [: 61m: Bad number
i/vold    ( 1017): Usb_mass_storage function enabled
d/vold    ( 1017): Share method ums now available
i//system/xbin/busybox( 1015): Mount: Invalid argument
i//system/xbin/busybox( 1015): Run-parts: /system/etc/init.d/10ext4tuneup exited with code 255
i//system/xbin/busybox( 1015): Starting automatic zipalign 07-22-2011 22:21:12
i//system/xbin/busybox( 1015): Zipalign: Not found
i//system/xbin/busybox( 1015): Zipalign already completed on /data/app/*.apk
i//system/xbin/busybox( 1015): Zipalign: Not found
i//system/xbin/busybox( 1015): Zipalign already completed on /system/app/accountandsyncsettings.apk
i//system/xbin/busybox( 1015): Zipalign: Not found
i//system/xbin/busybox( 1015): Zipalign already completed on /system/app/applicationsprovider.apk
i//system/xbin/busybox( 1015): Zipalign: Not found
i//system/xbin/busybox( 1015): Zipalign already completed on /system/app/bluetoothopp.apk
i//system/xbin/busybox( 1015): Zipalign: Not found
i//system/xbin/busybox( 1015): Zipalign already completed on /system/app/bluetoothpbap.apk
i//system/xbin/busybox( 1015): Zipalign: Not found[/quote]

[b]update 7/22/11 - working on patching and porting elements from the froyo framework to gb[/b]
[img]http://xdaforums.com/attachment.php?attachmentid=662618&stc=1&d=1311355083[/img]

[b](7/21/11)major update:  Lg releases stock gb rom v21e however lg cam is not on board. This thread will.continue until we can successfully port the lg cam to gb. [/b]


[b]update 7/20/2011:
[quote]status update: Spoke with doniqq via pm he is working hard for us (so please thank him) to port the lg cam from froyo to gb. I am going to take another stab at this tonight and check 1 more thing. For those that had/have the nexus 1, i was the one who successfully ported the cm camera to rodriguez miui when everyone thought it was impossible. I am pretty sure the framework.jar is not part of this however when i moved the cm 7 cam to miui i did modify the framework, so i will take a look at this tonight before ruling it out completely.
[/quote][/b]

[b]here is the header of the decompiled libamce.so just in case:[/b]
[quote].plt:000459f4 ;
.plt:000459f4 ; +-------------------------------------------------------------------------+
.plt:000459f4 ; | this file has been generated by the interactive disassembler (ida) |
.plt:000459f4 ; | copyright (c) 2009 by hex-rays,  |
.plt:000459f4 ; | license info: B3-ada1-9d85-df |
.plt:000459f4 ; | licensed user |
.plt:000459f4 ; +-------------------------------------------------------------------------+
.plt:000459f4 ;
.plt:000459f4 ; input md5 : 2ebb5ff4c8e8cf34c40ffc3aed9e8042
.plt:000459f4
.plt:000459f4 ; ---------------------------------------------------------------------------
.plt:000459f4 ; file name : C:\users\flak0-hpn3\downloads\libamce.so
.plt:000459f4 ; format : Elf (shared object)
.plt:000459f4 ; imagebase : 8000
.plt:000459f4 ; needed library 'libcamera_client.so'
.plt:000459f4 ; needed library 'libsurfaceflinger_client.so'
.plt:000459f4 ; needed library 'libui.so'
.plt:000459f4 ; needed library 'liblog.so'
.plt:000459f4 ; needed library 'libcutils.so'
.plt:000459f4 ; needed library 'libutils.so'
.plt:000459f4 ; needed library 'libhardware.so'
.plt:000459f4 ; needed library 'libmedia.so'
.plt:000459f4 ; needed library 'libandroid_runtime.so'
.plt:000459f4 ; needed library 'libc.so'
.plt:000459f4 ; needed library 'libm.so'
.plt:000459f4 ; needed library 'libstdc++.so'
.plt:000459f4 ; needed library 'libdl.so'
.plt:000459f4 ; needed library 'libbinder.so'
.plt:000459f4 ; needed library 'libskia.so'
.plt:000459f4 ; needed library 'libicuuc.so'
.plt:000459f4 ; needed library 'libegl.so'
.plt:000459f4 ; needed library 'libnvomx.so'
.plt:000459f4 ;
.plt:000459f4 ; eabi version: 5
.plt:000459f4 ;
.plt:000459f4

[/quote][/quote]
 
Last edited:
  • Like
Reactions: boricua6 and leoolo

jdkackley

Senior Member
Aug 5, 2010
267
17
Chicago
anybody try contacting faux or morfic to see if they could take a look? They are both very cool guys. I can talk to them if you want.
 

Scyth3

Senior Member
Apr 15, 2010
89
8
I know it wont work but I couldnt tell you why. I thought the same thing and have tried it.

Doesn't Titanimum just back up the apk file and not the compiled shared object?

Even so it'd be scary to think that it would somehow overwrite shared objects, potentially breaking the OS.
 

adevilfish

Senior Member
Jun 20, 2011
297
14
yeah it's a similar reason if you backup DSP Manager from CM7 and try to install it on stock it will basically do nothing.
 

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
hey everyone i am still waiting for some devs to respond. Doniqq said he would take a look and let me know. We are 90% to having the LG Cam on GB.

If anyone else is good with shared objects in Android let me know.
 

Scyth3

Senior Member
Apr 15, 2010
89
8
Can you post the libcamera_client.so decompiled?

In theory this should be fairly simple to compile under gingerbread.
 

sarni84

Senior Member
May 17, 2011
3,066
676
Levittown, PA
Nah he means like talking to them about the camera drivers and what not I'm sure he wont say he'd trying to convert there froyo camera app to work with gingerbread lol they should be pretty reasonable
 

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
Status Update: 7/20/2011 US EST

Status Update: Spoke with Doniqq via PM he is working hard for us (so please thank him) to port the LG Cam from Froyo to GB. I am going to take another stab at this tonight and check 1 more thing. For those that had/have the Nexus 1, I was the one who successfully ported the CM Camera to Rodriguez MIUI when everyone thought it was impossible. I am pretty sure the framework.jar is not part of this however when I moved the CM 7 cam to MIUI I did modify the framework, so I will take a look at this tonight before ruling it out completely.
 

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
Its solved because i believe the reason why the LG cam won't work has been found and the culprit is the libcamera_client.so from Froyo to GingerBread. Its now requires the work of a dev to port. Just saying

Sent from my LG-P999 using XDA App
 
Last edited by a moderator:

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
Thanks to Chuckhriczko who is also jumping on board to help.

Faux responded and respectfully informed me that he is working on several projects however if he has some spare time he will take a look for us.

Sent from my LG-P999 using XDA App
 

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    Bounty Link:
    Use this to Donate to the Project Itself for all of those involved in the hardwork Jface,Doniqq, and myself


    Bugs List (Last updated 9/5/11)
    Code:
    -FFC Squished on some versions
    -FFC roatated 90 Degrees CW on V1.5 & Up
    -FFC @ Full Res Video still shows green boxes (missing libs?)

    Update (9/5/11): LG Cam V3.0 -Major Fixes in this one
    Testing now... if all goes well expect update package shortly. 2:42AM EST
    Stitch Shot: Confirmed working
    Panorama Shot: Confirmed Working
    Continuous Shot: Confirmed Working
    Zoom while recording Video in all modes : Confirmed working
    Touch to focus : Confirmed Working
    Taking Pictures in portrait flipped : Confirmed working
    Recording at 1080P @ 24 FPS / 720P @ 30 FPS : Confirmed Working
    Download LG Cam V3.0: Here

    Update (8/5/11): LGCam V1.5 - Fxied for Real This Time - for the trolls i mean the update package
    Download LGCam V1.5: Here
    THIS WILL NOT WORK ON CM7 OR ANYTHING BASED ON CM7/AOSP FOR NOW

    Restore AOSP/OTA GB Cam

    V1.4
    Don't want to talk about it

    Code:
    V1.5 Updates:
    -Fixed ZIP Package, now flashable, I promise (Damn Signtool replaced the com folder :/) :o
    -Fixed 1080P @ 24FPS/30 FPS same as stock FROYO
    -Fixed Zoom while recording Video
    - Stock Cam Icon
    - Still needs to fix FFC
    -Enjoy, Report any bugs in the thread
    -Donate and help me buy a bottle of Belevedere Black:)
    
    V1.4
    Burning in hell somewhere
    8
    Im just glad someone got it working instead of just talking about it.. *cough* flako *cough*

    You know I have to say something in response to this comment..... Its people like you who destroy the community of XDA Your smart ass comments and constant complaining are not needed and definitely not appreciated. Flak0 kept this issue alive when nobody else cared... and here you come along talking ****. Im surprised nobody else has said anything to you but you should really watch your mouth and show some respect to the people who put there time and dedication into helping us all out... something that you have no concept of. So you can take your "1dolla" shove it and shut up or actually start contributing to the community instead of infecting it.... Flak0 your work was always appreciated and recognized.
    7
    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

    Sent from my LG-P999 using XDA App
    5
    Siresh...take a few weeks away from XDA, cool off.
    Learn how too communicate in a humanly manner.

    Dont disrespect users of any title on xda by name calling or degrading them in any way.

    I have warned you once, i dont warn twice.
    5
    http://www.mediafire.com/?5yp7brqavlqabdj


    THIS WILL NOT WORK ON CM7 OR ANYTHING BASED ON CM7/AOSP



    Flash with recovery