aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jiang <sam.andrew.jiang@gmail.com>2014-03-04 23:46:38 +0000
committerAndrew Jiang <sam.andrew.jiang@gmail.com>2014-03-05 03:47:20 +0000
commitb2d512942072f1861538851560d07a08f1cb24c8 (patch)
treee37524d36c2c22b7836a8ec0f14ee63231cc4866
parent32b945a2820b926aae031b690495fcb48cfdb687 (diff)
downloaddevice_samsung_espresso3g-b2d512942072f1861538851560d07a08f1cb24c8.zip
device_samsung_espresso3g-b2d512942072f1861538851560d07a08f1cb24c8.tar.gz
device_samsung_espresso3g-b2d512942072f1861538851560d07a08f1cb24c8.tar.bz2
P51xx: Update Bluetooth permissions/restorecon
Make /dev/ttyO1 group-writable, add restorecon to two BT sysfs paths. Change-Id: I8ff729f0e128b474933fce9439087da7c2dfbab6
-rwxr-xr-xrootdir/init.espresso10.rc4
1 files changed, 3 insertions, 1 deletions
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