-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.qsd8k_s7.rc
executable file
·161 lines (138 loc) · 6 KB
/
init.qsd8k_s7.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
# Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Code Aurora nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
on boot
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 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
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
chmod 0777 /dev/sensors
# Create the directories used by the Wireless subsystem
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
# begin: add by h00131430
#symlink /media /data/media
# end: add by h00131430
# begin: added by h00131430 for WiFi and msm_sdcc.ko
setprop wifi.interface wlan0
insmod /system/lib/modules/msm_sdcc.ko
# end: added by h00131430 for WiFi and msm_sdcc.ko
# accelerometer
chmod 0666 /dev/accel
#/*BK4D01053 : log ctl , mazhenhua m00146432, 20090507, begin*/
#/* Ported by Suchangyu(KF21980) */
#//TODO: Because the priority under log_events does not exist any more, it needs to be deleted from path[]. Suchangyu(KF21980). Please refer to line 1162-1163 in kernel/drivers/staging/android/logger.c for more details.
chmod 777 /sys/kernel/logger/log_main/enable
chmod 777 /sys/kernel/logger/log_main/priority
chmod 777 /sys/kernel/logger/log_events/enable
#chmod 777 /sys/kernel/logger/log_events/priority
chmod 777 /sys/kernel/logger/log_radio/enable
chmod 777 /sys/kernel/logger/log_radio/priority
#/*BK4D01053 : log ctl , mazhenhua m00146432, 20090507, end>*/
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
on property:init.svc.bluetoothd=running
write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
#/*< BK4D00112 : socket rpc interface , mazhenhua m00146432, 20090428, start> */
#/* Ported by Sucahgnyu(KF21980) , 20091216 */
service test_oem_rapi /system/bin/test_oem_rapi
oneshot
#/*< BK4D00112 : socket rpc interface , mazhenhua m00146432, 20090428, end> */
# begin: comment out by h00131430 for BCM432x
#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 brcmpatch /system/bin/log -t brcm-bluetooth -p i "brcm_patchram_plus service requested"
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
# end: comment out by h00131430 for BCM432x
service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11
user root
disabled
on property:ro.emmc=1
start rmt_storage
#chendong replace init.qcom.bt.sh with init.brcm.bt.sh 20091229
#service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
# user bluetooth
# group qcom_oncrpc bluetooth net_bt_admin
# disabled
# oneshot
service hciattach /system/bin/sh /system/etc/init.brcm.bt.sh
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system
disabled
oneshot
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
service qmuxd /system/bin/qmuxd
service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh -c -r
user root
group qcom_oncrpc bluetooth net_bt_admin
disabled
oneshot
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
user root
group wifi inet
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd /system/bin/dhcpcd -BKL wlan0
disabled
oneshot
# begin: added by h00131430 for WiFi
service ifcfg_eth0 /system/bin/ifconfig wlan0 up
disabled
oneshot
# end: added by h00131430 for WiFi
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 qcom-post-boot /system/bin/sh /init.qcom.post_boot.sh
user root
disabled
oneshot
on property:dev.bootdone=1
start qcom-post-boot