[DEV] Porting HTC Desire Camera to Sense HD ROM's

Search This thread

NeoPhyTe.x360

Retired Recognized Developer
Aug 20, 2009
1,667
1,850
oυτ oƒ иoωнєяє
http://xdaforums.com/showthread.php?p=9489090#post9489090







The reason because I haven't released new Aura is because that i'm trying to port desire camera to HD rom, and without camera don't like to release it. So I hope and think that all of us can suggest, and try things to get it work.

Trying to get camera work but...:
Code:
10-11 04:47:29.054: WARN/HTCCamera(1817): onCreate()
10-11 04:47:29.105: WARN/IntentManager(1817): from class: com.android.camera.CameraEntry
10-11 04:47:29.105: WARN/IntentManager(1817): mRequestMode = RequestMode.Main, from Camera
10-11 04:47:29.105: WARN/IntentManager(1817): request name = null - RequestName.Unknown_General
10-11 04:47:29.105: WARN/IntentManager(1817): extras == null
10-11 04:47:29.105: VERBOSE/CameraThread(1817): *************************************** run
10-11 04:47:29.134: WARN/HTCCamera(1817): onStart() - start
10-11 04:47:29.134: WARN/HTCCamera(1817): onStart() - end
10-11 04:47:29.134: WARN/HTCCamera(1817): onResume() - start
10-11 04:47:29.144: WARN/HTCCamera(1817): !!!! @@@@ broadcastStopVoiceRecording() - start
10-11 04:47:29.144: WARN/HTCCamera(1817): !!!! @@@@ broadcastStopVoiceRecording() - end
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): !!!! @@@@ broadcastStopFM() - start
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): !!!! @@@@ broadcastStopFM() - end
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): Initial Display Orientation: 0
10-11 04:47:29.154: DEBUG/Sensors(425): open_akm, fd=40
10-11 04:47:29.154: DEBUG/AK8973(254): Compass Start
10-11 04:47:29.154: VERBOSE/SensorHandler(1817): createFocusFile() - start
10-11 04:47:29.154: WARN/HTCCamera(1817): OnResume - reset UI, immediately set mMainLayout invisible
10-11 04:47:29.154: VERBOSE/HTCCamera(1817): setMaxBrightness()
10-11 04:47:29.165: WARN/########## HtcSettingsReceiver ##########(1817): 2010-10-11 04:47:29 168(ms) onReceive-start
10-11 04:47:29.174: WARN/HTCCamera(1817): Block Capture UI - onResume(), and unblock after start preview
10-11 04:47:29.184: WARN/HTCCamera(1817): onResume() - mFocusingState = NO_FOCUSING
10-11 04:47:29.184: WARN/HTCCamera(1817): keyguard is not shown !!!!!
10-11 04:47:29.184: WARN/HTCCamera(1817): OnResume - set mWaitResetSettings to true
10-11 04:47:29.184: WARN/HTCCamera(1817): onResume() - end
10-11 04:47:29.244: DEBUG/PowerManagerService(425): New lightsensor value:40, lcdValue:81
10-11 04:47:29.244: DEBUG/PowerManagerService(425): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$android.view.SurfaceView$3@478a03f8
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$  start preview
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=480 h=800
10-11 04:47:29.274: WARN/CameraThread(1817): CameraHandler Message - START_PREVIEW start mode0
10-11 04:47:29.274: VERBOSE/CameraThread(1817): start_preview() - start
10-11 04:47:29.274: ERROR/CameraThread(1817): open the Camera in start_camera_preview
10-11 04:47:29.274: WARN/CameraSwitch(1817): open main camera
10-11 04:47:29.274: WARN/CameraSwitch(1817): no file - can't switch camera
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): createInstance: E
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249):  Storing the current target type as 1 
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): constructor EX
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): startCamera E
10-11 04:47:29.294: INFO/ActivityManager(425): Displayed activity com.android.camera/.CameraEntry: 481 ms (total 481 ms)
10-11 04:47:29.305: DEBUG/QualcommCameraHardware(249): loading liboemcamera at 0xb00110c4
10-11 04:47:29.305: INFO/QualcommCameraHardware(249): Set main cam and main cam only
10-11 04:47:29.305: INFO/mm-camera-mmap(249): set sensor selection :0
10-11 04:47:29.305: VERBOSE/WindowManager(425): Remove Window{47d4cec8 Starting com.android.camera paused=false}: mSurface=Surface(name=Starting com.android.camera, identity=19) mExiting=false isAnimating=false app-animation=null inPendingTransaction=false mDisplayFrozen=false
10-11 04:47:29.315: ERROR/WindowManager(425): return in removeWindowLocked
10-11 04:47:29.465: INFO/QualcommCameraHardware(249): Open Device node : /dev/msm_camera/control0
10-11 04:47:29.465: INFO/mm-camera-config(249): cam_conf fd cfgctrl.camfd:0
10-11 04:47:29.465: INFO/mm-camera-config(249): Open config device node : /dev/msm_camera/config0
10-11 04:47:29.474: INFO/(249): [AWB Calibration]:ctrlfd:18
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word1:0x0
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word2:0x3
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word3:0x45002
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word4:0x27d532
10-11 04:47:29.505: DEBUG/mm-camera-s5k3e2fx_u(249): lcd type = 0
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[0]:0.733340
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[1]:0.733340
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[2]:0.754883
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[0]:0.601600
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[1]:0.601600
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[2]:0.598633
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word1:0x0
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word2:0x3
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word3:0x45002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word4:0x27d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id : 0x0, 0x3, 0x45002, 0x27d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fail to read /data/awb_cal 
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read from file OK: /sys/android_camera_awb_cal/awb_ca
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all c1b ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 320 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 253 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 0 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 3 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 45002 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 27d532 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all b7a70f27 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] check sum=b7a70f27, OK
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[0]:0x00000c1b
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[1]:0x00000320
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[2]:0x00000253
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[3]:0x00000000
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[4]:0x00000003
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[5]:0x00045002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[6]:0x0027d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[7]:0xb7a70f27
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word1:0x00000000
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word2:0x00000003
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word3:0x00045002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word4:0x0027d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[0]:3099
10-11 04:47:29.514: INFO/(249): [AWB Calibration] valid bit and fuseID pass, use new white points
10-11 04:47:29.514: INFO/(249): [AWB Calibration] use light version: v3
10-11 04:47:29.544: INFO/mm-camera-aec(249): Touch AEC  == numRegions:256
10-11 04:47:29.544: INFO/mm-camera-aec(249): Touch AEC aecCtrl->aec_state.aec_algo:1
10-11 04:47:29.555: INFO/QualcommCameraHardware(249): startCamera: camsensor name s5k3e2fx, flash 1
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): startCamera X
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): initDefaultParameters E
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): product 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 1, length 32
10-11 04:47:29.555: ERROR/QualcommCameraHardware(249): native_access_parm: error (No such file or directory): fd 17, type 1, length 32, status 0
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 64, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 65, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 66, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): requested preview size 768 x 432
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): requested picture size 1024 x 768
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): value:21401, country value:214, country code:214
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 21, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 14, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): setFlash 0
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 49, length 4
10-11 04:47:29.565: DEBUG/mm-camera-ctrlcmd(249): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Set zoom=0 20
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 2, length 4
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting Contrast is 5
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 6, length 4
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting Brightness is 3
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 7, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 12, length 4
10-11 04:47:29.565: INFO/mm-camera-ctrlcmd(249): md.d.aec_mode.aec_mode:1
10-11 04:47:29.565: INFO/mm-camera-aec(249): Touch AEC  == numRegions:256
10-11 04:47:29.565: INFO/mm-camera-aec(249): Touch AEC aecCtrl->aec_state.aec_algo:1
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): not defined touch-focus yet, or AP without touch-focus function
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Before Setting coordinate x:384 y:216
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting coordinate x:2 y:2
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 60, length 28
10-11 04:47:29.575: INFO/mm-camera 8x vfe(249): vfe_set_coordinate x:2 y:2
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 26, length 4
10-11 04:47:29.575: DEBUG/mm-camera-ctrlcmd(249): md.d.aec_iso_mode = 0
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 62, length 4
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 8, length 4
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): initDefaultParameters X
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): createInstance: X created hardware=0x167f0
10-11 04:47:29.575: DEBUG/MediaPlayerService(249): player type = VORBIS_PLAYER
10-11 04:47:29.584: DEBUG/MediaPlayerService(249): player type = VORBIS_PLAYER
10-11 04:47:29.595: WARN/CameraThread(1817): Open Camera - set mIsLastCameraClosed to false
10-11 04:47:32.289: WARN/HTCCamera(1817): Unknown orientation !!!


No visible "errors" (not like occurs without replace anything), and no camera closes, but black screen, and UI Block ! in log when touch screen or buttons (seems to be due the "start preview" wait).


Any ideas?
Some development of anyone or suggestions to do?
(have edited too some smali camera, focusing, view, exif... smali on framework.jar, but get the same)


PD: No third camera apps work: ->
Code:
[I]10-11 04:47:29.274: WARN/CameraSwitch(1817): open main camera
10-11 04:47:29.274: WARN/CameraSwitch(1817): no file - can't switch camera[/I]
all the time.


The files I have tried changing to get a "black" screen without camera closes:

/system/bin/
awb_camera
lsc_camera
mm-vdec-omx-test
mmcamera_test
omx_tests
/system/lib/
libcameraservice.so
libcamera.so
libcamera_client.so
(from Desire Z dump, another one, crashes)
liboemcamera.so
libmm-omxcore.so
libOmxCore.so
libomx_sharedlibrary.so
libOmxVdec.so
libOmxVidEnc.so
libomx_wmadec_sharedlibrary.so
libomx_wmvdec_sharedlibrary.so
libqcomm_omx.so
libstagefright_omx.so
libhtc_ril.so
hardware_legacy.so
libgps.so

(and many others of /system/etc/firmware, /system/lib/hw/, the apk(that do the same ), build.prop, and some smali code on framework.)
(hope no forget any file)



That I've seen is that files in /system/bin tells rom what are the "features" of camera (features that our desire doesn't have), changing this, it solves a lot of "errors" in logcat.









___________________
* Replace Desire camera apk in new HD rom -> No go
* As above + the main 4 libs for the camera -> No go
* Only the main 4 libs for the camera -> No go
* Replaced Desire Z camera apk in new HD rom -> No go
* As above + libs -> no go
* Replaced Only desire Z libs -> no go
* Mixed the two libs and apk -> no go
* Replaced stuff from HD/Z rom INTO normal Desire rom -> No go (in order to see if something worked and what didn't)
* Tried with other camera applications and the above combinations -> no go
* LogCat -> didn't offer a lot of information
* Took a normal Desire LogCat and compared to the one in the HD rom when opening the camera. You can see the comparison a few posts back, but doesn't say much
* *** Lots of tries in between (I think mainly done by the OP) ***
* The combination of files you see in the first post -> No go, but the camera application doesn't crash. Shows a black screen and doesn't work however

Also:

- Desire and DHD have the same resolution
- Pixel Density shouldn't have anything to do with anything
- The 8MPixel startup for the HD camera could be a problem, however I think that since a similar behaviour has been demonstrated with the Z camera (5MPixel), it could well not be the culprit...

Mod Edit: This thread is purely for developers, and people to discuss ways to deal with this issue. Therefore, you should only post here if you are directly contributing to this development. Any off-topic posts will be deleted. If you wish to have general chit chat, or thank the developers for their work, please do it here http://xdaforums.com/showthread.php?t=814188

@ NeoPhyTe.x360, please accept my apologies for editing your post without first asking you. Please PM me if this is a problem. Thanks
 
Last edited:

eViL D:

Retired Recognized Developer
Jun 14, 2006
4,479
1,338
Trying to get camera work but...:
Code:
10-11 04:47:29.054: WARN/HTCCamera(1817): onCreate()
10-11 04:47:29.105: WARN/IntentManager(1817): from class: com.android.camera.CameraEntry
10-11 04:47:29.105: WARN/IntentManager(1817): mRequestMode = RequestMode.Main, from Camera
10-11 04:47:29.105: WARN/IntentManager(1817): request name = null - RequestName.Unknown_General
10-11 04:47:29.105: WARN/IntentManager(1817): extras == null
10-11 04:47:29.105: VERBOSE/CameraThread(1817): *************************************** run
10-11 04:47:29.134: WARN/HTCCamera(1817): onStart() - start
10-11 04:47:29.134: WARN/HTCCamera(1817): onStart() - end
10-11 04:47:29.134: WARN/HTCCamera(1817): onResume() - start
10-11 04:47:29.144: WARN/HTCCamera(1817): !!!! @@@@ broadcastStopVoiceRecording() - start
10-11 04:47:29.144: WARN/HTCCamera(1817): !!!! @@@@ broadcastStopVoiceRecording() - end
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): !!!! @@@@ broadcastStopFM() - start
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): !!!! @@@@ broadcastStopFM() - end
10-11 04:47:29.144: VERBOSE/HTCCamera(1817): Initial Display Orientation: 0
10-11 04:47:29.154: DEBUG/Sensors(425): open_akm, fd=40
10-11 04:47:29.154: DEBUG/AK8973(254): Compass Start
10-11 04:47:29.154: VERBOSE/SensorHandler(1817): createFocusFile() - start
10-11 04:47:29.154: WARN/HTCCamera(1817): OnResume - reset UI, immediately set mMainLayout invisible
10-11 04:47:29.154: VERBOSE/HTCCamera(1817): setMaxBrightness()
10-11 04:47:29.165: WARN/########## HtcSettingsReceiver ##########(1817): 2010-10-11 04:47:29 168(ms) onReceive-start
10-11 04:47:29.174: WARN/HTCCamera(1817): Block Capture UI - onResume(), and unblock after start preview
10-11 04:47:29.184: WARN/HTCCamera(1817): onResume() - mFocusingState = NO_FOCUSING
10-11 04:47:29.184: WARN/HTCCamera(1817): keyguard is not shown !!!!!
10-11 04:47:29.184: WARN/HTCCamera(1817): OnResume - set mWaitResetSettings to true
10-11 04:47:29.184: WARN/HTCCamera(1817): onResume() - end
10-11 04:47:29.244: DEBUG/PowerManagerService(425): New lightsensor value:40, lcdValue:81
10-11 04:47:29.244: DEBUG/PowerManagerService(425): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$android.view.SurfaceView$3@478a03f8
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$  start preview
10-11 04:47:29.274: WARN/HTCCamera(1817): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=480 h=800
10-11 04:47:29.274: WARN/CameraThread(1817): CameraHandler Message - START_PREVIEW start mode0
10-11 04:47:29.274: VERBOSE/CameraThread(1817): start_preview() - start
10-11 04:47:29.274: ERROR/CameraThread(1817): open the Camera in start_camera_preview
10-11 04:47:29.274: WARN/CameraSwitch(1817): open main camera
10-11 04:47:29.274: WARN/CameraSwitch(1817): no file - can't switch camera
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): createInstance: E
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249):  Storing the current target type as 1 
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): constructor EX
10-11 04:47:29.294: DEBUG/QualcommCameraHardware(249): startCamera E
10-11 04:47:29.294: INFO/ActivityManager(425): Displayed activity com.android.camera/.CameraEntry: 481 ms (total 481 ms)
10-11 04:47:29.305: DEBUG/QualcommCameraHardware(249): loading liboemcamera at 0xb00110c4
10-11 04:47:29.305: INFO/QualcommCameraHardware(249): Set main cam and main cam only
10-11 04:47:29.305: INFO/mm-camera-mmap(249): set sensor selection :0
10-11 04:47:29.305: VERBOSE/WindowManager(425): Remove Window{47d4cec8 Starting com.android.camera paused=false}: mSurface=Surface(name=Starting com.android.camera, identity=19) mExiting=false isAnimating=false app-animation=null inPendingTransaction=false mDisplayFrozen=false
10-11 04:47:29.315: ERROR/WindowManager(425): return in removeWindowLocked
10-11 04:47:29.465: INFO/QualcommCameraHardware(249): Open Device node : /dev/msm_camera/control0
10-11 04:47:29.465: INFO/mm-camera-config(249): cam_conf fd cfgctrl.camfd:0
10-11 04:47:29.465: INFO/mm-camera-config(249): Open config device node : /dev/msm_camera/config0
10-11 04:47:29.474: INFO/(249): [AWB Calibration]:ctrlfd:18
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word1:0x0
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word2:0x3
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word3:0x45002
10-11 04:47:29.494: INFO/(249): [AWB Calibration] cfg.fuse_id_word4:0x27d532
10-11 04:47:29.505: DEBUG/mm-camera-s5k3e2fx_u(249): lcd type = 0
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[0]:0.733340
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[1]:0.733340
10-11 04:47:29.514: INFO/(249): [AWB Calibration] rg_ratio_GS_table[2]:0.754883
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[0]:0.601600
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[1]:0.601600
10-11 04:47:29.514: INFO/(249): [AWB Calibration] bg_ratio_GS_table[2]:0.598633
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word1:0x0
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word2:0x3
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word3:0x45002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] sfuse.fuse_id_word4:0x27d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id : 0x0, 0x3, 0x45002, 0x27d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fail to read /data/awb_cal 
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read from file OK: /sys/android_camera_awb_cal/awb_ca
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all c1b ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 320 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 253 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 0 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 3 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 45002 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all 27d532 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] read all b7a70f27 ,ok=1
10-11 04:47:29.514: INFO/(249): [AWB Calibration] check sum=b7a70f27, OK
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[0]:0x00000c1b
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[1]:0x00000320
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[2]:0x00000253
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[3]:0x00000000
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[4]:0x00000003
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[5]:0x00045002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[6]:0x0027d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[7]:0xb7a70f27
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word1:0x00000000
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word2:0x00000003
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word3:0x00045002
10-11 04:47:29.514: INFO/(249): [AWB Calibration] fuse_id_word4:0x0027d532
10-11 04:47:29.514: INFO/(249): [AWB Calibration] caBuff[0]:3099
10-11 04:47:29.514: INFO/(249): [AWB Calibration] valid bit and fuseID pass, use new white points
10-11 04:47:29.514: INFO/(249): [AWB Calibration] use light version: v3
10-11 04:47:29.544: INFO/mm-camera-aec(249): Touch AEC  == numRegions:256
10-11 04:47:29.544: INFO/mm-camera-aec(249): Touch AEC aecCtrl->aec_state.aec_algo:1
10-11 04:47:29.555: INFO/QualcommCameraHardware(249): startCamera: camsensor name s5k3e2fx, flash 1
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): startCamera X
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): initDefaultParameters E
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): product 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 1, length 32
10-11 04:47:29.555: ERROR/QualcommCameraHardware(249): native_access_parm: error (No such file or directory): fd 17, type 1, length 32, status 0
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 64, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 65, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 66, length 4
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): requested preview size 768 x 432
10-11 04:47:29.555: DEBUG/QualcommCameraHardware(249): requested picture size 1024 x 768
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): value:21401, country value:214, country code:214
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 21, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 14, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): setFlash 0
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 49, length 4
10-11 04:47:29.565: DEBUG/mm-camera-ctrlcmd(249): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Set zoom=0 20
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 2, length 4
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting Contrast is 5
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 6, length 4
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting Brightness is 3
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 7, length 4
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 12, length 4
10-11 04:47:29.565: INFO/mm-camera-ctrlcmd(249): md.d.aec_mode.aec_mode:1
10-11 04:47:29.565: INFO/mm-camera-aec(249): Touch AEC  == numRegions:256
10-11 04:47:29.565: INFO/mm-camera-aec(249): Touch AEC aecCtrl->aec_state.aec_algo:1
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): not defined touch-focus yet, or AP without touch-focus function
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Before Setting coordinate x:384 y:216
10-11 04:47:29.565: INFO/QualcommCameraHardware(249): Setting coordinate x:2 y:2
10-11 04:47:29.565: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 60, length 28
10-11 04:47:29.575: INFO/mm-camera 8x vfe(249): vfe_set_coordinate x:2 y:2
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 26, length 4
10-11 04:47:29.575: DEBUG/mm-camera-ctrlcmd(249): md.d.aec_iso_mode = 0
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 62, length 4
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): native_access_parm: fd 17, type 8, length 4
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): initDefaultParameters X
10-11 04:47:29.575: DEBUG/QualcommCameraHardware(249): createInstance: X created hardware=0x167f0
10-11 04:47:29.575: DEBUG/MediaPlayerService(249): player type = VORBIS_PLAYER
10-11 04:47:29.584: DEBUG/MediaPlayerService(249): player type = VORBIS_PLAYER
10-11 04:47:29.595: WARN/CameraThread(1817): Open Camera - set mIsLastCameraClosed to false
10-11 04:47:32.289: WARN/HTCCamera(1817): Unknown orientation !!!


No visible "errors" (not like occurs without replace anything), and no camera closes, but black screen, and UI Block ! in log when touch screen or buttons (seems to be due the "start preview" wait).


Any ideas?
Some development of anyone or suggestions to do?
(have edited too some smali camera, focusing, view, exif... smali on framework.jar, but get the same)


PD: No third camera apps work: ->
Code:
[I]10-11 04:47:29.274: WARN/CameraSwitch(1817): open main camera
10-11 04:47:29.274: WARN/CameraSwitch(1817): no file - can't switch camera[/I]
all the time.

What's your build.prop look like?

are you changing any of this?

ro.product.brand=htc_wwe
ro.product.name=htc_ace
ro.product.device=ace ------> bravo
ro.product.board=ace
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=
ro.wifi.channels=
ro.board.platform=msm7x30 ------>qsd8x50
 

NeoPhyTe.x360

Retired Recognized Developer
Aug 20, 2009
1,667
1,850
oυτ oƒ иoωнєяє
What's your build.prop look like?

are you changing any of this?

ro.product.brand=htc_wwe
ro.product.name=htc_ace
ro.product.device=ace ------> bravo
ro.product.board=ace
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=
ro.wifi.channels=
ro.board.platform=msm7x30 ------>qsd8x50



my build at the moment:
Code:
ro.product.model=HTC Desire
ro.product.name=htc_bravo
ro.product.device=bravo
ro.product.board=bravo
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=
ro.wifi.channels=
ro.board.platform=qsd8k
ro.build.product=bravo
 

eViL D:

Retired Recognized Developer
Jun 14, 2006
4,479
1,338
my build at the moment:
Code:
ro.product.model=HTC Desire
ro.product.name=htc_bravo
ro.product.device=bravo
ro.product.board=bravo
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=
ro.wifi.channels=
ro.board.platform=qsd8k
ro.build.product=bravo

If you can decompile the Desire framework.jar & get that working correctly against the HD framework.jar, that probably will work.

From the looks of enomther's aosp rom, he uses the htc cam from the desire. He grabs the apk, 4 libs, htc.resources & framework.jar.

**and that build.prop will probably work. I currently use ace and msm7x30
 

mohamed_moscow

Senior Member
Sep 1, 2008
372
58
Originally Posted by Fightspit View Post

After flashing the updated RIL for the latest radio (in the Adamg's radio thread), I get the camera partially working, no FC but black screen if I use "Layar" or "BarcodeScanner". It is better than nothing



Originally Posted by dezborders View Post

Hi Neo,

For a while now I have been wondering about resolution - by default, the Desire camera sets itself to the max 5mp resolution on startup - if the HD rom is trying to set the camera to 8mp on launch, this could explain the black screen?

Is there a file or memory location that stores the max resolution or user defined resolution?

Thanks for the hard work and good luck with camera fix...


Originally Posted by ephumuris

I think thats an interesting idea. Maybe baksmali the classes.dex from camera.apk and change the default res if its even stored here?
 
Last edited:

iemand12

Member
Jul 26, 2010
37
1
Pretoria
I noticed that the last line took quite a while to process, '10-11 04:47:32.289: WARN/HTCCamera(1817): Unknown orientation !!!' Could the unknown orientation have something to do with our camera troubles?
 

ephumuris

Senior Member
Dec 7, 2008
3,706
637
37
Hull
Xiaomi Mi Pad 5
Google Pixel 7 Pro
How could the orientation matter though? I don't understand what that line means really?

Makes sense that it isn't due to megapixels either as said above Desire Z camera doesn't work too :(

I hope people who know what they are talking about can collaborate. I'm clueless but willing to test anything.

10-11 04:47:29.274: ERROR/CameraThread(1817): open the Camera in start_camera_preview
10-11 04:47:29.315: ERROR/WindowManager(425): return in removeWindowLocked
10-11 04:47:29.555: ERROR/QualcommCameraHardware(249): native_access_parm: error (No such file or directory): fd 17, type 1, length 32, status 0

What do these mean?
 
Last edited:

ivicask

Recognized Developer / Inactive RC
May 25, 2009
5,091
16,416
35
Zagreb
How could the orientation matter though? I don't understand what that line means really?

Well i guess camera app is trying to access g-sensor so it can display camera in Landscape mode or normal. Maybe if we dsiable that detection and just force it to landsacpe we can see if that was the cause of problem..
 

nprussell

Inactive Recognized Developer
Sep 18, 2009
1,296
363
Great idea that you've started a dev thread on this.

I have done a little bit of work on trying to figure this out, along with trying the vanilla camera to see what the logcat spewed out with that.

Don't have the results with me now, as I'm at work, but I'll share my findings with you then, and see if I can help in any way.
 

iemand12

Member
Jul 26, 2010
37
1
Pretoria
How could the orientation matter though? I don't understand what that line means really?

Well i guess camera app is trying to access g-sensor so it can display camera in Landscape mode or normal. Maybe if we dsiable that detection and just force it to landsacpe we can see if that was the cause of problem..
Did we have portrait and landscape on the old sense camera? I can't remember, but i think forcing landscape is worth a try, i don't think the problem lies in the camera itself, because we have the same issue on the desire Z, it may just be something assisting the camera, and that may also explain why no errors are showing in the code?
 

andycted

Retired Recognized Developer
Aug 20, 2009
1,311
25
The orientation error could just be caused by the camera gone bonkers since launch and some part of the process trying to determine its orientation, and failing. Or not, obviously.

By the way, did anyone notice lots of audio related errors in the log whenever you launch the camera ? The first time I tried to cut-n-paste stuff I got a lot of them, but it could also be the rest of the rom spitting errors.
 

baadnewz

Recognized Developer
Sep 2, 2008
14,340
34,069
39
Bucharest
insertcoin-roms.org
i r not dev nor *nix expert, but since NONE of camera apps are working maybe it has to do with the libs that ALL camera apps require. Should narrow down the posibilities. Just a logical simplistic assumption


So you (I don't say we since I haven't have a clue how) find the libs that all camera apps have in common (well besides using the camera hardware :D) and there should be at least a part of the problem.


Or maybe I'm talking nonsense .. or sense hd :p
 
Last edited:

Yopsi

Senior Member
Jun 26, 2010
96
0
Lisbon
Or maybe I'm talking nonsense .. or sense hd :p

HAHA xD

But actualy I think you may have something there. Tried to run barscanner without success so that means it's something with the actual function of the camera. Something is just not launching it. If I had to guess with my low knowledge of android programming I would say that there is something in the libs that is ruining it for us.
 

Beaverman20

Senior Member
Jul 29, 2010
224
5
it would be a good idea, but right now they are debugging code they do not know, that means they have to fix it step by step... the idea is that they fix this, get an error pointing somewhere else, then tey fix that, and so on...
 

ephumuris

Senior Member
Dec 7, 2008
3,706
637
37
Hull
Xiaomi Mi Pad 5
Google Pixel 7 Pro
HAHA xD

But actualy I think you may have something there. Tried to run barscanner without success so that means it's something with the actual function of the camera. Something is just not launching it. If I had to guess with my low knowledge of android programming I would say that there is something in the libs that is ruining it for us.

But then that would mean simply replacing the libs and camera apk with our desire ones would fix it. But that's not the case.
 

K900

Senior Member
Aug 12, 2010
4,846
2,893
Moscow
I think there is a way to fix it, though I'm more a linux developer. My idea is to patch the AOSP framework and camera to allow it to be installed separately from the HTC framework. So, the patched camera app calls the patched framework, which calls the camera. Knowing that camera works with AOSP, it will probably work if we pull AOSP camera with dependencies, but call them from other place. This way, we will at least be able to take photos. Might be a little hard to understand, but I hope you guys get it.

Sent from my HDfied HTC Desire
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    the camera app and the build.prop file included in that fix is specific to rcmixhd v012
    please don't flash it on other releases - it is trivial to port it to them, i'm sure robocik will release an update shortly
    1
    Here's a quick vid of the camera working... Sorry for the quality, I've done it using a laptop cam and it was enoying trying to adjust the lid at the propper angle...
    You can see the Personalize menu at the start (just to proove it's SenseHD) and the skin is metallic :)
    the console command was awb_camera
    1
    It's a question...hehehe

    If anyone want 720p video just use lgcamera.apk.
    Search on market





    Sent from my HTC Desire using XDA App

    720p using lgcamera is laggy as hell, i assume its because its not using H/W acceleration. and im also asuming that the reason 720p dosent work on DHD ports, (HTC Camera) is because we have a desire radio not a DHD radio, and the frameworks needs a DHD radio for H/W acceleration ........
    1
    Hi,
    Something is batter than nothing....

    Just select 15fps n no lag here......

    720p using lgcamera is laggy as hell, i assume its because its not using H/W acceleration. and im also asuming that the reason 720p dosent work on DHD ports, (HTC Camera) is because we have a desire radio not a DHD radio, and the frameworks needs a DHD radio for H/W acceleration ........



    Sent from my HTC Desire using XDA App
    1
    Bro. It's a dev thread...

    Lgcamera Location:
    /sdcard/lgcamera/video n photo


    I've just tried theis lgcamera app on my hd2 with the desire hd build and can normally take 800x480 video with the htc camera and it seems to take both 720p and 800x480 just fine with the lgcamera app but I have no idea where it puts the files, could someone please tell me so I know if it acutally works because they are not in the dcim folder... :)



    Sent from my HTC Desire using XDA App