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 |
| 19 | chmod 0660 /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 |
| 21 | chmod 0660 /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 |
| 23 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
| 24 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
| 25 | chmod 0660 /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 |
| 27 | chmod 0660 /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 |
| 29 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
| 30 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
| 31 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
| 32 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost |
| 33 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost |
| 34 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
| 35 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
| 36 | chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost |
| 37 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost |
| 38 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
| 39 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
| 40 | chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
| 41 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
| 42 | |
| 43 | # ondemand governor |
| 44 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
| 45 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
| 46 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
| 47 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
| 48 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
| 49 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
| 50 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
| 51 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
| 52 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
| 53 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
| 54 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
| 55 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
| 56 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
| 57 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
| 58 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
| 59 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
| 60 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
| 61 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
| 62 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
| 63 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
| 64 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
| 65 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
| 66 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
| 67 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
| 68 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
| 69 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
| 70 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
| 71 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
| 72 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
| 73 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
| 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 |