From b2d512942072f1861538851560d07a08f1cb24c8 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Tue, 4 Mar 2014 23:46:38 +0000 Subject: P51xx: Update Bluetooth permissions/restorecon Make /dev/ttyO1 group-writable, add restorecon to two BT sysfs paths. Change-Id: I8ff729f0e128b474933fce9439087da7c2dfbab6 --- rootdir/init.espresso10.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootdir/init.espresso10.rc b/rootdir/init.espresso10.rc index eb0733f..866c73a 100755 --- a/rootdir/init.espresso10.rc +++ b/rootdir/init.espresso10.rc @@ -107,10 +107,12 @@ on post-fs-data setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" chown bluetooth bluetooth ro.bt.bdaddr_path chown bluetooth bluetooth /dev/ttyO1 - chmod 0600 /dev/ttyO1 + chmod 0660 /dev/ttyO1 chmod 0660 /sys/class/rfkill/rfkill0/state chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type + restorecon /sys/class/rfkill/rfkill0/state + restorecon /sys/class/rfkill/rfkill0/type # for samsung factory. chown radio radio /efs/bluetooth -- cgit v1.1