-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.alpha_max.rc
268 lines (230 loc) · 9.57 KB
/
init.alpha_max.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
on post-fs-data
mkdir /data/kpanic 0770 system system
mkdir /data/kpanic/pstore 0770 system system
# For sdcard to get right context on /data/media/0
mkdir /data/media 0770 media_rw media_rw
mkdir /data/media/0 0770 media_rw media_rw
restorecon /data/media/0
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on boot
write /sys/devices/platform/INT33BB:00/power/control on
# GPS Changes
mkdir /dev/gps 0770 gps system
symlink /dev/ttyS2 /dev/gps/ttyGPS
on init
symlink /fstab /fstab.alpha_max
# ----------------- BEGIN MIX-IN DEFINITIONS -----------------
# Mix-In definitions are auto-generated by mixin-update
##############################################################
# Source: device/intel/mixins/groups/kernel/gmin64/init.rc
##############################################################
##############################################################
# Source: device/intel/mixins/groups/boot-arch/efi/init.rc
##############################################################
on fs
# ro.boot.hardware = TARGET_PRODUCT (set in kernel command line
# as androidboot.hardware). Mount all the filesystems as specified
# in the fstab.
mount_all /fstab
mkdir /dev/pstore 0755 root system
mount pstore pstore /dev/pstore
on post-fs
restorecon /dev/block/by-name/android_persistent
service pstore-clean /system/bin/pstore-clean
user root
group system
class late_start
oneshot
service watchdogd /sbin/watchdogd
user root
class core
oneshot
seclabel u:r:watchdogd:s0
##############################################################
# Source: device/intel/mixins/groups/graphics/ufo_gen7/init.rc.1
##############################################################
on boot
# Allow the Gfx PCI device(0000:02:00) to go into D0ix states through runtime pm
write /sys/devices/pci0000\:00/0000\:00\:02.0/power/control auto
# Set runtime pm autosuspend delay to 500ms for VLV
write /sys/devices/pci0000\:00/0000\:00\:02.0/power/autosuspend_delay_ms 500
##############################################################
# Source: device/intel/mixins/groups/graphics/ufo_gen7/init.rc
##############################################################
# for hardware accelerated graphics
service ufo-init /system/bin/sh /system/etc/init.ufo.sh
class core
oneshot
service coreu /system/bin/coreu
class main
seclabel u:r:coreu:s0
on post-fs-data
mkdir /data/system 0770 system system
restart ufo-init
on init
mkdir /mnt/libreg 0700 root root
mount tmpfs tmpfs /mnt/libreg size=4096,mode=0600
##############################################################
# Source: device/intel/mixins/groups/storage/4xUSB-sda-emulated/init.rc
##############################################################
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
# make mount point for usb thumb drives
mkdir /mnt/media_rw/usbdisk 0700 media_rw media_rw
mkdir /storage/usbdisk 0700 root root
# make mount point for usb thumb drives
mkdir /mnt/media_rw/usbdisk2 0700 media_rw media_rw
mkdir /storage/usbdisk2 0700 root root
# make mount point for usb thumb drives
mkdir /mnt/media_rw/usbdisk3 0700 media_rw media_rw
mkdir /storage/usbdisk3 0700 root root
# make mount point for usb thumb drives
mkdir /mnt/media_rw/usbdisk4 0700 media_rw media_rw
mkdir /storage/usbdisk4 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
on fs
setprop ro.crypto.fuse_sdcard true
on post-fs-data
# For sdcard to get right context on /data/media/0
mkdir /data/media 0770 media_rw media_rw
mkdir /data/media/0 0770 media_rw media_rw
restorecon /data/media/0
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
#external storage
service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbdisk /storage/usbdisk
class late_start
disabled
#external storage
service fuse_usbdisk2 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbdisk2 /storage/usbdisk2
class late_start
disabled
#external storage
service fuse_usbdisk3 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbdisk3 /storage/usbdisk3
class late_start
disabled
#external storage
service fuse_usbdisk4 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbdisk4 /storage/usbdisk4
class late_start
disabled
##############################################################
# Source: device/intel/mixins/groups/ethernet/dhcp/init.rc
##############################################################
service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class main
disabled
oneshot
##############################################################
# Source: device/intel/mixins/groups/usb/host+acc/init.rc
##############################################################
on boot
write /sys/devices/pci0000\:00/0000\:00\:14.0/power/control auto
##############################################################
# Source: device/intel/mixins/groups/disk-bus/mmc-minnow/init.rc
##############################################################
on init
# Android creates by-name disk links with the disk controller
# in the generated path, so that the names pulled out of the GPT
# can be associated with the correct disk. Create a shortcut to
# /dev/block/by-name so that we can use the same fstabs everywhere.
symlink /dev/block/platform/80860F16:00/by-name /dev/block/by-name
##############################################################
# Source: device/intel/mixins/groups/memory/ksm/init.rc
##############################################################
on boot
# KSM tuning
write /sys/kernel/mm/ksm/pages_to_scan 100
write /sys/kernel/mm/ksm/sleep_millisecs 500
write /sys/kernel/mm/ksm/run 1
##############################################################
# Source: device/intel/mixins/groups/suspend/never/init.rc
##############################################################
on boot
write /sys/power/wake_lock nosleeptillbrooklyn
##############################################################
# Source: device/intel/mixins/groups/bluetooth/btusb/init.rc
##############################################################
on post-fs-data
# To store BT paired info
mkdir /data/misc/hcid 0770 bluetooth bluetooth
on boot
insmod /system/lib/modules/iptable_raw.ko
insmod /system/lib/modules/ip6table_raw.ko
insmod /system/lib/modules/8250_dw.ko
insmod /system/lib/modules/6lowpan_iphc.ko
insmod /system/lib/modules/bluetooth.ko
insmod /system/lib/modules/btusb.ko
insmod /system/lib/modules/ath3k.ko
chmod 0644 /sys/kernel/debug/bluetooth/l2cap_le_max_credits
chmod 0644 /sys/kernel/debug/bluetooth/l2cap_le_default_mps
on post-fs-data
mkdir /data/misc/dhcp 0770 dhcp system
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
disabled
oneshot
service iprenew_bt-pan /system/bin/dhcpcd -n
disabled
oneshot
##############################################################
# Source: device/intel/mixins/groups/adb_net/true/init.rc
##############################################################
on init
setprop service.adb.tcp.port 5555
# 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
##############################################################
# Source: device/intel/mixins/groups/bugreport/default/init.rc
##############################################################
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -B \
-o /data/data/com.android.shell/files/bugreports/bugreport
class main
disabled
oneshot
keycodes 114 115 116
##############################################################
# Source: device/intel/mixins/groups/debugfs/default/init.rc
##############################################################
on early-init
# Mount debugfs and make it writable so that debuggerd can
# create stack traces, required with newer kernels
mount debugfs debugfs /sys/kernel/debug
chmod 0755 /sys/kernel/debug
##############################################################
# Source: device/intel/mixins/groups/disk-encryption/default/init.rc
##############################################################
# Don't do this during post-fs-data since there can be multiple
# post-fs-datas in various mixins and we don't know what order they'll
# execute in. Only set this property once we know all post-fs-data sections
# are done. i.e. in load_all_props_action, which comes after post-fs-data
# in system/core/rootdir/init.rc:
on load_all_props_action
setprop vold.post_fs_data_done 1
# ------------------ END MIX-IN DEFINITIONS ------------------
##########Alpha Custom Daemons##########
# Custom log-flushing daemon
service mrknlogd /system/bin/mrknlogd 30
class late_start
user system
group log
oneshot