blob: 3fbb3145153044db87b95d43759d575f31b2399b [file] [log] [blame]
xplodwildb3e27ae2013-10-17 11:06:27 +01001# Omni Extras
Andrew Dodd3fa72fb2013-09-28 12:19:27 -04002
3on init
Andrew Dodd3fa72fb2013-09-28 12:19:27 -04004 export TERMINFO /system/etc/terminfo
5 export TERM linux
6
7on 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 Borba0f913e32014-01-08 13:16:07 -020016on 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
maxwen5f032d02014-01-14 15:37:17 -020020 chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack
21 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
Humberto Borba0f913e32014-01-08 13:16:07 -020022 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
maxwen5f032d02014-01-14 15:37:17 -020026 chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
27 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
Humberto Borba0f913e32014-01-08 13:16:07 -020028 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
maxwen5f032d02014-01-14 15:37:17 -020077 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Humberto Borba0f913e32014-01-08 13:16:07 -020078 chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
maxwen5f032d02014-01-14 15:37:17 -020079 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
Humberto Borba0f913e32014-01-08 13:16:07 -020080 chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
maxwen5f032d02014-01-14 15:37:17 -020081 chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Humberto Borba0f913e32014-01-08 13:16:07 -020082
maxwen5f032d02014-01-14 15:37:17 -020083 # I/O scheduler
Humberto Borba3b84b672014-01-08 13:34:57 -020084 chown system system /sys/block/mmcblk0/queue/scheduler
85 chmod 0664 /sys/block/mmcblk0/queue/scheduler
86
Humberto Borba0ae75382014-01-08 13:37:06 -020087 # 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 Kondikebb62ac2013-10-02 11:28:28 -070097 # 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 Dodd3fa72fb2013-09-28 12:19:27 -0400101# sysinit (/system/etc/init.d)
102service sysinit /system/bin/sysinit
103 user root
104 oneshot
105 disabled
maxwen32ec8c62013-10-17 20:45:38 +0200106
107# adb over network
108on property:service.adb.tcp.port=5555
109 stop adbd
110 start adbd
111on property:service.adb.tcp.port=-1
112 stop adbd
113 start adbd