From 6d541ffa81dc1af2b84c623f9c2656669e207ee0 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Sun, 15 May 2016 02:16:29 +0800 Subject: [PATCH] Change btattach to be a standard android service --- init.sh | 2 +- init.x86.rc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 7ed51de..eacf3bb 100644 --- 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 } diff --git a/init.x86.rc b/init.x86.rc index 3c6a43b..c9671b1 100644 --- a/init.x86.rc +++ b/init.x86.rc @@ -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 -- 2.11.0