aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrootdir/init.target.rc52
1 files changed, 28 insertions, 24 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index ef21002..694d7b6 100755
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -2,20 +2,16 @@
on init
############################
+ mkdir /vendor/etc/ 0771 system system
+
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
mkdir /dev/pipes 0771 shell shell
- mkdir /vendor/etc/ 0771 system system
-
############################
on post-fs-data
############################
-# for AT distributor
- chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask
- chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask
-
# GPS
chown root system /dev/ttySAC1
chmod 0660 /dev/ttySAC1
@@ -52,9 +48,15 @@ on post-fs-data
chown system system /sys/class/sec/sec_touchkey/keypad_enable
# Permissions for mDNIe
+ chown system media_rw /sys/class/mdnie/mdnie/mode
+ chown system media_rw /sys/class/mdnie/mdnie/outdoor
+ chown system media_rw /sys/class/mdnie/mdnie/scenario
+ chown system system /sys/class/mdnie/mdnie/negative
chown system system /sys/class/mdnie/mdnie/ebook
chown system system /sys/class/mdnie/mdnie/accessibility
chown system media_rw /sys/class/mdnie/mdnie/cabc
+ write /sys/class/mdnie/mdnie/scenario 0
+ write /sys/class/mdnie/mdnie/mode 0
# Permissions for Touchkey
chown system radio /sys/class/sec/sec_touchkey/touchkey_dummy_btn1
@@ -83,21 +85,22 @@ on post-fs-data
chown system radio /sys/class/power_supply/battery/update
# CTIA event
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot
- chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera
- chown system radio /sys/class/power_supply/battery/talk_wcdma
- chown system radio /sys/class/power_supply/battery/talk_gsm
- chown system radio /sys/class/power_supply/battery/call
- chown system radio /sys/class/power_supply/battery/data_call
- chown gps radio /sys/class/power_supply/battery/gps
- chown system radio /sys/class/power_supply/battery/wifi
- chown system radio /sys/class/power_supply/battery/lte
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot
+ chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera
+ chown system radio /sys/class/power_supply/battery/talk_wcdma
+ chown system radio /sys/class/power_supply/battery/talk_gsm
+ chown system radio /sys/class/power_supply/battery/call
+ chown system radio /sys/class/power_supply/battery/data_call
+ chown gps radio /sys/class/power_supply/battery/gps
+ chown system radio /sys/class/power_supply/battery/wifi
+ chown system radio /sys/class/power_supply/battery/lte
# Permissions for gpio_keys
+ chown radio system /sys/class/sec/sec_key/wakeup_keys
write /sys/class/sec/sec_key/wakeup_keys 116,172,544
# IPC sysfs
@@ -185,6 +188,7 @@ on property:sys.boot_completed=1
write /sys/block/mmcblk0/queue/scheduler cfq
write /sys/power/cpufreq_min_limit -1
# SISO-ANDR_PERF :: END
+
chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table
chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
@@ -208,18 +212,18 @@ on property:sys.boot_completed=1
service gpsd /system/bin/gpsd -c /system/etc/gps.xml
class main
user gps
- group system radio inet log cache misc audio net_raw sdcard_rw gps
+ group system inet net_raw
ioprio be 0
seclabel u:r:gpsd:s0
service orientationd /system/bin/orientationd
class main
- user root
- group system radio inet log input cache misc net_raw sdcard_rw gps
+ user compass
+ group input
seclabel u:r:orientationd:s0
service geomagneticd /system/bin/geomagneticd
class main
- user root
- group system radio inet log input cache misc net_raw sdcard_rw gps
+ user compass
+ group system input
seclabel u:r:geomagneticd:s0