Permalink
Browse files

Add bluetooth support

  • Loading branch information...
1 parent 5f92e07 commit 6b7b714bf5691526409158800272dfead756e9fe @ius committed Oct 16, 2012
Showing with 13 additions and 4 deletions.
  1. +3 −2 cocktail.mk
  2. +7 −0 init.cocktail.rc
  3. +3 −2 vendor_cocktail.mk
View
@@ -88,13 +88,14 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072 \
wifi.interface=wlan0
-# Radio properties
+# System properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libril-qc-qmi-1.so \
rild.libargs=-d/dev/smd0 \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
- ro.telephony.ril_class=QualcommSharedRIL
+ ro.telephony.ril_class=QualcommSharedRIL \
+ ro.bt.bdaddr_path=/system/etc/bluetooth/bdaddr.txt \
$(call inherit-product, build/target/product/full.mk)
View
@@ -60,6 +60,13 @@ service iprenew_p2p /system/bin/dhcpcd -n p2p
disabled
oneshot
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --no2bytes --tosleep 50000 --baudrate 3000000 --use_baudrate_for_download --patchram /system/etc/firmware/bcm4330.hcd /dev/ttyHS0
+ class main
+ user bluetooth
+ group qcom_oncrpc bluetooth net_bt_admin
+ disabled
+ oneshot
+
service qmiproxy /system/bin/qmiproxy
class main
user radio
View
@@ -9,8 +9,9 @@ PRODUCT_COPY_FILES += \
device/alcatel/cocktail/proprietary/fw_bcmdhd_p2p.bin:/system/etc/firmware/fw_bcmdhd_p2p.bin \
device/alcatel/cocktail/bcmdhd.cal:/system/etc/wifi/bcmdhd.cal
-# bcm4330 bt fw?
-# device/alcatel/cocktail/proprietary/bcm4330.hcd:/system/etc/firmware/bcm4330.hcd
+# bcm4330 bt fw
+PRODUCT_COPY_FILES += \
+ device/alcatel/cocktail/proprietary/BCM4330B1_002.001.003.0087.0000_TCL_Cocktail_TESTONLY.hcd:/system/etc/firmware/bcm4330.hcd
# video codecs
PRODUCT_COPY_FILES += \

2 comments on commit 6b7b714

hey iuss, where did you find this hcd ? can i get a copy if it's working ?

thanks

Owner

ius replied Oct 22, 2012

It's taken from the Alcatel ICS firmware (in /system/bin/) - you can grab it there, or from the CM release.

Please sign in to comment.