[Miscellaneous Android Development] gold-concert:
Hello!

I need help. I compile Android 2.2.3 from source.

Everything works except:

- camera

- bluetooth

- Rotate the screen (for some reason turns to the other side)

- GPS

- Mount the SD card (as a drive)

Stock firmware: Android 2.2.2

Firmware which I ported now: Android 2.2.3

Kernel: 2.6.32

Device: Huawei S7 Ideos 101

Already more than a week suffer. Help please.

Here are my logs:

Launch the camera application:

I/ActivityManager( 525): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera }
I/ActivityManager( 525): Start proc com.android.camera for activity com.android.camera/.Camera: pid=798 uid=10032 gids={1006, 1015}
D/dalvikvm( 520): GC_EXPLICIT freed 283 objects / 10744 bytes in 64ms
D/dalvikvm( 520): GC_EXPLICIT freed 47 objects / 2072 bytes in 131ms
D/dalvikvm( 798): Trying to load lib /vendor/lib/libmedia_jni.so 0x0
D/dalvikvm( 798): Shared lib '/vendor/lib/libmedia_jni.so' already loaded in same CL 0x0
E/QualcommCameraHardware( 516): Unable to determine the target type. Camera will not work
E/QualcommCameraHardware( 516): createInstance: startCamera failed!
D/CameraService( 516): Client::Client X (pid 798)
E/CameraHolder( 798): fail to connect Camera
E/CameraHolder( 798): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 798): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 798): at android.hardware.Camera.<init>(Camera.java:185)
E/CameraHolder( 798): at android.hardware.Camera.open(Camera.java:165)
E/CameraHolder( 798): at com.android.camera.CameraHolder.open(CameraHolder.java:100)
E/CameraHolder( 798): at com.android.camera.Camera.ensureCameraDevice(Camera.java:1607)
E/CameraHolder( 798): at com.android.camera.Camera.startPreview(Camera.java:1658)
E/CameraHolder( 798): at com.android.camera.Camera.access$5600(Camera.java:94)
E/CameraHolder( 798): at com.android.camera.Camera$4.run(Camera.java:930)
E/CameraHolder( 798): at java.lang.Thread.run(Thread.java:1096)
D/dalvikvm( 520): GC_EXPLICIT freed 2 objects / 64 bytes in 85ms
E/QualcommCameraHardware( 516): *****ZJ: at opencamerafd. open /dev/msm_camera/control1****
W/dalvikvm( 798): threadid=8: thread exiting with uncaught exception (group=0x4001d878)
E/AndroidRuntime( 798): FATAL EXCEPTION: Thread-9
E/AndroidRuntime( 798): java.lang.RuntimeException: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 798): at com.android.camera.Camera$4.run(Camera.java:935)
E/AndroidRuntime( 798): at java.lang.Thread.run(Thread.java:1096)
E/AndroidRuntime( 798): Caused by: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 798): at com.android.camera.CameraHolder.open(CameraHolder.java:103)
E/AndroidRuntime( 798): at com.android.camera.Camera.ensureCameraDevice(Camera.java:1607)
E/AndroidRuntime( 798): at com.android.camera.Camera.startPreview(Camera.java:1658)
E/AndroidRuntime( 798): at com.android.camera.Camera.access$5600(Camera.java:94)
E/AndroidRuntime( 798): at com.android.camera.Camera$4.run(Camera.java:930)
E/AndroidRuntime( 798): ... 1 more
E/AndroidRuntime( 798): Caused by: java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 798): at android.hardware.Camera.native_setup(Native Method)
E/AndroidRuntime( 798): at android.hardware.Camera.<init>(Camera.java:185)
E/AndroidRuntime( 798): at android.hardware.Camera.open(Camera.java:165)
E/AndroidRuntime( 798): at com.android.camera.CameraHolder.open(CameraHolder.java:100)
E/AndroidRuntime( 798): ... 5 more
W/ActivityManager( 525): Force finishing activity com.android.camera/.Camera
W/ActivityManager( 525): Activity pause timeout for HistoryRecord{44f9a9d8 com.android.camera/.Camera}
I/Process ( 798): Sending signal. PID: 798 SIG: 9
I/ActivityManager( 525): Process com.android.camera (pid 798) has died.
W/InputManagerService( 525): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44f029f0
I/dun_s

Starting Bluetooth:

D/BluetoothService( 525): Bluetooth state 10 -> 11
V/BluetoothEventRedirector( 621): Received android.bluetooth.adapter.action.STATE_CHANGED
I/bluedroid( 525): Starting hciattach daemon
I/dun_service( 86): The value returned from dun_getusbmodemstate_fromsys is 1
I/dun_service( 86): Post event 1
I/dun_service( 86): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 86): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_USB_UNPLUG)
I/dun_service( 86): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STATE
I/dun_service( 86): Moved to state(DUN_STATE_USB_UNPLUG)
I/bluetooth( 812): /system/etc/init.bt.sh: bluetooth chip set as
E/qcom-bluetooth( 821): /system/etc/init.qcom.bt.sh: Bluetooth QSoC firmware download failed: exit code 1
E/bluetooth( 822): /system/etc/init.bt.sh: chip set error
I/bluetooth( 823): /system/etc/init.bt.sh: detecting bluetooth chip 1
E/qcom-bluetooth( 832): /system/etc/init.qcom.bt.sh: Bluetooth QSoC firmware download failed: exit code 1
I/bluetooth( 833): /system/etc/init.bt.sh: chip is not bt4025
I/bluetooth( 834): /system/etc/init.bt.sh: detecting bluetooth chip 2
I/brcm-bluetooth( 837): /system/etc/init.brcm.bt.sh: Initiating Bluetooth module with brcm_patchram_plus
E/brcm-bluetooth( 843): /system/etc/init.brcm.bt.sh: Bluetooth Broadcom HCD file download failed: exit code 1
I/bluetooth( 844): /system/etc/init.bt.sh: chip is not bcm4329
E/bluetooth( 845): /system/etc/init.bt.sh: no bluetooth chip found
I/dun_service( 86): The value returned from dun_getusbmodemstate_fromsys is 1
I/dun_service( 86): Post event 1
I/dun_service( 86): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 86): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_USB_UNPLUG)
I/dun_service( 86): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STATE
I/dun_service( 86): Moved to state(DUN_STATE_USB_UNPLUG)
D/dalvikvm( 617): GC_EXPLICIT freed 1925 objects / 106848 bytes in 60ms
E/b

Enable \ disable screen rotation:

E/Sensors ( 525): [sensors_control_activate] Enable handle: 1
E/Sensors ( 525): Active sensors now:0002, Enable&Disable sensors:0002
E/Sensors ( 525): [sensors_control_activate]current sensors=0002
I/WindowManager( 525): Setting rotation to 1, animFlags=0
I/ActivityManager( 525): Config changed: { scale=1.0 imsi=257/4 loc=ru_RU touch=3 keys=1/1/2 nav=3/1 orien=1 layout=35 uiMode=17 seq=4}
I/UsageStats( 525): Unexpected resume of com.android.settings while already resumed in com.android.settings
D/dalvikvm( 525): GC_EXPLICIT freed 12194 objects / 658744 bytes in 79ms
E/Sensors ( 525): [sensors_control_activate] Disable handle: 1
E/Sensors ( 525): Active sensors now:0002, Enable&Disable sensors:0000
E/Sensors ( 525): [sensors_control_activate]current sensors=0000
I/WindowManager( 525): Setting rotation to 0, animFlags=0
I/ActivityManager( 525): Config changed: { scale=1.0 imsi=257/4 loc=ru_RU touch=3 keys=1/1/2 nav=3/1 orien=2 layout=35 uiMode=17 seq=5}
I/UsageStats( 525): Unexpected resume of com.android.settings while already resumed in com.android.settings
D/dalvikvm( 525): GC_EXPLICIT freed 2295 objects / 105376 bytes in 68ms

Mounting the sd card:

I/ActivityManager( 525): Starting activity: Intent { flg=0x10000000 cmp=android/com.android.server.status.UsbStorageActivity bnds=[160,166][640,230] }
D/VoldCmdListener( 77): volume shared /mnt/sdcard ums
I/ActivityManager( 525): Displayed activity android/com.android.server.status.UsbStorageActivity: 153 ms (total 153 ms)
W/InputManagerService( 525): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44fadd38

The inclusion of GPS in the settings did not respond.

If necessary, I can put logcat and dmesg.

In stock firmware all hardware is working.