diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-08-27 12:16:06 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-10-30 11:18:54 +0100 |
commit | 5fb59c1e26d379044636a632c71188f06fe9375a (patch) | |
tree | 0dcc1019f3348106b150f75cf13d115372c1af3f | |
parent | 7f447b049a62507aa0339e0678f4faf4991fefa4 (diff) | |
download | device_samsung_espressowifi-5fb59c1e26d379044636a632c71188f06fe9375a.zip device_samsung_espressowifi-5fb59c1e26d379044636a632c71188f06fe9375a.tar.gz device_samsung_espressowifi-5fb59c1e26d379044636a632c71188f06fe9375a.tar.bz2 |
ueventd: add bluetooth and GPS permissions
Change-Id: I5f5a497fbfe9762f1881cf9c1185f6a53a04ea99
-rw-r--r-- | rootdir/init.espresso.rc | 6 | ||||
-rw-r--r-- | 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 |