OSDN Git Service

Change btattach to be a standard android service
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 14 May 2016 18:16:29 +0000 (02:16 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 19 May 2016 13:31:59 +0000 (21:31 +0800)
init.sh
init.x86.rc

diff --git a/init.sh b/init.sh
index 7ed51de..eacf3bb 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -61,7 +61,7 @@ function init_hal_bluetooth()
        if [ -n "$BTUART_PORT" ]; then
                set_property hal.bluetooth.uart $BTUART_PORT
                chown bluetooth.bluetooth $BTUART_PORT
-               btattach -P bcm -B $BTUART_PORT &
+               start btattach:-B$BTUART_PORT
                log -t hciconfig -p i "`hciconfig`"
        fi
 }
index 3c6a43b..c9671b1 100644 (file)
@@ -99,6 +99,11 @@ service powerbtnd /system/bin/powerbtnd
 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
     class debug
 
+service btattach /system/bin/btattach -Pbcm
+    class main
+    disabled
+    oneshot
+
 service wacom-input /system/bin/wacom-input
     disabled
     oneshot