mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-24 03:13:34 +08:00
9d46ed7735
We need to make sure /dev/uinput accessible for BlueZ in order for AVRCP to work properly. On some devices (e.g. Nexus 7 a.k.a. flo) permissions are set by default to 'system net_bt_stack' as thus we need to change group to 'bluetooth'.
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# required permissions
|
|
on boot
|
|
chown bluetooth bluetooth /data/misc/bluetooth
|
|
chown bluetooth bluetooth /dev/uhid
|
|
chown system bluetooth /dev/uinput
|
|
|
|
# services
|
|
on property:bluetooth.start=daemon
|
|
setprop bluetooth.start none
|
|
start bluetoothd
|
|
|
|
on property:bluetooth.stop=daemon
|
|
setprop bluetooth.stop none
|
|
stop bluetoothd
|
|
|
|
on property:bluetooth.start=snoop
|
|
setprop bluetooth.start none
|
|
start bluetoothd-snoop
|
|
|
|
on property:bluetooth.stop=snoop
|
|
setprop bluetooth.stop none
|
|
stop bluetoothd-snoop
|
|
|
|
service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd
|
|
class main
|
|
# init does not yet support setting capabilities so run as root,
|
|
# bluetoothd drop uid to bluetooth with the right linux capabilities
|
|
group bluetooth
|
|
disabled
|
|
oneshot
|
|
|
|
service bluetoothd-snoop /system/bin/logwrapper /system/bin/bluetoothd-snoop
|
|
class main
|
|
# init does not yet support setting capabilities so run as root,
|
|
# bluetoothd-snoop drops unneeded linux capabilities
|
|
group nobody
|
|
disabled
|
|
oneshot
|