[Defy General] BravoMotorola:
Miui built for the Defy works great on the Bravo except for the Camera. To get an easy port you move over (from original Bravo firmware) /ect/motorola for working signal, /ect/wifi for working wifi, some camera libs and the egl libs, and you have everything up to the video camera working. But when trying to take pictures, it fails to do so and displays "cannot connect to camera". I am not very good at getting stuff like this to work, so I was wondering if anyone could help.

You can download this working 1.9.23 MIUI build that I got working by moving over the mentioned files here

And download the stock 2.2 Bravo system files (minus un needed /systme/apps) here

And here is a logcat ran while trying to capture a picture inside the miui camera:

[SIZE="3"]D/MOT_ISE ( 1862): Printing register address = 7, and the value is = 0xa
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/MOT_ISE ( 1862): Printing register address = 3, and the value is = 0x38e
D/MOT_ISE ( 1862): Printing register address = 4, and the value is = 0x80
E/com.miui.camera.ui.FocusRectangle( 2557): showStart
V/com.miui.camera.Camera( 2557): shutter button clicked
V/com.miui.camera.Camera( 2557): doSnap: mFocusState=FOCUSING
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): auto focus callback called
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): mAutoFocusTime = 1405ms
V/com.miui.camera.Camera( 2557): datetime: 2011:08:31 00:41:39
I/TIOverlay( 2044): Nothing to do!
D/LibSOCJordanCamera( 1862): +setParameters
I/LibSOCJordanCamera( 1862): Changed: gps-timestamp: (null) -> 1314751299 {(null)}
I/LibSOCJordanCamera( 1862): Extract changes completed, 1 total changes
D/LibSOCJordanCamera( 1862): +handleGpsTimeStampChange
D/LibSOCJordanCamera( 1862): -handleGpsTimeStampChange
D/LibSOCJordanCamera( 1862): -setParameters
V/com.miui.camera.Camera( 2557): take picture
D/LibSOCJordanCamera( 1862): +stopPreview
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
E/LibSOCJordanCamera( 1862): Turned off Streaming
I/TIOverlay( 2044): Nothing to do!
E/LibSOCJordanCamera( 1862): dequeing frames from overlay
D/LibSOCJordanCamera( 1862): -stopPreview
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/LibSOCJordanCamera( 1862): +captureThread
E/com.miui.camera.ui.FocusRectangle( 2557): showSuccess
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): shutter button focused
E/com.miui.camera.ui.FocusRectangle( 2557): clear
V/com.miui.camera.Camera( 2557): mShutterLag = 446ms
E/com.miui.camera.ui.FocusRectangle( 2557): clear
I/TIOverlay( 2044): Nothing to do!
D/AudioHardwareMot( 1862): doRouting devs: stereo 0x2, mono 0, input 0. Chose speaker Speakerphone (gain 0xb) mic None (gain 0x1c1c)
D/AudioHardwareMot( 1862): Output 0x134e0 exiting standby
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/LibSOCJordanCamera( 1862): cfilledbuffer length = 1441792
E/CameraService( 1862): Null data returned in data callback
I/TIOverlay( 2044): Nothing to do!
E/LibSOCJordanCamera( 1862): MG: Returning focus to infinity!
D/LibSOCJordanCamera( 1862): -captureThread
I/TIOverlay( 2044): Nothing to do!
E/Camera ( 2557): Error -2147483648
V/com.miui.camera.Camera( 2557): unknown error
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/dalvikvm( 2557): GC_EXTERNAL_ALLOC freed 254K, 46% free 3476K/6343K, external 3209K/3213K, paused 50ms
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): jpeg callback called
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): mPictureDisplayedToJpegCallbackTime = 1314751300014ms
V/com.miui.camera.Camera( 2557): begin to store image
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/skia ( 2557): --- decoder->decode returned false
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
D/skia ( 2295): --- decoder->decode returned false
D/skia ( 2295): --- decoder->decode returned false
W/MediaThumbRequest( 2295): Can't create mini thumbnail for /mnt/sdcard/DCIM/Camera/IMG_20110831_084140.jpg
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.StorageHelper( 2557): checkStorageState
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
E/com.miui.camera.ui.FocusRectangle( 2557): clear
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): restart preview
V/com.miui.camera.Camera( 2557): start preview
D/LibSOCJordanCamera( 1862): +getParameters
D/LibSOCJordanCamera( 1862): -getParameters
I/TIOverlay( 2044): Nothing to do!
V/com.miui.camera.Camera( 2557): setCameraParameters
V/com.miui.camera.Camera( 2557): snapshot in progress, denied
V/com.miui.camera.Camera( 2557): startPreview
D/LibSOCJordanCamera( 1862): +getParameters
D/LibSOCJordanCamera( 1862): -getParameters
D/LibSOCJordanCamera( 1862): +startPreview
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
E/LibSOCJordanCamera( 1862): VIDIOC_STREAMOFF already issued
D/LibSOCJordanCamera( 1862): +initPvOverlay
D/LibSOCJordanCamera( 1862): +deinitPvOverlay
D/LibSOCJordanCamera( 1862): -deinitPvOverlay
I/Overlay ( 1862): query buffer, mem=1 type=2 index=0
I/TIOverlay( 1862): Buffer/0/addr=41659000/len=614400
I/TIOverlay( 2044): Nothing to do!
I/Overlay ( 1862): query buffer, mem=1 type=2 index=1
I/TIOverlay( 1862): Buffer/1/addr=416ef000/len=614400
I/Overlay ( 1862): query buffer, mem=1 type=2 index=2
I/TIOverlay( 1862): Buffer/2/addr=41785000/len=614400
I/TIOverlay( 2044): Nothing to do!
I/Overlay ( 1862): query buffer, mem=1 type=2 index=3
I/TIOverlay( 1862): Buffer/3/addr=4181b000/len=614400
I/Overlay ( 1862): query buffer, mem=1 type=2 index=4
I/TIOverlay( 1862): Buffer/4/addr=418b1000/len=614400
I/Overlay ( 1862): query buffer, mem=1 type=2 index=5
I/TIOverlay( 1862): Buffer/5/addr=41947000/len=614400
I/Overlay ( 1862): query buffer, mem=1 type=2 index=6
I/TIOverlay( 1862): Buffer/6/addr=419dd000/len=614400
I/TIOverlay( 2044): Nothing to do!
I/Overlay ( 1862): query buffer, mem=1 type=2 index=7
I/TIOverlay( 1862): Buffer/7/addr=41a73000/len=614400
D/LibSOCJordanCamera( 1862): -initPvOverlay
D/LibSOCJordanCamera( 1862): -startPreview
V/com.miui.camera.Camera( 2557): start preview time: 472ms; thread time: 305176nanoseconds; elapsed real time from boot: 338613ms
V/com.miui.camera.Camera( 2557): mJpegCallbackFinishTime = 1162ms
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/TIOverlay( 2044): Nothing to do!
I/LibSOCJordanCamera( 1862): Preview is running.[/SIZE]

I hope someone has suggestions, because I'm all out of ideas!