2010-07-07 13:06:13 +00:00
|
|
|
# CyanogenMod Extras
|
2013-07-28 02:52:40 +00:00
|
|
|
import /init.superuser.rc
|
2010-07-07 13:06:13 +00:00
|
|
|
|
2012-10-18 15:38:25 +00:00
|
|
|
on init
|
|
|
|
export ANDROID_CACHE /cache
|
|
|
|
export TERMINFO /system/etc/terminfo
|
|
|
|
|
|
|
|
on post-fs-data
|
|
|
|
mkdir /cache/dalvik-cache 0771 system system
|
|
|
|
chown system system /cache/dalvik-cache
|
|
|
|
chmod 0771 /cache/dalvik-cache
|
2013-05-12 10:58:01 +00:00
|
|
|
mkdir /data/.ssh 0750 root shell
|
2012-10-18 15:38:25 +00:00
|
|
|
|
2012-11-23 17:15:16 +00:00
|
|
|
# Run sysinit
|
|
|
|
start sysinit
|
|
|
|
|
2013-06-12 11:12:18 +00:00
|
|
|
on boot
|
2013-05-21 12:23:19 +00:00
|
|
|
# interactive governor
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
2013-10-24 02:04:24 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
2013-05-21 12:23:19 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
2013-07-12 15:44:16 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
|
2013-05-21 12:23:19 +00:00
|
|
|
|
|
|
|
# ondemand governor
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostfreq
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostfreq
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime
|
2013-10-21 17:22:30 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boosttime
|
2013-05-21 12:23:19 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
2013-10-04 11:31:56 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/input_boost
|
2013-10-08 06:39:12 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/input_boost
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
|
|
|
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
|
2013-05-21 12:23:19 +00:00
|
|
|
|
|
|
|
# Assume SMP uses shared cpufreq policy for all CPUs
|
|
|
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
2013-10-21 17:22:30 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
2013-05-21 12:23:19 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
2013-10-21 17:22:30 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
2013-05-21 12:23:19 +00:00
|
|
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
2013-10-21 17:22:30 +00:00
|
|
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
2013-05-21 12:23:19 +00:00
|
|
|
|
2012-10-18 15:38:25 +00:00
|
|
|
chown system system /sys/block/mmcblk0/queue/scheduler
|
|
|
|
chmod 0664 /sys/block/mmcblk0/queue/scheduler
|
|
|
|
|
2013-10-24 02:04:24 +00:00
|
|
|
# allow system to modify ksm control files
|
2012-10-18 15:38:25 +00:00
|
|
|
chown root system /sys/kernel/mm/ksm/pages_to_scan
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
|
|
|
|
chown root system /sys/kernel/mm/ksm/sleep_millisecs
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
|
|
|
|
chown root system /sys/kernel/mm/ksm/run
|
|
|
|
chmod 0664 /sys/kernel/mm/ksm/run
|
2014-01-10 00:46:18 +00:00
|
|
|
write /sys/kernel/mm/ksm/sleep_millisecs 500
|
|
|
|
write /sys/kernel/mm/ksm/pages_to_scan 100
|
2012-10-18 15:38:25 +00:00
|
|
|
|
2013-10-02 18:28:28 +00:00
|
|
|
chown system system /dev/cpuctl/apps/cpu.notify_on_migrate
|
|
|
|
chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate
|
|
|
|
|
2012-10-18 15:38:25 +00:00
|
|
|
# adb over network
|
|
|
|
on property:service.adb.tcp.port=5555
|
|
|
|
stop adbd
|
|
|
|
start adbd
|
|
|
|
on property:service.adb.tcp.port=-1
|
|
|
|
stop adbd
|
|
|
|
start adbd
|
|
|
|
|
2012-11-23 17:15:16 +00:00
|
|
|
# sysinit (/system/etc/init.d)
|
|
|
|
service sysinit /system/bin/sysinit
|
|
|
|
user root
|
|
|
|
oneshot
|
2013-06-12 11:12:18 +00:00
|
|
|
disabled
|