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 | |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 7 | on boot |
| 8 | # interactive governor |
| 9 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 10 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 11 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 12 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/timer_slack |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 13 | chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 14 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 15 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 16 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 17 | chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 18 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/target_loads |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 19 | chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 20 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 21 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 22 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 23 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 24 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 25 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 26 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 27 | chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 28 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/input_boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 29 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 30 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 31 | chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 32 | chmod 0664 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 33 | |
| 34 | # ondemand governor |
| 35 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 36 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 37 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 38 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 39 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 40 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 41 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 42 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 43 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 44 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 45 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 46 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 47 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 48 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 49 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 50 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 51 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 52 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 53 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 54 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 55 | 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] | 56 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 57 | 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] | 58 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 59 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 60 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 61 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
Steve Kondik | 89b04f4 | 2014-02-23 21:49:00 +0100 | [diff] [blame] | 62 | chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
Humberto Borba | 0f913e3 | 2014-01-08 13:16:07 -0200 | [diff] [blame] | 63 | 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] | 64 | 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] | 65 | |
maxwen | 5f032d0 | 2014-01-14 15:37:17 -0200 | [diff] [blame] | 66 | # I/O scheduler |
Humberto Borba | 3b84b67 | 2014-01-08 13:34:57 -0200 | [diff] [blame] | 67 | chown system system /sys/block/mmcblk0/queue/scheduler |
| 68 | chmod 0664 /sys/block/mmcblk0/queue/scheduler |
maxwen | e87cc6d | 2015-01-01 00:41:57 +0100 | [diff] [blame^] | 69 | restorecon /sys/block/mmcblk0/queue/scheduler |
maxwen | a0461c7 | 2014-12-11 01:58:36 +0100 | [diff] [blame] | 70 | chown system system /sys/block/mmcblk0/queue/read_ahead_kb |
| 71 | chmod 0664 /sys/block/mmcblk0/queue/read_ahead_kb |
maxwen | e87cc6d | 2015-01-01 00:41:57 +0100 | [diff] [blame^] | 72 | restorecon /sys/block/mmcblk0/queue/read_ahead_kb |
maxwen | ce83df4 | 2014-11-25 00:13:37 +0100 | [diff] [blame] | 73 | |
maxwen | e6e83c7 | 2014-11-23 21:02:45 +0100 | [diff] [blame] | 74 | chown system system /sys/block/mmcblk1/queue/scheduler |
| 75 | chmod 0664 /sys/block/mmcblk1/queue/scheduler |
maxwen | e87cc6d | 2015-01-01 00:41:57 +0100 | [diff] [blame^] | 76 | restorecon /sys/block/mmcblk1/queue/scheduler |
maxwen | a0461c7 | 2014-12-11 01:58:36 +0100 | [diff] [blame] | 77 | chown system system /sys/block/mmcblk1/queue/read_ahead_kb |
| 78 | chmod 0664 /sys/block/mmcblk1/queue/read_ahead_kb |
maxwen | e87cc6d | 2015-01-01 00:41:57 +0100 | [diff] [blame^] | 79 | restorecon /sys/block/mmcblk1/queue/read_ahead_kb |
Humberto Borba | 3b84b67 | 2014-01-08 13:34:57 -0200 | [diff] [blame] | 80 | |
Humberto Borba | 0ae7538 | 2014-01-08 13:37:06 -0200 | [diff] [blame] | 81 | # allow system to modify ksm control files |
| 82 | chown root system /sys/kernel/mm/ksm/pages_to_scan |
| 83 | chmod 0664 /sys/kernel/mm/ksm/pages_to_scan |
| 84 | chown root system /sys/kernel/mm/ksm/sleep_millisecs |
| 85 | chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs |
| 86 | chown root system /sys/kernel/mm/ksm/run |
| 87 | chmod 0664 /sys/kernel/mm/ksm/run |
| 88 | write /sys/kernel/mm/ksm/sleep_millisecs 1500 |
| 89 | write /sys/kernel/mm/ksm/pages_to_scan 256 |
| 90 | |
Steve Kondik | ebb62ac | 2013-10-02 11:28:28 -0700 | [diff] [blame] | 91 | # set permission to notify_on_migrate node (used by power hal) |
| 92 | chown system system /dev/cpuctl/apps/cpu.notify_on_migrate |
| 93 | chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate |
| 94 | |
maxwen | e6e83c7 | 2014-11-23 21:02:45 +0100 | [diff] [blame] | 95 | chown system system /sys/module/lowmemorykiller/parameters/minfree |
| 96 | chmod 0644 /sys/module/lowmemorykiller/parameters/minfree |
| 97 | |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 98 | # sysinit (/system/etc/init.d) |
| 99 | service sysinit /system/bin/sysinit |
maxwen | ce83df4 | 2014-11-25 00:13:37 +0100 | [diff] [blame] | 100 | class late-start |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 101 | user root |
| 102 | oneshot |
maxwen | 32ec8c6 | 2013-10-17 20:45:38 +0200 | [diff] [blame] | 103 | |
| 104 | # adb over network |
| 105 | on property:service.adb.tcp.port=5555 |
| 106 | stop adbd |
| 107 | start adbd |
| 108 | on property:service.adb.tcp.port=-1 |
| 109 | stop adbd |
| 110 | start adbd |