[Miscellaneous Android Development] :
We can fix camera.I flash my phone with Android 4.2.2 ,kernel ,lmmortal KERNEL and CameraAOKP.I can select record video or photos .

Please view this

-------- beginning of /dev/log/system

W/InputMethodManagerService( 1868): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40f6aad0 attribute=android.view.inputmethod.EditorInfo@4115fec8, token = android.os.BinderProxy@411de560

I/ActivityManager( 1868): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.cyanogenmod.trebuchet/.Launcher} from pid 1868

--------- beginning of /dev/log/main

D/dalvikvm( 3322): GC_CONCURRENT freed 550K, 49% free 3975K/7700K, paused 4ms+12ms, total 124ms

I/ActivityManager( 1868): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.gallery3d/com.android.camera.CameraLauncher bnds=[0,319][80,419]} from pid 3322

D/skia ( 3710): new locale en-Latn-US

I/CameraHAL( 1490): CameraHAL_GetCam_Info:

D/CameraHAL( 1490): CameraHAL_GetNum_Cameras: loading libcamera at 0x4078bc90

V/CameraHolder( 3710): open camera 0

I/CameraHAL( 1490): CameraHAL_GetCam_Info:

D/CameraHAL( 1490): CameraHAL_GetNum_Cameras: loading libcamera at 0x4078bc90

I/AwesomePlayer( 1490): setDataSource_l(URL suppressed)

D/MediaExtractor( 1490): returning default extractor

I/AwesomePlayer( 1490): setDataSource_l(URL suppressed)

D/MediaExtractor( 1490): returning default extractor

I/CameraClient( 1490): Opening camera 0

D/CameraHAL( 1490): qcamera_device_open: name:0 device:0x59554 cameraId:0

D/CameraHAL( 1490): loading libcamera at 0x4078bc90

E/QualcommCameraHardware( 1490): openCameraHardware: call createInstance

D/QualcommCameraHardware( 1490): createInstance: E

E/QualcommCameraHardware( 1490): Storing the current target type as 1

E/QualcommCameraHardware( 1490): constructor EX

E/QualcommCameraHardware( 1490): startCamera E

E/QualcommCameraHardware( 1490): loading liboemcamera at 0x4095eed8

V/StateManager( 3710): startState class com.android.gallery3d.app.PhotoPage

I/QualcommCameraHardware( 1490): startCamera: camsensor name s5k5caga, flash 0

E/QualcommCameraHardware( 1490): startCamera X

E/QualcommCameraHardware( 1490): initDefaultParameters E

E/QualcommCameraHardware( 1490): setParameters: E params = 0x5fd70

E/QualcommCameraHardware( 1490): requested preview size 384 x 288

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

E/QualcommCameraHardware( 1490): requested picture size 1024 x 768

E/QualcommCameraHardware( 1490): Parameter AntiBanding is not supported for this sensor

E/QualcommCameraHardware( 1490): Auto Exposure not supported for this sensor

D/QualcommCameraHardware( 1490): CAMERA_SET_PARM_WB

E/QualcommCameraHardware( 1490): native_set_parm: fd 30, type 15, length 4

V/NFC ( 3710): this device does not have NFC support

W/SensorService( 1868): sensor 00000000 already enabled in connection 0x344370 (ignoring)

D/CameraStorage( 3710): External storage state=mounted

D/libEGL ( 3710): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL ( 3710): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL ( 3710): loaded /system/lib/egl/libGLESv2_adreno200.so

D/OpenGLRenderer( 3710): Enabling debug mode 0

I/CAM_ScreenNail( 3710): preview layout size: 320/480

I/CAM_ScreenNail( 3710): aspect ratio clamping disabled

I/GalleryEGLConfigChooser( 3710): Config chosen: R8 G8 B8 A8 D24 S8 ID6 CAVEAT12344

I/GLRootView( 3710): onSurfaceChanged: 320x480, gl10: com.google.android.gles_jni.GLImpl@40ed1c00

I/GLRootView( 3710): layout content pane 320x480 (compensation 0)

D/PhotoView( 3710): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 0, 0), mCameraRect = Rect(0, 0 - 0, 0)

I/ActivityManager( 1868): Displayed com.android.gallery3d/com.android.camera.CameraLauncher: +1s492ms

I/WindowManager( 1868): Switching to real app window: Window{412f5f50 u0 com.android.gallery3d/com.android.camera.CameraLauncher}

E/QualcommCameraHardware( 1490): native_set_parm: error (Connection timed out): fd 30, type 15, length 4, status 1927

E/QualcommCameraHardware( 1490): no set scene mode

E/QualcommCameraHardware( 1490): CAMERA_SET_PARAM_EFFECT

E/QualcommCameraHardware( 1490): native_set_parm: fd 30, type 16, length 4

E/QualcommCameraHardware( 1490): native_set_parm: error (Connection timed out): fd 30, type 16, length 4, status 1927

E/QualcommCameraHardware( 1490): setFlash not supported for this sensor

E/QualcommCameraHardware( 1490): QualcommCameraHardware::setZoom = 100

E/QualcommCameraHardware( 1490): new brightness value : 6

D/QualcommCameraHardware( 1490): CAMERA_SET_PARM_BRIGHTNESS

E/QualcommCameraHardware( 1490): native_set_parm: fd 30, type 8, length 4

I/InputDispatcher( 1868): Application is not responding: Window{412f5f50 u0 com.android.gallery3d/com.android.camera.CameraLauncher}. It has been 5012.6ms since event, 5012.0ms since wait started. Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.

I/WindowManager( 1868): Input event dispatching timed out sending to com.android.gallery3d/com.android.camera.CameraLauncher

D/dalvikvm( 1868): GC_CONCURRENT freed 988K, 46% free 6141K/11348K, paused 28ms+11ms, total 136ms

D/dalvikvm( 1868): WAIT_FOR_CONCURRENT_GC blocked 90ms

I/Process ( 1868): Sending signal. PID: 3710 SIG: 3

I/dalvikvm( 3710): threadid=3: reacting to signal 3

I/dalvikvm( 3710): Wrote stack traces to '/data/anr/traces.txt'

I/Process ( 1868): Sending signal. PID: 1868 SIG: 3

I/dalvikvm( 1868): threadid=3: reacting to signal 3

E/AmitSensors( 1868): poll() failed (Interrupted system call)

I/Process ( 1868): Sending signal. PID: 2119 SIG: 3

I/dalvikvm( 2119): threadid=3: reacting to signal 3

I/dalvikvm( 1868): Wrote stack traces to '/data/anr/traces.txt'

I/Process ( 1868): Sending signal. PID: 2200 SIG: 3

I/dalvikvm( 2200): threadid=3: reacting to signal 3

I/dalvikvm( 2119): Wrote stack traces to '/data/anr/traces.txt'

I/dalvikvm( 2200): Wrote stack traces to '/data/anr/traces.txt'

D/dalvikvm( 1868): GC_CONCURRENT freed 785K, 45% free 6308K/11348K, paused 29ms+25ms, total 575ms

D/dalvikvm( 1868): WAIT_FOR_CONCURRENT_GC blocked 41ms

D/dalvikvm( 1868): WAIT_FOR_CONCURRENT_GC blocked 19ms

D/dalvikvm( 1868): GC_EXPLICIT freed 110K, 45% free 6329K/11348K, paused 7ms+10ms, total 107ms

E/ActivityManager( 1868): ANR in com.android.gallery3d (com.android.gallery3d/com.android.camera.CameraLauncher)

E/ActivityManager( 1868): Reason: keyDispatchingTimedOut

E/ActivityManager( 1868): Load: 10.21 / 9.48 / 5.56

E/ActivityManager( 1868): CPU usage from 10306ms to 2881ms ago:

E/ActivityManager( 1868): 8.2% 856/synaptics_wq: 0% user + 8.2% kernel

E/ActivityManager( 1868): 8% 3710/com.android.gallery3d: 5.5% user + 2.5% kernel / faults: 246 minor

E/ActivityManager( 1868): 5.3% 1868/system_server: 2.8% user + 2.5% kernel / faults: 111 minor

E/ActivityManager( 1868): 3.3% 1487/surfaceflinger: 1.7% user + 1.6% kernel

E/ActivityManager( 1868): 2.1% 1493/ami304d: 0.4% user + 1.7% kernel

E/ActivityManager( 1868): 0.5% 1490/mediaserver: 0.1% user + 0.4% kernel / faults: 4 minor

E/ActivityManager( 1868): 0% 1//init: 0% user + 0% kernel / faults: 18 minor

E/ActivityManager( 1868): 0% 293/sync_supers: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 422/ksmartass_down/: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 489/rpcrotuer_smd_x: 0% user + 0% kernel

E/ActivityManager( 1868): 0.1% 516/krpcserversd: 0% user + 0.1% kernel

E/ActivityManager( 1868): 0% 1478/yaffs-bg-1: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 2973/com.android.bluetooth: 0% user + 0% kernel / faults: 323 minor

E/ActivityManager( 1868): 0% 3696/com.google.android.partnersetup: 0% user + 0% kernel

E/ActivityManager( 1868): 30% TOTAL: 10% user + 17% kernel + 1.8% iowait

E/ActivityManager( 1868): CPU usage from 1203ms to 1728ms later:

E/ActivityManager( 1868): 14% 1868/system_server: 10% user + 3.6% kernel / faults: 60 minor

E/ActivityManager( 1868): 7.2% 1928/InputDispatcher: 1.8% user + 5.4% kernel

E/ActivityManager( 1868): 1.8% 1875/Compiler: 1.8% user + 0% kernel

E/ActivityManager( 1868): 1.8% 1493/ami304d: 0% user + 1.8% kernel

E/ActivityManager( 1868): 1.4% 3710/com.android.gallery3d: 0% user + 1.4% kernel / faults: 7 minor

E/ActivityManager( 1868): 13% TOTAL: 11% user + 1.9% kernel

D/dalvikvm( 1868): GC_FOR_ALLOC freed 49K, 43% free 6471K/11348K, paused 81ms, total 81ms

I/dalvikvm-heap( 1868): Grow heap (frag case) to 7.303MB for 262160-byte allocation

D/dalvikvm( 1868): GC_FOR_ALLOC freed 276K, 44% free 6548K/11608K, paused 81ms, total 81ms

I/dalvikvm-heap( 1868): Grow heap (frag case) to 7.378MB for 262160-byte allocation

D/dalvikvm( 1868): GC_FOR_ALLOC freed <1K, 43% free 6804K/11868K, paused 76ms, total 76ms

I/dalvikvm-heap( 1868): Grow heap (frag case) to 7.753MB for 393236-byte allocation

D/dalvikvm( 1868): GC_FOR_ALLOC freed 260K, 44% free 6951K/12256K, paused 76ms, total 76ms

I/dalvikvm-heap( 1868): Grow heap (frag case) to 7.772MB for 262190-byte allocation

D/dalvikvm( 1868): GC_FOR_ALLOC freed 778K, 49% free 6451K/12516K, paused 79ms, total 80ms

I/InputDispatcher( 1868): Application is not responding: Window{412f5f50 u0 com.android.gallery3d/com.android.camera.CameraLauncher}. It has been 5008.0ms since event, 5007.3ms since wait started. Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.

I/WindowManager( 1868): Input event dispatching timed out sending to com.android.gallery3d/com.android.camera.CameraLauncher

I/Process ( 1868): Sending signal. PID: 3710 SIG: 3

I/dalvikvm( 3710): threadid=3: reacting to signal 3

E/QualcommCameraHardware( 1490): native_set_parm: error (Connection timed out): fd 30, type 8, length 4, status 0

E/QualcommCameraHardware( 1490): ExposureCompensation not supported for this sensor

E/QualcommCameraHardware( 1490): setLensshadeValue not supported for this sensor

D/QualcommCameraHardware( 1490): CAMERA_SET_PARM_ISO

E/QualcommCameraHardware( 1490): native_set_parm: fd 30, type 27, length 4

I/dalvikvm( 3710): Wrote stack traces to '/data/anr/traces.txt'

I/Process ( 1868): Sending signal. PID: 1868 SIG: 3

I/dalvikvm( 1868): threadid=3: reacting to signal 3

E/AmitSensors( 1868): poll() failed (Interrupted system call)

I/Process ( 1868): Sending signal. PID: 2119 SIG: 3

I/dalvikvm( 2119): threadid=3: reacting to signal 3

I/dalvikvm( 1868): Wrote stack traces to '/data/anr/traces.txt'

I/Process ( 1868): Sending signal. PID: 2200 SIG: 3

I/dalvikvm( 2200): threadid=3: reacting to signal 3

I/dalvikvm( 2119): Wrote stack traces to '/data/anr/traces.txt'

I/dalvikvm( 2200): Wrote stack traces to '/data/anr/traces.txt'

D/dalvikvm( 1868): GC_CONCURRENT freed 1183K, 50% free 6297K/12500K, paused 37ms+12ms, total 156ms

D/dalvikvm( 1868): WAIT_FOR_CONCURRENT_GC blocked 93ms

D/dalvikvm( 1868): GC_EXPLICIT freed 676K, 50% free 6334K/12500K, paused 6ms+10ms, total 114ms

E/ActivityManager( 1868): ANR in com.android.gallery3d (com.android.gallery3d/com.android.camera.CameraLauncher)

E/ActivityManager( 1868): Reason: keyDispatchingTimedOut

E/ActivityManager( 1868): Load: 10.25 / 9.52 / 5.62

E/ActivityManager( 1868): CPU usage from 4192ms to -1723ms ago with 99% awake:

E/ActivityManager( 1868): 20% 1868/system_server: 16% user + 4.5% kernel / faults: 473 minor

E/ActivityManager( 1868): 2.5% 3710/com.android.gallery3d: 2% user + 0.5% kernel / faults: 59 minor

E/ActivityManager( 1868): 2.3% 1493/ami304d: 0.1% user + 2.1% kernel

E/ActivityManager( 1868): 1.1% 2119/com.android.systemui: 1% user + 0.1% kernel / faults: 23 minor

E/ActivityManager( 1868): 1.1% 2200/com.android.phone: 0.8% user + 0.3% kernel / faults: 24 minor

E/ActivityManager( 1868): 0.6% 856/synaptics_wq: 0% user + 0.6% kernel

E/ActivityManager( 1868): 0.1% 516/krpcserversd: 0% user + 0.1% kernel

E/ActivityManager( 1868): 0% 12/suspend: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 489/rpcrotuer_smd_x: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 849/file-storage: 0% user + 0% kernel

E/ActivityManager( 1868): 0% 1479/yaffs-bg-1: 0% user + 0% kernel

E/ActivityManager( 1868): 0.1% 1490/mediaserver: 0.1% user + 0% kernel

E/ActivityManager( 1868): 0% 2182/com.android.inputmethod.latin: 0% user + 0% kernel / faults: 1 minor

E/ActivityManager( 1868): 29% TOTAL: 20% user + 8.9% kernel + 0.1% iowait

E/ActivityManager( 1868): CPU usage from 1153ms to 1676ms later:

E/ActivityManager( 1868): 11% 1868/system_server: 5.5% user + 5.5% kernel / faults: 1 minor

E/ActivityManager( 1868): 7.4% 1928/InputDispatcher: 3.7% user + 3.7% kernel

E/ActivityManager( 1868): 1% 1479/yaffs-bg-1: 1% user + 0% kernel

E/ActivityManager( 1868): 1.8% 1493/ami304d: 0% user + 1.8% kernel

E/ActivityManager( 1868): 1.4% 3710/com.android.gallery3d: 1.4% user + 0% kernel / faults: 8 minor

E/ActivityManager( 1868): 1.4% 3710/droid.gallery3d: 0% user + 1.4% kernel

E/ActivityManager( 1868): 1.4% 3927/er$SensorThread: 1.4% user + 0% kernel

E/ActivityManager( 1868): 9.4% TOTAL: 1.8% user + 7.5% kernel

D/dalvikvm( 1868): GC_FOR_ALLOC freed 308K, 47% free 6730K/12500K, paused 82ms, total 83ms

D/dalvikvm( 1868): GC_FOR_ALLOC freed 1036K, 49% free 6415K/12500K, paused 78ms, total 79ms

W/ActivityManager( 1868): Force finishing activity com.android.gallery3d/com.android.camera.CameraLauncher

I/ActivityManager( 1868): Killing ProcessRecord{41165ee0 3710:com.android.gallery3d/u0a10029}: user's request

I/ActivityManager( 1868): Process com.android.gallery3d (pid 3710) has died.

I/WindowState( 1868): WIN DEATH: Window{40f3a808 u0 SurfaceView}

I/WindowState( 1868): WIN DEATH: Window{412f5f50 u0 com.android.gallery3d/com.android.camera.CameraLauncher}

W/InputMethodManagerService( 1868): Got RemoteException sending setActive(false) notification to pid 3710 uid 10029

D/dalvikvm( 2119): GC_CONCURRENT freed 370K, 54% free 3610K/7700K, paused 7ms+7ms, total 72ms

I/ActivityManager( 1868): START u0 {act=com.android.systemui.recent.action.TOGGLE_RECENTS flg=0x10800000 cmp=com.android.systemui/.recent.RecentsActivity} from pid 2119

I/ActivityManager( 1868): Displayed com.android.systemui/.recent.RecentsActivity: +478ms

D/dalvikvm( 1868): GC_CONCURRENT freed 1053K, 50% free 6309K/12500K, paused 7ms+10ms, total 99ms

D/dalvikvm( 1868): WAIT_FOR_CONCURRENT_GC blocked 87ms