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...:
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: ->
all the time.
The files I have tried changing to get a "black" screen without camera closes:
/system/bin/
(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
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]
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/lsc_camera
mm-vdec-omx-test
mmcamera_test
omx_tests
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
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: