blob: 5345610792247c84423eb8a84308a9d9ca6fc13c [file] [log] [blame]
araa342202012-09-04 14:59:34 -03001# Extras
2
Lars Greissc2b6a9c2013-07-30 03:40:40 +02003import /init.superuser.rc
4
krarvind537ce9b2012-10-25 09:21:39 -03005on init
krarvind537ce9b2012-10-25 09:21:39 -03006 export TERMINFO /system/etc/terminfo
7 export TERM linux
8
9on post-fs-data
Lars Greiss3d817d72013-08-13 16:50:15 +020010 mkdir /data/.ssh 0750 root shell
krarvind537ce9b2012-10-25 09:21:39 -030011
12on boot
Josue Rivera5b0ba612013-11-18 23:11:11 +010013 start sysinit
krarvind537ce9b2012-10-25 09:21:39 -030014 chown system system /sys/block/mmcblk0/queue/scheduler
15 chmod 0664 /sys/block/mmcblk0/queue/scheduler
Pawit Pornkitprasan7b41a652015-01-03 12:44:43 +070016 restorecon /sys/block/mmcblk0/queue/scheduler
krarvind537ce9b2012-10-25 09:21:39 -030017
Konsta4c016382014-12-31 12:20:35 +020018 chown system system /dev/cpuctl/apps/cpu.notify_on_migrate
19 chmod 0664 /dev/cpuctl/apps/cpu.notify_on_migrate
krarvind537ce9b2012-10-25 09:21:39 -030020
Arne Coucheron18230492015-04-03 02:01:36 +020021 chown system system /dev/cpuctl/cpu.notify_on_migrate
22 chmod 0664 /dev/cpuctl/cpu.notify_on_migrate
Steve Kondik058e0f52013-10-02 11:28:28 -070023
Nicholas Flintham32b076b2015-04-26 10:11:20 +010024 # Define TCP delayed ack settings for WiFi & LTE
25 chown system system /sys/kernel/ipv4/tcp_delack_seg
26 chown system system /sys/kernel/ipv4/tcp_use_userconfig
27 setprop net.tcp.delack.default 1
28 setprop net.tcp.delack.wifi 20
29 setprop net.tcp.delack.lte 8
30 setprop net.tcp.usercfg.default 0
31 setprop net.tcp.usercfg.wifi 1
32 setprop net.tcp.usercfg.lte 1
33
Steve Kondik946cfd72015-09-06 13:53:29 -070034 # Persistent properties (only created if persist exists)
35 mkdir /persist/properties 0770 system system
36
krarvind537ce9b2012-10-25 09:21:39 -030037# adb over network
38on property:service.adb.tcp.port=5555
39 stop adbd
40 start adbd
41on property:service.adb.tcp.port=-1
42 stop adbd
43 start adbd
44
Josue Rivera5b0ba612013-11-18 23:11:11 +010045# sysinit (/system/etc/init.d)
46service sysinit /system/bin/sysinit
47 user root
48 oneshot
49 disabled