From 5fb59c1e26d379044636a632c71188f06fe9375a Mon Sep 17 00:00:00 2001 From: Ziyan Date: Sat, 27 Aug 2016 12:16:06 +0200 Subject: ueventd: add bluetooth and GPS permissions Change-Id: I5f5a497fbfe9762f1881cf9c1185f6a53a04ea99 --- rootdir/init.espresso.rc | 6 +----- rootdir/ueventd.espresso.rc | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/rootdir/init.espresso.rc b/rootdir/init.espresso.rc index ae14256..3ce9f75 100644 --- a/rootdir/init.espresso.rc +++ b/rootdir/init.espresso.rc @@ -47,8 +47,6 @@ on post-fs-data # Bluetooth setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" chown bluetooth net_bt_stack ro.bt.bdaddr_path - chown bluetooth net_bt_stack /dev/ttyO1 - chmod 0660 /dev/ttyO1 chmod 0660 /sys/class/rfkill/rfkill0/state chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type @@ -57,9 +55,7 @@ on post-fs-data chmod 0600 /sys/class/sec/switch/jig_on chown radio radio /sys/class/sec/switch/jig_on - # create data/gps for GPS demon - chown root system /dev/ttyO0 - chmod 0660 /dev/ttyO0 + # GPS chown root system /sys/class/sec/gps/GPS_PWR_EN/value chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value chown root system /sys/class/sec/gps/GPS_nRST/value diff --git a/rootdir/ueventd.espresso.rc b/rootdir/ueventd.espresso.rc index 3fa8bc2..bd01fd9 100644 --- a/rootdir/ueventd.espresso.rc +++ b/rootdir/ueventd.espresso.rc @@ -54,3 +54,9 @@ # For SGX /dev/pvrsrvkm 0666 system system + +# Bluetooth +/dev/ttyO1 0660 bluetooth net_bt_stack + +# GPS +/dev/ttyO0 0660 system system -- cgit v1.1