-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.p990.rc
267 lines (227 loc) · 8.24 KB
/
init.p990.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
import init.p990.usb.rc
on early-init
start hwprops
#setup sdcard and internal
export TMPDIR /data/local/tmp
export PHONE_STORAGE /mnt/emmc
export EXTERNAL_STORAGE /mnt/sdcard
# create mountpoints for storage
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/emmc 0000 system system
# Backward compatibility
symlink /system/bin /bin
symlink /mnt/sdcard /sdcard
on fs
#20100722, taein.kim@lge.com, Add external security folder [START]
mkdir /mnt/extsecure 0700 root root
mkdir /mnt/extsecure/staging 0700 root root
mkdir /mnt/extsecure/extasec 0700 root root
#20100722, taein.kim@lge.com, Add external security folder [END]
# Secure container public mount points.
mkdir /mnt/asec 0700 root system
mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
#20100722, taein.kim@lge.com, Add external security folder [START]
mkdir /mnt/extasec 0700 root system
mount tmpfs tmpfs /mnt/extasec mode=0755,gid=1000 noatime
#20100722, taein.kim@lge.com, Add external security folder [END]
## ANDY_PORTING LGDRM [lg-drm@lge.com 100401]
mkdir /lgdrm 0770 system audio
## ANDY_END
# mount partitions
mount ext4 /dev/block/mmcblk0p1 /system wait
mount ext4 /dev/block/mmcblk0p1 /system ro noatime remount barrier=1 wait
# We chown/chmod /data again so because mount is run as root + defaults
mount ext4 /dev/block/mmcblk0p8 /data nosuid nodev noatime barrier=1 wait
chown system system /data
chmod 0771 /data
mount ext4 /dev/block/mmcblk0p2 /cache nosuid nodev noatime barrier=1 wait
chown system cache /cache
chmod 0770 /cache
mount ext3 /dev/block/mmcblk0p6 /lgdrm nosuid nodev noatime
on post-fs
## LGE
mkdir /data/nv
chown system system /data/nv
chmod 0711 /data/nv
## LGE
on post-fs-data
chmod 0777 /data/misc/wifi/config_mac # 20101202 mingi.sung@lge.com [WLAN] AT command - MAC address read/write function
mkdir /data/audioprop 0777 system system
# 20100716 mingi.sung@lge.com <make wifi directory> [START]
# WIFI
mkdir /data/misc/wifi/sockets 0771 wifi wifi
setprop wifi.supplicant_scan_interval 20
setprop wifi.interface wlan0
# DHCP
mkdir /data/misc/dhcp 0777 system system
mkdir /data/misc/dhcpcd 0777 system system
# 20100716 mingi.sung@lge.com <make wifi directory> [END]
## ANDY_PORTING LGDRM [lg-drm@lge.com 100401]
# create dirs if not exist
mkdir /data/lgdrm 0770 root root
mkdir /data/wmdrm 0770 root root
on boot
#Permission fixes
#Start a permission script because it allows wildcards
chmod 0755 /sbin/permission.sh
start permission_fix
setprop net.tcp.buffersize.default 4096,87380,196608,4096,16384,110208
setprop net.tcp.buffersize.wifi 4096,87380,393216,4096,16384,110208
setprop net.tcp.buffersize.umts 4096,87380,393216,4096,16384,110208
setprop net.tcp.buffersize.edge 4096,26280,393216,4096,16384,35040
setprop net.tcp.buffersize.gprs 4096,8760,393216,4096,8760,11680
setprop net.tcp.buffersize.hspa 4096,87380,393216,4096,16384,110208
# Define sensor settings
chown system system /sys/devices/platform/tegra_gyro_accel/tilt_onoff
chown system system /sys/devices/platform/tegra_gyro_accel/tap_onoff
chown system system /sys/devices/platform/tegra_gyro_accel/shake_onoff
chown system system /sys/devices/platform/tegra_gyro_accel/snap_onoff
chown system system /sys/devices/platform/tegra_gyro_accel/flip_onoff
chown system system /sys/devices/platform/tegra_gyro_accel/tilt_delay
chown system system /sys/devices/platform/star_aat2870.0/lsensor_onoff
chown system system /sys/devices/platform/star_aat2870.0/alc
# light controls
chown system system /sys/class/leds/buttonpanel/brightness
chown system system /sys/class/leds/buttonpanel/enable
chown system system /sys/class/leds/buttonpanel/pulse
chown system system /sys/class/leds/buttonpanel/pulse_interval
# 20101107, sglee76@lge.com, FOTA [START]
mkdir /data/fota 0777 system system
chown system system /data/fota
chmod 0777 /data/fota
chmod 777 /dev/block/mmcblk0p3
# kernel read permission
chmod 644 /dev/block/mmcblk0p5
# 20101107, sglee76@lge.com, FOTA [END]
## LGE's bluetooth stuff
# bluetooth permissions
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
wait /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chmod 0660 /sys/class/rfkill/rfkill1/state
chmod 0660 /sys/class/rfkill/rfkill1/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type
# 20101121 BT: dohyung10.lee@lge.com - For the BD Address Read / Write
chmod 0666 /sys/devices/platform/star_bd_address/bdaddr_if
write /sys/class/rfkill/rfkill0/state 0
### End of LGE bluetooth
### LGE GPS
# gps permissions
chown system system /sys/devices/platform/tegra_gps_gpio/poweron
chown system system /sys/devices/platform/tegra_gps_gpio/reset
chown system system /dev/ttyHS3
mkdir /data/gps
chmod 777 /data/gps
mkdir /data/gps/var
chmod 777 /data/gps/var
mkdir /data/gps/var/run
chmod 777 /data/gps/var/run
mkdir /data/gps/log
chmod 777 /data/gps/log
mkdir /data/cache
chmod 777 /data/cache
chown system system /system/bin/glgps
chown system system /system/etc/gps_brcm_conf.xml
chown system system /system/etc/cert/
chown system system /system/etc/cert/537a0176.0
chown system system /system/etc/cert/c9dbfc2e.0
chown system system /system/etc/cert/ddc328ff.0
chown system system /system/etc/cert/7651b327.0
chown system system /system/etc/cert/583a21ed.0
chown system system /system/etc/cert/72fa7371.0
chown system system /system/etc/cert/c33a80d4.0
### End of LGE GPS
service hwprops /sbin/hwprops
disabled
oneshot
service lgdrm /system/bin/lgdrmserver
user root
group sdcard_rw radio
service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL # LGE_AUTO_IP - enable IPv4LL (DLNA, 2010.10.19)
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd_wlan0
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf #-dd
class main
socket wpa_wlan0 dgram 660 wifi wifi
group system wifi inet
disabled
oneshot
service secureclockd /system/bin/secureclockd
oneshot
user system
group system
service hdmid /system/bin/hdmid
user system
group system
disabled
## disable immersion vibrator, we want the standard API
#service immvibed /system/bin/immvibed
# user shell
# group shell
# oneshot
service nvrm_daemon /system/bin/nvrm_daemon
class main
user root
#onrestart restart servicemanager
# Daemon for Gyro Sensor
service motion /system/bin/motion
class main
user root
oneshot
disabled
on property:dev.bootcomplete=1
start hdmid
start motion
service rawip_vsnet1 /system/bin/init.vsnet 1
user root
group radio cache inet misc net_admin net_raw
disabled
oneshot
service rawip_vsnet2 /system/bin/init.vsnet 2
user root
group radio cache inet misc net_admin net_raw
disabled
oneshot
service rawip_vsnet3 /system/bin/init.vsnet 3
user root
group radio cache inet misc net_admin net_raw
disabled
oneshot
service rawip_vsnet4 /system/bin/init.vsnet 4
user root
group radio cache inet misc net_admin net_raw
disabled
oneshot
service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
--baudrate 3000000 --patchram /etc/firmware/BCM4329B1_002.002.023.0735.0745.hcd /dev/ttyHS2
class main
user bluetooth
group bluetooth net_bt_admin
disabled
service glgps /system/bin/glgps -c /system/etc/gps_brcm_conf.xml
class main
user system
group net_raw sdcard_rw system
service permission_fix /sbin/permission.sh
disabled
oneshot