aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRGIB <gibellini.roberto@gmail.com>2016-05-15 14:28:46 +0200
committerRGIB <gibellini.roberto@gmail.com>2016-05-15 14:28:46 +0200
commitdbdbacffea8ef043d9fe815ffc2c98f5aa442536 (patch)
tree89c1547c9514082ffa17f4af2733d46beecce7e3
parent36c3f4b0e34ff6a9cac2e5c9d4e4a4c5dbba6f28 (diff)
downloaddevice_samsung_n5100-dbdbacffea8ef043d9fe815ffc2c98f5aa442536.zip
device_samsung_n5100-dbdbacffea8ef043d9fe815ffc2c98f5aa442536.tar.gz
device_samsung_n5100-dbdbacffea8ef043d9fe815ffc2c98f5aa442536.tar.bz2
n5100 : selinux update
Change-Id: I1a695732162d7dfdd17a3a5f8fb4ecd888aecab0
-rwxr-xr-xrootdir/init.target.rc21
1 files changed, 17 insertions, 4 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index b1e9905..3cd57dd 100755
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -12,6 +12,21 @@ on post-fs-data
chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask
chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask
+# geomagneticd
+ write /data/system/yas.cfg 0
+ write /data/system/yas-backup.cfg 0
+
+# gpsd
+ mkdir /data/system/gps 771 system system
+ write /data/system/gps/.gpslogd.pipe 0
+ write /data/system/gps/.gpsd.lock 0
+ write /data/system/gps/.gps.interface.pipe.to_gpsd 0
+ write /data/system/gps/.gps.interface.pipe.to_jni 0
+
+# bluetooth
+ write /efs/bluetooth/bt_addr 0
+
+# audio
mkdir /data/local/audio 0775 media audio
chown media audio /data/local/audio
@@ -147,12 +162,10 @@ on post-fs-data
# for wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
- restorecon_recursive /efs
- restorecon /system/bin/gpsd
- restorecon /system/bin/geomagneticd
- restorecon_recursive /data/system/gps
restorecon /data/system/yas.cfg
restorecon /data/system/yas-backup.cfg
+ restorecon_recursive /data/system/gps
+ restorecon_recursive /efs/bluetooth
on boot