Change Bluetooth file group id to net_bt_stack
This way we give the bluetooth file access to Bluetooth api of all
the users
bug 6925422
Change-Id: I2d63d492732d49006622275749972fc32f247c26
diff --git a/init.grouper.rc b/init.grouper.rc
index 8e83008..c011968 100644
--- a/init.grouper.rc
+++ b/init.grouper.rc
@@ -37,7 +37,7 @@
mkdir /data/media 0770 media_rw media_rw
# change back to bluetooth from system
- chown bluetooth bluetooth /data/misc/bluetooth
+ chown bluetooth net_bt_stack /data/misc/bluetooth
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
@@ -47,18 +47,18 @@
# bluetooth
# UART device
chmod 0660 /dev/ttyHS2
- chown bluetooth bluetooth /dev/ttyHS2
+ chown bluetooth net_bt_stack /dev/ttyHS2
# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# bluetooth MAC address programming
- chown bluetooth bluetooth ro.bt.bdaddr_path
- chown bluetooth bluetooth /system/etc/bluetooth
- chown bluetooth bluetooth /data/misc/bluetooth
+ chown bluetooth net_bt_stack ro.bt.bdaddr_path
+ chown bluetooth net_bt_stack /system/etc/bluetooth
+ chown bluetooth net_bt_stack /data/misc/bluetooth
setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
# NFC