[HTC Aria Android Development] munjeni:
About problem with camera:

V/QualcommCameraHardware( 1045): initPreview X: 1

D/QualcommCameraHardware( 1045): frame_thread E

V/QualcommCameraHardware( 1045): runFrameThread E

V/QualcommCameraHardware( 1045): FRAME: loading libqcamera at 0xb000ebf0

I/mm-camera( 1045): Open Device node : /dev/msm_camera/frame0

E/mm-camera 7x-vfe( 1045): Received VFE start ACK!!! This is a user preview start.

V/QualcommCameraHardware( 1045): native_get_maxzoom E

D/QualcommCameraHardware( 1045): Maximum zoom value is 15

V/QualcommCameraHardware( 1045): startPreviewInternal X

V/Camera ( 1053): setParameters

I/CameraHAL( 1045): qcamera_set_parameters: antibanding=off;antibanding-values=off,50hz,60hz,auto;auto-exposure=frame-average;auto-exposure-values=frame-average,center-weighted,spot-metering;contrast=2;contrast-def=2;contrast-max=4;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;exposure-compensation=0;exposure-compensation-step=1;focus-mode=auto;focus-mode-values=auto,infinity,normal,macro;iso=auto;iso-values=auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800;jpeg-quality=90;jpeg-thumbnail-height=384;jpeg-thumbnail-quality=90;jpeg-thumbnail-width=512;luma-adaptation=3;max-contrast=4;max-exposure-compensation=2;max-saturation=4;max-zoom=20;min-exposure-compensation=-2;picture-format=jpeg;picture-format-values=jpeg,raw;picture-size=2560x1920;picture-size-values=2592x1728,2560x1920,2560x1712,2048x1536,2048x1360,2016x1344,1600x1200,1584x1056,1280x960,1280x848,1248x832,1024x768,640x480,640x416,624x416,512x384,400x400,272x272;preferred-preview-size-for-video=480x320;preview-format=yuv420sp;prev

V/QualcommCameraHardware( 1045): setParameters: E params = 0x40f7639c

V/QualcommCameraHardware( 1045): requested preview size 320 x 240

I/QualcommCameraHardware( 1045): set fps is not supported for this sensor

V/QualcommCameraHardware( 1045): requested picture size 2560 x 1920

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 14, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_WB

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 15, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_EFFECT

V/QualcommCameraHardware( 1045): setFlash: flash not supported

V/QualcommCameraHardware( 1045): Set zoom=0

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 2, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_ZOOM

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 7, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_EXPOSURE_COMPENSATION

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_HJR

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 26, length 4

D/mm-camera-ctrlcmd( 1045): md.d.aec_iso_mode = 0

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_ISO

V/QualcommCameraHardware( 1045): setting contrast 2

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 6, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_CONTRAST

V/QualcommCameraHardware( 1045): setting saturation 2

V/QualcommCameraHardware( 1045): native_set_parm: fd 13, type 11, length 4

V/QualcommCameraHardware( 1045): native_set_parm(CAMERA_SET_PARM_SATURATION

V/QualcommCameraHardware( 1045): setParameters: X

E/mm-camera( 1045): cam_frame: MSM_CAM_IOCTL_RELEASE_FRAME_BUFFER error Invalid argument

we fail here -> void QualcommCameraHardware::runFrameThread(void *data)

Function QualcommCameraHardware::runFrameThread(void *data):

we newer reached end of function and log message LOGV("runFrameThread X"); !!! I analysed liboemcamera.so and found that cam_frame: MSM_CAM_IOCTL_RELEASE_FRAME_BUFFER error Invalid argument come from liboemcamera... see string from liboemcamera:

[root@Cardsharing-X ~]# strings /root/android/system2/vendor/htc/liberty/proprietary/liboemcamera.so | grep "cam_frame"
cam_frame
cam_frame: MSM_CAM_IOCTL_GETFRAME error: %s
cam_frame: MSM_CAM_IOCTL_RELEASE_FRAME_BUFFER error %s

so preview definitely fail from runFrameThread that is executed from init_preview... s0be do you have idea? I have working camera ui with black screen for about 4 sec and than camera crashing! I no want to use prebuilt libcamera.so, I want to compile one that we will be able to modific in any time when we want, so I think using prebuilt library is wasting of time, definitely we need an compiled from source! If someone want to help me here is source that I trying to get working -> http://gitorious.org/ics-on-htc-aria/master/trees/master/device/htc/liberty/libcamera

EDIT:

pushed new commit -> http://gitorious.org/ics-on-htc-aria/master/commit/bcf398eccfc81449d93a68750bff6b021c83fd3b/diffs maybe camera preview will work now :)... in any way need help from recognised developers like great s0be, he understand it better than me!