Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,580 Members 40,784 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
NeoPhyTe.x360
Old
(Last edited by NeoPhyTe.x360; 29th November 2010 at 10:47 PM.)
#1  
NeoPhyTe.x360's Avatar
Retired Recognized Developer - OP
Thanks Meter 1804
Posts: 1,645
Join Date: Aug 2009
Location: oυτ o иoωнєяє

 
DONATE TO ME
Default [DEV] Porting HTC Desire Camera to Sense HD ROM's

http://forum.xda-developers.com/show...90#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:
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
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://forum.xda-developers.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
 
eViL D:
Old
#2  
eViL D:'s Avatar
Retired Recognized Developer
Thanks Meter 1344
Posts: 4,472
Join Date: Jun 2006

 
DONATE TO ME
Quote:
Originally Posted by NeoPhyTe.x360 View Post
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:
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
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
Old
#3  
NeoPhyTe.x360's Avatar
Retired Recognized Developer - OP
Thanks Meter 1804
Posts: 1,645
Join Date: Aug 2009
Location: oυτ o иoωнєяє

 
DONATE TO ME
Quote:
Originally Posted by eViL D: View Post
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:
Old
#4  
eViL D:'s Avatar
Retired Recognized Developer
Thanks Meter 1344
Posts: 4,472
Join Date: Jun 2006

 
DONATE TO ME
Quote:
Originally Posted by NeoPhyTe.x360 View Post
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
Old
(Last edited by mohamed_moscow; 11th October 2010 at 08:59 AM.)
#5  
Senior Member
Thanks Meter 50
Posts: 335
Join Date: Sep 2008
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?
 
madman_cro
Old
#6  
madman_cro's Avatar
Senior Member
Thanks Meter 91
Posts: 981
Join Date: May 2009
cant we just use desire z cam since its 5mpx
devices :
htc touch diamond 2- dead
htc desire- dead
galaxy s2 - sold
iphone 4s _lol - sold after 5 days
htc one x -dead. sucky phone
Samsung galaxy s4 i9505 - current
 
hamdir
Old
#7  
hamdir's Avatar
Recognized Contributor
Thanks Meter 13044
Posts: 20,735
Join Date: Aug 2008
Location: Beirut
Quote:
Originally Posted by madman_cro View Post
cant we just use desire z cam since its 5mpx
even the camera in the Desire Z rom doesn't work, so i doubt the issue is related to camera pixels, especially since even third party camera apps aren't working
 
iemand12
Old
#8  
Member
Thanks Meter 1
Posts: 37
Join Date: Jul 2010
Location: 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
Old
(Last edited by ephumuris; 11th October 2010 at 10:39 AM.)
#9  
ephumuris's Avatar
Senior Member
Thanks Meter 469
Posts: 3,124
Join Date: Dec 2008
Location: Hull
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?
Very hungry. I want Gingerbread.

Join GiffGaff and earn Payback yourself. The mobile network run by YOU.

 
ivicask
Old
#10  
ivicask's Avatar
Recognized Contributor
Thanks Meter 12330
Posts: 3,126
Join Date: May 2009
Location: Zagreb

 
DONATE TO ME
[QUOTE=ephumuris;8562538]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..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes