xplodwild | b3e27ae | 2013-10-17 11:06:27 +0100 | [diff] [blame] | 1 | # Omni Extras |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 2 | |
| 3 | on init |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 4 | export TERMINFO /system/etc/terminfo |
| 5 | export TERM linux |
| 6 | |
| 7 | on post-fs-data |
| 8 | mkdir /cache/dalvik-cache 0771 system system |
| 9 | chown system system /cache/dalvik-cache |
| 10 | chmod 0771 /cache/dalvik-cache |
| 11 | mkdir /data/.ssh 0750 root shell |
| 12 | |
| 13 | # Run sysinit |
| 14 | start sysinit |
| 15 | |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 16 | on boot |
| 17 | # interactive governor |
| 18 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 19 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 20 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 21 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/timer_slack |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 22 | chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 23 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 24 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 25 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 26 | chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 27 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/target_loads |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 28 | chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 29 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 30 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 31 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 32 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 33 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 34 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 35 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 36 | chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 37 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/input_boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 38 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 39 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 40 | chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 41 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 42 | |
| 43 | # ondemand governor |
| 44 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 45 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 46 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 47 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 48 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 49 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 50 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 51 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 52 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 53 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 54 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 55 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 56 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 57 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 58 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 59 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 60 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 61 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 62 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 63 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 64 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 65 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 66 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 67 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 68 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 69 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 70 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 71 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 72 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 73 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 74 | |
| 75 | # Assume SMP uses shared cpufreq policy for all CPUs |
| 76 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 77 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 78 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 79 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 80 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 81 | chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 82 | |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 83 | # I/O scheduler |
Humberto Borba | 3b84b67 | 2014-01-08 13:34:57 -0200 | [diff] [blame] | 84 | chown system system /sys/block/mmcblk0/queue/scheduler |
| 85 | chmod 0664 /sys/block/mmcblk0/queue/scheduler |
| 86 | |
Humberto Borba | 0ae7538 | 2014-01-08 13:37:06 -0200 | [diff] [blame] | 87 | # allow system to modify ksm control files |
| 88 | chown root system /sys/kernel/mm/ksm/pages_to_scan |
| 89 | chmod 0664 /sys/kernel/mm/ksm/pages_to_scan |
| 90 | chown root system /sys/kernel/mm/ksm/sleep_millisecs |
| 91 | chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs |
| 92 | chown root system /sys/kernel/mm/ksm/run |
| 93 | chmod 0664 /sys/kernel/mm/ksm/run |
| 94 | write /sys/kernel/mm/ksm/sleep_millisecs 1500 |
| 95 | write /sys/kernel/mm/ksm/pages_to_scan 256 |
| 96 | |
Steve Kondik | ebb62ac | 2013-10-02 11:28:28 -0700 | [diff] [blame] | 97 | # set permission to notify_on_migrate node (used by power hal) |
| 98 | chown system system /dev/cpuctl/apps/cpu.notify_on_migrate |
| 99 | chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate |
| 100 | |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 101 | # sysinit (/system/etc/init.d) |
| 102 | service sysinit /system/bin/sysinit |
| 103 | user root |
| 104 | oneshot |
| 105 | disabled |
maxwen | 32ec8c6 | 2013-10-17 20:45:38 +0200 | [diff] [blame] | 106 | |
| 107 | # adb over network |
| 108 | on property:service.adb.tcp.port=5555 |
| 109 | stop adbd |
| 110 | start adbd |
| 111 | on property:service.adb.tcp.port=-1 |
| 112 | stop adbd |
| 113 | start adbd |