blob: 25e42193ffd051a55c7fa201bcd3d9522f01a0dd [file] [log] [blame]
Colin Crossa9e55ed2013-10-07 14:15:18 -07001import init.flounder.usb.rc
2
3on init
4 # See storage config details at http://source.android.com/tech/storage/
5 mkdir /mnt/shell/emulated 0700 shell shell
6 mkdir /storage/emulated 0555 root root
7
8 export EXTERNAL_STORAGE /storage/emulated/legacy
9 export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
10 export EMULATED_STORAGE_TARGET /storage/emulated
11
12 # Support legacy paths
13 symlink /storage/emulated/legacy /sdcard
14 symlink /storage/emulated/legacy /mnt/sdcard
15 symlink /storage/emulated/legacy /storage/sdcard0
16 symlink /mnt/shell/emulated/0 /storage/emulated/legacy
17
Colin Cross4ace0af2013-10-10 19:38:59 -070018 mkdir /factory
19
Colin Crossa9e55ed2013-10-07 14:15:18 -070020on post-fs-data
21 setprop vold.post_fs_data_done 1
Colin Cross0b509222013-10-10 17:03:43 -070022 mkdir /data/misc/wifi 0770 wifi wifi
23 mkdir /data/misc/wifi/sockets 0770 wifi wifi
24 mkdir /data/misc/dhcp 0770 dhcp dhcp
25 chown dhcp dhcp /data/misc/dhcp
Colin Crossa9e55ed2013-10-07 14:15:18 -070026
27on boot
28 mount debugfs /sys/kernel/debug /sys/kernel/debug
29
Colin Cross9752ee92013-10-11 11:34:55 -070030 setprop ro.radio.noril true
31
Colin Crossa9e55ed2013-10-07 14:15:18 -070032 # Set up kernel tracing, but disable it by default
33 chmod 0222 /sys/kernel/debug/tracing/trace_marker
34 write /sys/kernel/debug/tracing/tracing_on 0
35
Dan Willemsen9d50dba2013-10-10 15:27:47 -070036 write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/no_lp 0
37
38 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
39 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor conservative
40 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor conservative
41 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor conservative
42
43 write /sys/devices/system/cpu/cpufreq/conservative/up_threshold 95
44 write /sys/devices/system/cpu/cpufreq/conservative/down_threshold 50
45 write /sys/devices/system/cpu/cpufreq/conservative/freq_step 3
46
47 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
48 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
49 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive
50 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive
51 write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 696000
52 write /sys/devices/system/cpu/cpufreq/interactive/target_loads "75 228000:85 696000:90 1530000:95"
53 write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "20000 1530000:50000"
54
55 write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/down_delay 500
56 write /sys/devices/system/cpu/cpuquiet/current_governor runnable
57
58 # Enable power gating of fast CPU's
59 write /sys/module/cpuidle_t11x/parameters/cpu_power_gating_in_idle 31
60 write /sys/module/cpuidle/parameters/power_down_in_idle 1
61
Dan Willemsen7a6c5be2013-10-10 15:23:22 -070062 write /sys/devices/system/cpu/cpuquiet/current_governor runnable
63 write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 1
64
Dan Willemsen9d50dba2013-10-10 15:27:47 -070065 write /sys/kernel/debug/cpuidle/force_clkgt_at_vmin 0x2
66
Colin Crossa9e55ed2013-10-07 14:15:18 -070067on fs
68 mount_all /fstab.flounder
69 setprop ro.crypto.fuse_sdcard true
70
71# virtual sdcard daemon running as media_rw (1023)
72service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
73 class late_start
74
75service battery_charger /charger
76 class charger
77
78# Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin
79service watchdogd /sbin/watchdogd 10 20
80 class core
Colin Crossdfae1632013-10-10 16:03:40 -070081 disabled
Colin Crossa9e55ed2013-10-07 14:15:18 -070082 seclabel u:r:watchdogd:s0
83
84# on userdebug and eng builds, enable kgdb on the serial console
85on property:ro.debuggable=1
86 write /sys/module/kgdboc/parameters/kgdboc ttyFIQ2
87 write /sys/module/fiq_debugger/parameters/kgdb_enable 1
88
89# bugreport is triggered by holding down volume down, volume up and power
90service bugreport /system/bin/dumpstate -d -p -B \
91 -o /data/data/com.android.shell/files/bugreports/bugreport
92 class main
93 disabled
94 oneshot
95 keycodes 114 115 116
96
97service rm_ts_service /vendor/bin/rm_ts_server
98 class main
99 user system
100 group system input
Colin Cross0b509222013-10-10 17:03:43 -0700101
102service p2p_supplicant /system/bin/wpa_supplicant \
103 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
Dmitry Shmidt29d7c832013-10-16 09:28:28 -0700104 -I/system/etc/wifi/p2p_supplicant_overlay.conf \
Colin Cross0b509222013-10-10 17:03:43 -0700105 -O/data/misc/wifi/sockets \
Dmitry Shmidt64028842013-10-14 17:20:23 -0700106 -puse_p2p_group_interface=1p2p_device=1 \
Colin Cross0b509222013-10-10 17:03:43 -0700107 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
108 class main
109 socket wpa_wlan0 dgram 660 wifi wifi
110 disabled
111 oneshot
112
113service wpa_supplicant /system/bin/wpa_supplicant \
114 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
115 -I/system/etc/wifi/wpa_supplicant_overlay.conf \
116 -O/data/misc/wifi/sockets \
117 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
118 class main
119 socket wpa_wlan0 dgram 660 wifi wifi
120 disabled
121 oneshot
122
123service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
124 class main
125 disabled
126 oneshot
127
128service dhcpcd_p2p /system/bin/dhcpcd -aABKL
129 class main
130 disabled
131 oneshot
132
133service iprenew_wlan0 /system/bin/dhcpcd -n
134 class main
135 disabled
136 oneshot
137
138service iprenew_p2p /system/bin/dhcpcd -n
139 class main
140 disabled
141 oneshot