Skip to content
Permalink
Browse files

Changes for BT

  • Loading branch information...
Dazzozo committed Dec 24, 2012
1 parent e429b32 commit b96adba0a07ab8d8729408e733ca295df554b815
Showing with 10 additions and 157 deletions.
  1. +1 −2 device.mk
  2. +9 −22 init.blade2.rc
  3. +0 −133 init.qcom.bt.sh
@@ -48,8 +48,7 @@ PRODUCT_COPY_FILES += \
device/zte/blade2/prebuilt/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
device/zte/blade2/prebuilt/Generic.kl:system/usr/keylayout/Generic.kl \
device/zte/blade2/prebuilt/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/zte/blade2/init.qcom.fm.sh:system/etc/init.qcom.fm.sh \
device/zte/blade2/init.qcom.bt.sh:system/etc/init.qcom.bt.sh
device/zte/blade2/init.qcom.fm.sh:system/etc/init.qcom.fm.sh

# Wi-Fi
PRODUCT_COPY_FILES += \
@@ -23,21 +23,21 @@ on boot

# Setup bluetooth
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /proc/bcm/sleep/proto
chown bluetooth net_bt_stack /sys/module/bluetooth_power/parameters/power
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill1/state
chown bluetooth net_bt_stack /proc/bluetooth/sleep/proto
chown bluetooth net_bt_stack /proc/bcm/sleep/proto
chown system system /sys/module/sco/parameters/disable_esco
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill1/state
chmod 0660 /proc/bluetooth/sleep/proto
chmod 0660 /proc/bcm/sleep/proto
chown bluetooth bluetooth /dev/ttyHS0
chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0666 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chown bluetooth net_bt_stack /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock

# Sensors
@@ -102,6 +102,7 @@ service qmuxd /system/bin/qmuxd
class main
user radio

# FIXME: Are these no longer needed or do they need to be fixed?
# Necessary to have functional Bluetooth with Wi-Fi disabled.
on property:init.svc.hciattach=running
write /sys/class/rfkill/rfkill1/state 1
@@ -116,20 +117,6 @@ on property:init.svc.bluetoothd=running
on property:init.svc.bluetoothd=stopped
stop abtfilt

service hci_qcomm_init /system/bin/log -t qcom-bluetooth -p i "hci_qcomm_init service requested"
class main
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot

service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
class main
user root
group qcom_oncrpc bluetooth net_bt_admin system
disabled
oneshot

on property:init.svc.wpa_supplicant=stopped
stop dhcpcd_wlan0

This file was deleted.

0 comments on commit b96adba

Please sign in to comment.
You can’t perform that action at this time.