• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Revision37976583c6d540054b2c450207773fc24ec7add0 (tree)
Time2016-10-12 23:23:54
AuthorJaap Jan Meijer <jjmeijer88@gmai...>
CommiterJaap Jan Meijer

Log Message

Merge remote-tracking branch 'x86/nougat-x86' into cm-14.0-x86

Change Summary

Incremental Difference

--- a/init.sh
+++ b/init.sh
@@ -48,6 +48,7 @@ function init_hal_bluetooth()
4848 case "$PRODUCT" in
4949 T10*TA|HP*Omni*)
5050 BTUART_PORT=/dev/ttyS1
51+ set_property hal.bluetooth.uart.proto bcm
5152 ;;
5253 MacBookPro8*)
5354 rmmod b43
@@ -68,15 +69,13 @@ function init_hal_bluetooth()
6869 for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
6970 chown 1002.1002 $bt && chmod 660 $bt
7071 done
71- modprobe btusb
7272 ;;
7373 esac
7474
7575 if [ -n "$BTUART_PORT" ]; then
7676 set_property hal.bluetooth.uart $BTUART_PORT
7777 chown bluetooth.bluetooth $BTUART_PORT
78- start btattach:-B$BTUART_PORT
79- log -t hciconfig -p i "`hciconfig`"
78+ start btattach
8079 fi
8180 }
8281
@@ -405,16 +404,6 @@ function do_bootcomplete()
405404 post_bootcomplete
406405 }
407406
408-function do_hci()
409-{
410- local hci=`hciconfig | grep ^hci | cut -d: -f1`
411- local btd="`getprop init.svc.bluetoothd`"
412- log -t bluetoothd -p i "$btd ($hci)"
413- if [ -n "`getprop hal.bluetooth.uart`" ]; then
414- [ "`getprop init.svc.bluetoothd`" = "running" ] && hciconfig $hci up
415- fi
416-}
417-
418407 PATH=/sbin:/system/bin:/system/xbin
419408
420409 DMIPATH=/sys/class/dmi/id
@@ -455,9 +444,6 @@ case "$1" in
455444 bootcomplete)
456445 do_bootcomplete
457446 ;;
458- hci)
459- do_hci
460- ;;
461447 init|"")
462448 do_init
463449 ;;
--- a/init.x86.rc
+++ b/init.x86.rc
@@ -1,4 +1,3 @@
1-import /init.bluetooth.rc
21 import /init.superuser.rc
32
43 on early-init
@@ -103,7 +102,7 @@ service powerbtnd /system/bin/powerbtnd
103102 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
104103 class debug
105104
106-service btattach /system/bin/btattach -Pbcm
105+service btattach /system/bin/btattach
107106 class main
108107 disabled
109108 oneshot
@@ -129,12 +128,6 @@ on property:sys.boot_completed=1
129128 write /proc/sys/kernel/ctrl-alt-del 0
130129 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
131130
132-on property:init.svc.bluetoothd=running
133- exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
134-
135-on property:init.svc.bluetoothd=stopped
136- exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
137-
138131 on property:net.dns1=*
139132 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
140133
--- a/packages.mk
+++ b/packages.mk
@@ -64,6 +64,11 @@ PRODUCT_PACKAGES += \
6464 ntfsfix \
6565 tune2fs \
6666
67+PRODUCT_PACKAGES += \
68+ btattach \
69+ hciconfig \
70+ hcitool \
71+
6772 # Third party apps
6873 PRODUCT_PACKAGES += \
6974 Eleven \