init.bluetooth.rc 1022 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. # services
  7. on property:bluetooth.start=daemon
  8. setprop bluetooth.start none
  9. start bluetoothd
  10. on property:bluetooth.stop=daemon
  11. setprop bluetooth.stop none
  12. stop bluetoothd
  13. on property:bluetooth.start=snoop
  14. setprop bluetooth.start none
  15. start bluetoothd-snoop
  16. on property:bluetooth.stop=snoop
  17. setprop bluetooth.stop none
  18. stop bluetoothd-snoop
  19. service bluetoothd /system/bin/bluetoothd
  20. class main
  21. # init does not yet support setting capabilities so run as root,
  22. # bluetoothd drop uid to bluetooth with the right linux capabilities
  23. group bluetooth
  24. disabled
  25. oneshot
  26. service bluetoothd-snoop /system/bin/bluetoothd-snoop
  27. class main
  28. # init does not yet support setting capabilities so run as root,
  29. # bluetoothd-snoop drops unneeded linux capabilities
  30. group nobody
  31. disabled
  32. oneshot