summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorforkbomb <keepcalm444@gmail.com>2015-11-27 23:53:05 +1100
committerSimon Shields <keepcalm444@gmail.com>2015-12-11 10:57:35 +1100
commit8d8ac23e55c865ce1d8f245f4ddea27792667688 (patch)
treebf3ed5619df7484368b9db623e83b94847e7e942 /rootdir
parent808d0b578511aac96a32101c3df523e6fed5b0d8 (diff)
downloaddevice_samsung_i9300-8d8ac23e55c865ce1d8f245f4ddea27792667688.zip
device_samsung_i9300-8d8ac23e55c865ce1d8f245f4ddea27792667688.tar.gz
device_samsung_i9300-8d8ac23e55c865ce1d8f245f4ddea27792667688.tar.bz2
i9300: M sepolicy bringup
GPS fixes taken from grouper: https://github.com/CyanogenMod/android_device_asus_grouper/commit/9651b24fb481bf0fc1db3b1d700033cf66eb067e and https://github.com/CyanogenMod/android_device_asus_grouper/commit/f5592571d581478622f0fc3f86fbbddf20cf89c7 Change-Id: I7ec658691c65c3b6c087ee41ba69f2cb37ade525
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.target.rc38
1 files changed, 19 insertions, 19 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index e8c2e42..ce6ae90 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -1,5 +1,5 @@
on init
- export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so
+ export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so
# ko files for FM Radio
insmod /system/lib/modules/Si4709_driver.ko
@@ -13,29 +13,16 @@ on post-fs-data
chmod 0644 /dev/icdr
chown system system /dev/tzic
-# GPS
- mkdir /data/gps
- chown gps system /data/gps
- chmod 770 /data/gps
-
# make param block device link for SysScope
symlink /dev/block/mmcblk0p4 /dev/block/param
# Restorecon
restorecon_recursive /efs
-on fs
- # zram
- swapon_all /fstab.smdk4x12
-
-on boot
-# cbd
-service cpboot-daemon /sbin/cbd -d
- class main
- user root
- group radio cache inet misc audio sdcard_rw log
-
# GPS init
+ mkdir /data/gps
+ chown gps system /data/gps
+ chmod 1770 /data/gps
write /sys/class/sec/gps/GPS_PWR_EN/export 162
write /sys/class/sec/gps/GPS_PWR_EN/value 0
write /sys/class/sec/gps/GPS_PWR_EN/direction out
@@ -47,10 +34,23 @@ service cpboot-daemon /sbin/cbd -d
restorecon /sys/class/sec/gps/GPS_PWR_EN/value
restorecon /sys/class/sec/gps/GPS_PWR_EN/direction
+on fs
+ # zram
+ swapon_all /fstab.smdk4x12
+
+on boot
+# cbd
+service cpboot-daemon /sbin/cbd -d
+ class main
+ user root
+ group radio cache inet misc audio sdcard_rw log
+ seclabel u:r:cpboot-daemon:s0
+
+
# Start GPS daemon
-service gps-daemon /system/bin/glgps -c /system/etc/gps.xml
+service gps-daemon gps_daemon.sh
class main
socket gps seqpacket 0660 gps system
user gps
group system inet sdcard_rw
- seclabel u:r:gpsd:s0
+ seclabel u:r:glgps:s0