-
Notifications
You must be signed in to change notification settings - Fork 12
/
init.u8800.rc
executable file
·212 lines (166 loc) · 5.94 KB
/
init.u8800.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
on boot
chmod 0666 /dev/light
chmod 0666 /dev/proximity
chmod 0777 /sys/kernel/logger/log_main/enable
chmod 0777 /sys/kernel/logger/log_events/enable
chmod 0777 /sys/kernel/logger/log_radio/enable
chmod 0777 /sys/kernel/logger/log_main/priority
chmod 0777 /sys/kernel/logger/log_events/priority
chmod 0777 /sys/kernel/logger/log_radio/priority
chmod 0666 /dev/accel
chmod 0666 /dev/graphics/fb1
chmod 0666 /dev/compass_aot
chmod 0666 /dev/compass_dev
chmod 0666 /dev/gemini0
chmod 0666 /dev/input/event1
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /proc/bluetooth/clock/proto
chown system system /sys/module/sco/parameters/disable_esco
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chmod 0660 /proc/bluetooth/clock/proto
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
chown system system /sys/module/synaptics_i2c_rmi_1564/parameters/vibrate
chown system system /sys/module/atmel_i2c_rmi_QT602240/parameters/vibrate
chown system system /sys/module/RGB_led/parameters/off_when_suspended
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
chmod 0660 /data/hostapd/hostapd.conf
mkdir /data/wpstiles/ 0777 shell
mkdir /etc/wiper 0777 location system
mkdir /data/bugreports
mkdir /data/drm 0777 root root
chown root root /data/drm
chmod 0777 /data/drm
mkdir /data/radio 0770 radio radio
mkdir /data/drm/rights 0777 root root
chown root root /data/drm/rights
chmod 0777 /data/drm/rights
mkdir /data/hwvefs 0777 root root
chown root root /data/hwvefs
chmod 0777 /data/hwvefs
# SD card polling
chown system system /sys/module/g_android/parameters/product_id
chown system system /sys/devices/platform/msm_sdcc.2/polling
chown system system /sys/devices/platform/msm_sdcc.3/polling
chown system system /sys/devices/platform/msm_sdcc.4/polling
chown system system /sys/devices/platform/android_usb/composition
chown system system /sys/devices/platform/android_usb/remote_wakeup
# Enable MASS storage on SDCARD
# write /sys/devices/platform/msm_hsusb/gadget/lun0/file /dev/block/mmcblk1p1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.4/polling 1
# Increase readahead buffers on MMC devices
write /sys/block/mmcblk0/bdi/read_ahead_kb 1024
write /sys/block/mmcblk1/bdi/read_ahead_kb 1024
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd_wlan0
on property:init.svc.bluetoothd=running
write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
start btwlancoex
on property:init.svc.bluetoothd=stopped
stop btwlancoex
service hci_qcomm_init /system/bin/log -t qcom-bluetooth -p i "hci_qcomm_init service requested"
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11
user root
service oem_rpc_svc /system/bin/oem_rpc_svc
oneshot
service hw_diag_app /system/bin/hw_diag_app
oneshot
service compassd /system/bin/compassd
disabled
oneshot
service rmt_oeminfo /system/bin/rmt_oeminfo
disabled
oneshot
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
user bluetooth
group system bluetooth net_bt_admin
disabled
oneshot
service qmuxd /system/bin/qmuxd
service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
user root
group system bluetooth net_bt_admin
disabled
oneshot
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -W -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
user root
group wifi inet system
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -BKL
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n wlan0
disabled
oneshot
service load_libra /system/bin/load_libra
disabled
oneshot
service wiperiface /system/bin/wiperiface
user location
group system
oneshot
service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
user system
group system
disabled
oneshot
service qcom-sh /system/bin/sh /init.qcom.sh
user root
oneshot
service BtWiRfServer /system/xbin/RfTest
user root
group bluetooth net_bt_admin system
disabled
oneshot
service qcom-post-boot /system/bin/sh /init.qcom.post_boot.sh
user root
disabled
oneshot
service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh
user root
disabled
oneshot
#by geno
service geno /sbin/geno
oneshot
service restart-ms /sbin/restart-ms
oneshot
service optimize /sbin/odex
disabled
oneshot
service timing /sbin/timing
disabled
oneshot
on property:dev.bootcomplete=1
start optimize
start timing
#by geno
on property:init.svc.bootanim=stopped
start qcom-wifi
on property:dev.bootdone=1
start qcom-post-boot
#service ckpd /system/bin/CKPD-daemon
# onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
service applogcat /system/bin/logcat -v time -r 1024 -n 8 -f /data/bugreports/applogcat-log
disabled
service kmsglogcat /system/bin/kmsgcat -r 1024 -n 8 -f /data/bugreports/kmsgcat-log
disabled