From a8fb4a0032db58633914c3c2e3150aef28146a0b Mon Sep 17 00:00:00 2001
From: Pawit Pornkitprasan
Date: Sun, 24 Jul 2011 16:42:11 +0700
Subject: Enable proper bluetooth MAC address on aries devices (1/5)
The approach here is to used bdaddr_read.c to read the
MAC address (it's in a different format than ro.bt.bdaddr_path
accepts) at /efs/imei/bt.txt and write it to /data/bdaddr and
set ro.bt.bdaddr_path there. This approach was used with
device/lge/thunderg and bdaddr_read.c was adapted from there.
Change-Id: Ide75a0d6074506cc93b9c11af667f62e7460faa2
---
init.aries.rc | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
(limited to 'init.aries.rc')
diff --git a/init.aries.rc b/init.aries.rc
index c43bcd7..fabe861 100644
--- a/init.aries.rc
+++ b/init.aries.rc
@@ -16,7 +16,6 @@ on boot
setprop ro.build.product aries
setprop ro.product.device aries
setprop ro.radio.noril yes
- setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
# fake some battery state
setprop status.battery.state Slow
@@ -69,8 +68,6 @@ on fs
chmod 770 /efs/imei
# permissions for bluetooth.
- chown bluetooth bluetooth /efs/bluetooth
- chown bluetooth bluetooth ro.bt.bdaddr_path
chown bluetooth bluetooth /dev/s3c2410_serial0
chmod 0600 /dev/s3c2410_serial0
chmod 0660 /sys/class/rfkill/rfkill0/state
@@ -209,6 +206,14 @@ service iprenew_eth0 /system/bin/dhcpcd -n
disabled
oneshot
+service bdaddr /system/bin/bdaddr_read
+ user root
+ disabled
+ oneshot
+
+on property:init.svc.bootanim=running
+ start bdaddr
+
service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
--baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
user bluetooth
--
cgit v1.1