diff options
author | RGIB <gibellini.roberto@gmail.com> | 2016-06-01 17:04:22 +0200 |
---|---|---|
committer | RGIB <gibellini.roberto@gmail.com> | 2016-06-01 17:04:22 +0200 |
commit | 493fdf6251b4d0402145027cadca267072be3383 (patch) | |
tree | 913e487c92cf5e1373e09936f794b98aef09a264 | |
parent | deb7991bd2e2561c0354eb240d8b8cc693a999bb (diff) | |
download | device_samsung_n5100-493fdf6251b4d0402145027cadca267072be3383.zip device_samsung_n5100-493fdf6251b4d0402145027cadca267072be3383.tar.gz device_samsung_n5100-493fdf6251b4d0402145027cadca267072be3383.tar.bz2 |
n5100 : gps fixes
Change-Id: Ib4cbae0e49b169219d89bbc77f2cae20328aa1cf
-rwxr-xr-x | rootdir/init.target.rc | 66 |
1 files changed, 41 insertions, 25 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index cb033c1..cf53b26 100755 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -16,14 +16,6 @@ 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 - chown system input /data/system/yas.cfg - chown system input /data/system/yas-backup.cfg - chmod 0664 /data/system/yas.cfg - chmod 0664 /data/system/yas-backup.cfg - # GPS chown root system /dev/ttySAC1 chmod 0660 /dev/ttySAC1 @@ -43,6 +35,10 @@ on post-fs-data # bluetooth write /efs/bluetooth/bt_addr 0 +# Waketime fot fast dormancy + chown system radio /sys/devices/platform/mdm_hsic_pm0/waketime + chmod 0660 /sys/devices/platform/mdm_hsic_pm0/waketime + # audio mkdir /data/local/audio 0775 media audio chown media audio /data/local/audio @@ -204,9 +200,22 @@ on property:init.svc.macloader=stopped # SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete 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 + chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock ############################ ############################ @@ -214,12 +223,11 @@ on property:sys.boot_completed=1 service at_distributor /system/bin/at_distributor class main user root - group system radio inet log cache misc audio net_raw sdcard_rw + group system radio inet log cache misc audio net_raw sdcard_rw gps seclabel u:r:at_distributor:s0 service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class late_start - socket gps seqpacket 0775 root gps + class main user gps group system radio inet log cache misc audio net_raw sdcard_rw gps ioprio be 0 @@ -228,29 +236,37 @@ service gpsd /system/bin/gpsd -c /system/etc/gps.xml service cpboot-daemon /sbin/cbd -d -p7 class main user root - group system radio inet log cache misc audio net_raw sdcard_rw + 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 + group system radio inet log input cache misc net_raw sdcard_rw gps 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 + group system radio inet log input cache misc net_raw sdcard_rw gps seclabel u:r:geomagneticd:s0 -#service SMD-daemon /system/bin/smdexe -# class main -# user root -# group system radio inet log cache misc audio net_raw sdcard_rw -# seclabel u:r:SMD-daemon:s0 - -#service DR-daemon /system/bin/ddexe -# class main -# user root -# group system radio inet log cache misc audio net_raw sdcard_rw -# seclabel u:r:DR-daemon:s0 +service SMD-daemon /system/bin/smdexe + class main + user root + group system radio inet log cache misc audio net_raw sdcard_rw gps + seclabel u:r:SMD-daemon:s0 + +service DR-daemon /system/bin/ddexe + class main + user root + group system radio inet log cache misc audio net_raw sdcard_rw gps + seclabel u:r:DR-daemon:s0 |