[Miscellaneous Android Development] Andrian25:
errors

Let's forget for a while about the above patches

In general more time to carefully read and create one log, the error shows exactly

01-27 10:09:32.409 I/CameraHAL( 1503): CameraHAL_GetCam_Info:

01-27 10:09:32.409 D/CameraHAL( 1503): CameraHAL_GetCam_Info: loading libcamera at 0xb000e5a8

01-27 10:09:32.409 I/QualcommCameraHardware( 1503): Found a matching camera info for ID 0

01-27 10:09:32.409 I/QualcommCameraHardware( 1503): HAL_getCameraInfo: orientation = 90

01-27 10:09:32.409 V/CameraHolder( 2520): open camera 0

01-27 10:09:32.419 I/CameraHAL( 1503): CameraHAL_GetCam_Info:

01-27 10:09:32.419 D/CameraHAL( 1503): CameraHAL_GetCam_Info: loading libcamera at 0xb000e5a8

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): Found a matching camera info for ID 0

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): HAL_getCameraInfo: orientation = 90

01-27 10:09:32.419 I/CameraService( 1503): Opening camera 0

01-27 10:09:32.419 D/CameraHAL( 1503): qcamera_device_open: name:0 device:0x1991c cameraId:0

01-27 10:09:32.419 D/CameraHAL( 1503): loading libcamera at 0xb000e5a8

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): openCameraHardware: call createInstance

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): openCameraHardware:Valid camera ID 0

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): createInstance: E

01-27 10:09:32.419 I/QualcommCameraHardware( 1503): QualcommCameraHardware constructor E

01-27 10:09:32.439 I/QualcommCameraHardware( 1503): createInstance: created hardware=0x14a70

01-27 10:09:32.929 I/QualcommCameraHardware( 1503): initDefaultParameters E

01-27 10:09:32.929 F/libc ( 1503): Fatal signal 8 (SIGFPE) at 0x000005df (code=0)

01-27 10:09:33.239 E/QualcommCameraHardware( 1503): Maximum zoom value is 61

01-27 10:09:33.239 I/QualcommCameraHardware( 1503): Parameter Rolloff is not supported for this sensor

01-27 10:09:33.239 I/QualcommCameraHardware( 1503): Sharpness not supported for this sensor

01-27 10:09:33.239 I/QualcommCameraHardware( 1503): Saturation not supported for this sensor

01-27 10:09:33.239 I/QualcommCameraHardware( 1503): setTouchAfAec is not supported for this sensor

01-27 10:09:33.269 I/QualcommCameraHardware( 1503): Parameter AntiBanding is not supported for this sensor

01-27 10:09:33.269 I/QualcommCameraHardware( 1503): Set fps is not supported for this sensor

01-27 10:09:33.279 I/QualcommCameraHardware( 1503): setFlash: flash not supported

01-27 10:09:33.279 I/QualcommCameraHardware( 1503): updateFocusDistances: setting KEY_FOCUS_DISTANCES as 1.000000,2.000000,3.000000

01-27 10:09:33.289 I/QualcommCameraHardware( 1503): initDefaultParameters X

01-27 10:09:33.289 I/QualcommCameraHardware( 1503): createInstance: X

01-27 10:09:33.289 I/CameraHAL( 1503): qcamera_set_callbacks: notify_cb: 0x405b6545, data_cb: 0x405b70e5 data_cb_timestamp: 0x405b7055, get_memory: 0x405b85f5, user :0x19918

01-27 10:09:33.289 I/CameraHAL( 1503): qcamera_enable_msg_type: msg_type:0xd

01-27 10:09:33.289 I/AwesomePlayer( 1503): setDataSource_l('/system/media/audio/ui/camera_click.ogg')

01-27 10:09:33.319 I/OMXCodec( 1503): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

01-27 10:09:33.319 I/OMXCodec( 1503): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

01-27 10:09:33.329 I/AwesomePlayer( 1503): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')

01-27 10:09:33.349 I/OMXCodec( 1503): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

01-27 10:09:33.349 I/OMXCodec( 1503): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

01-27 10:09:33.349 I/CameraHAL( 1503): qcamera_get_parameters

01-27 10:09:34.169 D/dalvikvm( 1931): GC_FOR_ALLOC freed 1095K, 66% free 2797K/8131K, paused 58ms

01-27 10:09:35.789 D/dalvikvm( 1931): GC_FOR_ALLOC freed 1075K, 66% free 2802K/8131K, paused 44ms

01-27 10:09:35.829 I/DEBUG ( 1498): timed out waiting for pid=1503 tid=2539 uid=1013 to die

01-27 10:09:35.829 I/DEBUG ( 1498): debuggerd committing suicide to free the zombie!

It follows that we need to correct libcamera / QualcommCameraHardware

I found example https://github.com/rohan007/android...mmit/4b87e92fc5ff6e44fa61368738dbdc83cff61a46

may need to look for more, but the error log shows exactly QualcommCameraHardware.

use as a basis https://github.com/mmxtrem/device_lge_swift_CM9/blob/master/libcamera/QualcommCameraHardware.h

then put the options you want, change the Id only information about the camera.

Look at the lines 268, there is a normal zoom and unnecessary lines are commented out!