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 |
| 20 | chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
| 21 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
| 22 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
| 23 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
| 24 | chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
| 25 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
| 26 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
| 27 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
| 28 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost |
| 29 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost |
| 30 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
| 31 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
| 32 | chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost |
| 33 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost |
| 34 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
| 35 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration |
| 36 | chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
| 37 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy |
| 38 | |
| 39 | # ondemand governor |
| 40 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
| 41 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostfreq |
| 42 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
| 43 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse |
| 44 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
| 45 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boosttime |
| 46 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
| 47 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy |
| 48 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
| 49 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential |
| 50 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
| 51 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate |
| 52 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
| 53 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias |
| 54 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
| 55 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor |
| 56 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
| 57 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold |
| 58 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
| 59 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/input_boost |
| 60 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
| 61 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core |
| 62 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
| 63 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core |
| 64 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
| 65 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq |
| 66 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
| 67 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sync_freq |
| 68 | chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
| 69 | chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load |
| 70 | |
| 71 | # Assume SMP uses shared cpufreq policy for all CPUs |
| 72 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
| 73 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
| 74 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 75 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 76 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
| 77 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq |
| 78 | |
Andrew Dodd | 3fa72fb | 2013-09-28 12:19:27 -0400 | [diff] [blame] | 79 | # sysinit (/system/etc/init.d) |
| 80 | service sysinit /system/bin/sysinit |
| 81 | user root |
| 82 | oneshot |
| 83 | disabled |
maxwen | 32ec8c6 | 2013-10-17 20:45:38 +0200 | [diff] [blame] | 84 | |
| 85 | # adb over network |
| 86 | on property:service.adb.tcp.port=5555 |
| 87 | stop adbd |
| 88 | start adbd |
| 89 | on property:service.adb.tcp.port=-1 |
| 90 | stop adbd |
| 91 | start adbd |