From 9f7b870b06e9ce8ab0a617b9003ea482515c5d67 Mon Sep 17 00:00:00 2001 From: RGIB Date: Mon, 22 Aug 2016 22:42:57 +0200 Subject: n5100 : cleanup Change-Id: I5e621019919ea9abb2877c14811d5e9561de97ff --- rootdir/init.target.rc | 113 ++++++++++++++++++++++++------------------------- 1 file changed, 55 insertions(+), 58 deletions(-) diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index 24e577a..b9c90ee 100755 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -2,12 +2,39 @@ on init ############################ - export LD_SHIM_LIBS /system/bin/gpsd|libsamsung_symbols.so:/system/bin/at_distributor|libsamsung_symbols.so:/system/bin/smdexe|libsamsung_symbols.so + export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so + + mkdir /vendor/etc/ 0771 system system # Vibetonz export VIBE_PIPE_PATH /dev/pipes mkdir /dev/pipes 0771 shell shell + write /sys/module/link_device_lli/parameters/pm_enable 0 + + write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 1 + write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 1 + write /proc/sys/net/core/netdev_max_backlog 8192 + + chown radio radio sys/devices/virtual/misc/multipdp/waketime + chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state + chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state + + # msockets for modem sockets with same permissions as /dev/sockets + # except that the owner is system and part of radio group + mkdir /dev/socket/msockets 0751 system radio + chown system radio /dev/socket/msockets + write /sys/module/modem_modemctl_device_m74xx/parameters/cp_watchdog_enable 1 + + # EHCI runtime enable for LPA + write /sys/devices/platform/s5p-ehci/power/control auto + ############################ on post-fs-data ############################ @@ -21,16 +48,17 @@ on post-fs-data chmod 0660 /dev/ttySAC1 chown root system /sys/class/sec/gps/GPS_PWR_EN/value chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value - mkdir /data/system 0771 system system chown system system /data/system mkdir /data/system/gps 0771 system system chown system system /data/system/gps - - rm /data/gps_started - rm /data/glonass_started - rm /data/smd_started - rm /data/sv_cno.info + mkdir /vendor/etc 0771 system system + chown system system /vendor/etc + rm /data/system/gps/gps_started + rm /data/system/gps/glonass_started + rm /data/system/gps/beidou_started + rm /data/system/gps/smd_started + rm /data/system/gps/sv_cno.info # bluetooth write /efs/bluetooth/bt_addr 0 @@ -47,18 +75,9 @@ on post-fs-data chown radio system /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode chmod 0660 /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode - symlink /dev/block/mmcblk0p4 /dev/block/param - # KeyDisabler chown system system /sys/class/sec/sec_touchkey/keypad_enable -# for datarouter - chown system system /dev/dun - chown system system /dev/ttyGS0 - chown system system /dev/ttyGS1 - chown system system /dev/ttyGS2 - chown system system /dev/ttyGS3 - # Permissions for mDNIe chown system media_rw /sys/class/mdnie/mdnie/mode chown system media_rw /sys/class/mdnie/mdnie/outdoor @@ -185,9 +204,6 @@ on post-fs-data on boot ############################ - # make param block device link for SysScope - symlink /dev/block/mmcblk0p7 /dev/block/param - # epen chown system system /sys/class/sec/sec_epen/epen_saving_mode chmod 660 /sys/class/sec/sec_epen/epen_saving_mode @@ -203,11 +219,8 @@ on property:sys.boot_completed=1 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq write /sys/block/mmcblk0/queue/scheduler cfq write /sys/power/cpufreq_min_limit -1 - write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2 - write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2 - write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2 - write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2 # 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 @@ -217,60 +230,44 @@ on property:sys.boot_completed=1 chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock -on property:sys.boot_completed=1 - stop at_distributor - stop cpboot-daemon - stop SMD-daemon - stop rild - start at_distributor - start cpboot-daemon - start SMD-daemon - start rild + # To prevent out of order acknowledgements from making + # connection tracking to treat them as not belonging to + # the connection they belong to. + # Otherwise, a weird issue happens in which some long + # connections on high-throughput links get dropped when + # an ack packet comes out of order + write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 ############################ ############################ -service at_distributor /system/bin/at_distributor +service cpboot-daemon /system/bin/cbd -d -t xmm6262 -p 7 class main user root - group system radio inet log cache misc audio net_raw sdcard_rw gps - seclabel u:r:at_distributor:s0 + group radio cache inet misc audio sdcard_rw log sdcard_r + seclabel u:r:cpboot-daemon:s0 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 cpboot-daemon /sbin/cbd -d -p7 - class main - user root - group system radio inet log cache misc audio net_raw sdcard_rw gps - seclabel u:r:cpboot-daemon:s0 - - # To prevent out of order acknowledgements from making - # connection tracking to treat them as not belonging to - # the connection they belong to. - # Otherwise, a weird issue happens in which some long - # connections on high-throughput links get dropped when - # an ack packet comes out of order - write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 - 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 -service SMD-daemon /system/bin/smdexe +service TvoutService_C /system/bin/bintvoutservice class main - user root - group system radio inet log cache misc audio net_raw sdcard_rw gps - seclabel u:r:SMD-daemon:s0 + user system + group system +# seclabel u:r:usbtohdmi:s0 -- cgit v1.1