-
Notifications
You must be signed in to change notification settings - Fork 5
/
init.huawei.rc
executable file
·187 lines (160 loc) · 6.52 KB
/
init.huawei.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
# Copyright (c) 2009, 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.
#
service dhcp-service /system/bin/netcfg eth0 dhcp
oneshot
on property:dev.bootcomplete=1
stop dhcp-service
start dhcp-service
on boot
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 system system /sys/bus/platform/devices/msm_sdcc.1/polling
chown system system /sys/bus/platform/devices/msm_sdcc.2/polling
chown system system /sys/bus/platform/devices/msm_sdcc.3/polling
chown system system /sys/bus/platform/devices/msm_sdcc.4/polling
chown system system /sys/devices/platform/msm_hsusb_periphera/composition
mkdir /data/wpstiles/ 0777
chgrp shell /data/wpstiles/
# Enable MASS storage on SDCARD
write /sys/devices/platform/mass_storage/lun0/file /dev/block/mmcblk0p1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.1/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.2/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.3/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.4/polling 1
service factory_reset /system/bin/factory_reset
user root
disabled
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
disabled
on property:ro.emmc=1
start rmt_storage
#/*< DTS2010060100421 yanzhijun 20100601 begin */
#/* fixup modem issue for kernel version 3.2 */
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0 &
#/* DTS2010060100421 yanzhijun 20100601 end >*/
service qmuxd /system/bin/qmuxd &
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system
disabled
oneshot
service hcid /system/bin/hcid -s -n -f /etc/bluez/hcid.conf
socket bluetooth stream 660 bluetooth bluetooth
socket dbus_bluetooth stream 660 bluetooth bluetooth
# init.rc does not yet support applying capabilities, so run as root and
# let hcid drop uid to bluetooth with the right linux capabilities
group bluetooth net_bt_admin misc
disabled
service dbus_bt /system/bin/sh /etc/dbus_bt/dbus_bt.sh
user bluetooth
group bluetooth net_bt_admin system sdcard_rw
disabled
oneshot
service hfag /system/bin/sdptool add --channel=10 HFAG
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service hsag /system/bin/sdptool add --channel=11 HSAG
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service opush /system/bin/sdptool add --channel=12 OPUSH
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service pbap /system/bin/sdptool add --channel=19 PBAP
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
#/* <BU5D00670 xuhui 20100111 begin */
service BtWiRfServer /system/xbin/RfTest
user root
group bluetooth net_bt_admin system
disabled
oneshot
#/* BU5D00670 xuhui 20100111 end> */
#/* <BU5D04652 xuhui 20100310 begin */
service SppServer /system/bin/sdptool add --channel=1 SP
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
#/* BU5D04652 xuhui 20100310 end> */
service wiperiface /system/bin/wiperiface
user root
group system
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
#/* <DTS2010091303166 renjun 20100913 begin */
# bugreport is triggered by the KEY_VOLUMEUP and KEY_VOLUMEDOWN keycodes or triggered by projectmenu
service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
user root
disabled
oneshot
keycodes 115 114
# applogcat is triggered by projectmenu or setprop
service applogcat /system/bin/logcat -v time -r 1024 -n 16 -f /sdcard/bugreports/applogcat-log
disabled
# kmsglogcat is triggered by projectmenu or setprop
service kmsglogcat /system/bin/kmsgcat -r 1024 -n 16 -f /sdcard/bugreports/kmsgcat-log
disabled
#/* DTS2010091303166 renjun 20100913 end > */
#/*<DTS2011022502482 renjun 20110225 begin*/
service modemlogcat /system/bin/diag_mdlog
disabled
#/*DTS2011022502482 renjun 20110225 end>*/
#/*<DTS2011030501055 hujun 20110305 begin*/
# sleeplogcat is triggered by projectmenu or setprop
service sleeplogcat /system/bin/sleeplogcat -t 10 -p /sdcard/sleeplog/
disabled
#/*DTS2011030501055 hujun 20110305 end>*/