Very interesting, what LG has done in there camerApp.apk:
I've testing a little bit with some other config in build gingerbread from source, removed the gingerbread camera and deodexed the original shipped camera app from LG and have started it for testing:
Code:
I/dalvikvm( 1733): Could not find method android.hardware.Camera$Parameters.setGpsLatitudeRef, referenced from method com.lge.camera.CameraApp.takePicture
W/dalvikvm( 1733): VFY: unable to resolve virtual method 163: Landroid/hardware/Camera$Parameters;.setGpsLatitudeRef (Ljava/lang/String;)V
D/dalvikvm( 1733): VFY: replacing opcode 0x6e at 0x00dc
I/dalvikvm( 1733): Could not find method android.hardware.Camera$Parameters.setExifDateTime, referenced from method com.lge.camera.CameraApp.takePicture
W/dalvikvm( 1733): VFY: unable to resolve virtual method 158: Landroid/hardware/Camera$Parameters;.setExifDateTime (Ljava/lang/String;)V
D/dalvikvm( 1733): VFY: replacing opcode 0x6e at 0x0166
D/dalvikvm( 1733): VFY: dead code 0x00df-0143 in Lcom/lge/camera/CameraApp;.takePicture ()V
D/dalvikvm( 1733): VFY: dead code 0x0169-0190 in Lcom/lge/camera/CameraApp;.takePicture ()V
D/dalvikvm( 1733): VFY: dead code 0x023f-024c in Lcom/lge/camera/CameraApp;.takePicture ()V
I/dalvikvm( 1733): Could not find method com.lge.provider.Andy_Flex.getUserFlexValue, referenced from method com.lge.camera.CameraApp.onCreate
W/dalvikvm( 1733): VFY: unable to resolve static method 1772: Lcom/lge/provider/Andy_Flex;.getUserFlexValue (Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
D/dalvikvm( 1733): VFY: replacing opcode 0x71 at 0x006f
D/dalvikvm( 1733): VFY: dead code 0x0072-00a6 in Lcom/lge/camera/CameraApp;.onCreate (Landroid/os/Bundle;)V
Question 1)
What does Flex ? there is a database in /etc/flex (in froyo) and in kernel it exists a module that is no modular but hard coded.
It can not be start as a service, nor exists a library ... seems like confused for me.
Question 2)
Does LG try to get GPS vars before the app can start ? after this lines there is a FC coming and thats it with the camer app ...
### EDIT:
@mik
have tested today the camera sources from swift project (LG GT540), but no luck - it compiles, but nothing happens
Would you see the logcat ?