-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinit.huawei.rc
executable file
·166 lines (128 loc) · 4.51 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
service dhcp-service /system/bin/netcfg eth0 dhcp
oneshot
on property:dev.bootcomplete=1
stop dhcp-service
start dhcp-service
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
# Create WIFI filesystem structure
mkdir /data/misc 01771 system misc
mkdir /data/misc/wifi 0770 system wifi
mkdir /data/misc/wifi/sockets
chown system wifi /data/misc/wifi/sockets
chmod 770 /data/misc/wifi/sockets
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
mkdir /data/system 0775 system system
setprop wifi.interface eth0
# Create directories for wiper services
mkdir /data/wpstiles/ 0777 shell
mkdir /etc/wiper 0777 location qcom_oncrpc
#caowuguo test 20101221
chmod 777 /dev/oncrpc*
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
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
disabled
on property:ro.emmc=1
start rmt_storage
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin
disabled
oneshot
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
service pcm-bridge /system/bin/pcm-bridge /dev/smd7 /dev/ttyGS1
service qmuxd /system/bin/qmuxd
service netmgrd /system/bin/netmgrd -E
disabled
on property:ro.use_data_netmgrd=true
start netmgrd
service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
user root
group qcom_oncrpc bluetooth net_bt_admin
disabled
oneshot
# Permission for ril
mkdir /data/misc/radio 0774 radio radio
mkdir /data/local
chmod 0777 /data/local
chown radio shell /data/local
mkdir /data/local/tmp
chmod 0777 /data/local/tmp
chown radio shell /data/local/tmp
# For qmuxd socket
mkdir /data/radio 0770 radio radio
chown radio radio 0770 /data/radio
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
group wifi inet
socket wpa_eth0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
disabled
oneshot
service wiperiface /system/bin/wiperiface
user location
group qcom_oncrpc
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 qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh
user root
disabled
oneshot
on property:init.svc.bootanim=stopped
start qcom-post-boot
service ckpd /system/bin/CKPD-daemon
onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
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
service modemlogcat /system/bin/diag_mdlog
disabled
# sleeplogcat is triggered by projectmenu or setprop
service sleeplogcat /system/bin/sleeplogcat -t 10 -p /sdcard/sleeplog/
disabled
start the test_diag support automation and diag in arm11
service test_diag /system/bin/test_diag