Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / android / init.bluetooth.rc
1 # required permissions
2 on boot
3     chown bluetooth bluetooth /data/misc/bluetooth
4     chown bluetooth bluetooth /dev/uhid
5     chown system    bluetooth /dev/uinput
6
7 # services
8 on property:bluetooth.start=daemon
9     setprop bluetooth.start none
10     start bluetoothd
11
12 on property:bluetooth.stop=daemon
13     setprop bluetooth.stop none
14     stop bluetoothd
15
16 on property:bluetooth.start=snoop
17     setprop bluetooth.start none
18     start bluetoothd-snoop
19
20 on property:bluetooth.stop=snoop
21     setprop bluetooth.stop none
22     stop bluetoothd-snoop
23
24 service bluetoothd /system/bin/bluetoothd
25     class main
26     # init does not yet support setting capabilities so run as root,
27     # bluetoothd drop uid to bluetooth with the right linux capabilities
28     group bluetooth
29     disabled
30     oneshot
31
32 service bluetoothd-snoop /system/bin/bluetoothd-snoop
33     class main
34     # init does not yet support setting capabilities so run as root,
35     # bluetoothd-snoop drops unneeded linux capabilities
36     group nobody
37     disabled
38     oneshot