-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.qcom.rc
executable file
·138 lines (109 loc) · 4.12 KB
/
init.qcom.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
on fs
mkdir /persist
mount yaffs2 mtd@persist /persist nosuid nodev
chown system system /persist
chmod 0777 /persist
setprop boot.battchg.pause false
insmod /test_noncb_oemrapi.ko
#Add popedom for CIT by smartwireless ltd
chmod 666 /dev/oncrpc/3000008c:00040000
## Used by libsensors
symlink /dev/lightsensor /dev/MMA8452
mount yaffs2 mtd@system /system rw remount
#---enable keypad interrupt until boot complete
on boot
## RIL needs this
mkdir /data/radio 0777
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 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
symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
setprop wifi.interface wlan0
mkdir /data/wpstiles/ 0777 shell
mkdir /etc/wiper 0777 location qcom_oncrpc
# Adjust socket buffer to enlarge TCP receive window for high bandwidth
write /proc/sys/net/ipv4/tcp_adv_win_scale 1
on property:dev.bootcomplete=1
# Adjust cpufreq to ondemand according to original post-boot script
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 90
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 25000
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 btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
user root
group bluetooth net_bt_admin
disabled
oneshot
# Broken library dependencies. What's this, anyway?
service ckpd /system/bin/CKPD-daemon
#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 hwprops /sbin/hwprops
critical
disabled
oneshot
#service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
# --baudrate 3000000 --patchram /system/etc/BCM4325D1_004.002.004.0230.0244.hcd /dev/ttyHS0
# user bluetooth
# group bluetooth net_bt_admin
# disabled
service hciattach /system/bin/sh /system/bin/init.qcom.bt.sh
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
service qmuxd /system/bin/qmuxd
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
user root
group wifi inet
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
#service hostapd /system/bin/logwrapper /system/bin/hostapd /data/misc/wifi/hostapd.conf
# group wifi inet
# socket wpa_athap0 dgram 660 wifi wifi
# disabled
# oneshot
on property:init.svc.wpa_supplicant=stopped
write /sys/devices/platform/msm_sdcc.2/polling 0
stop dhcpcd
service dhcpcd /system/bin/dhcpcd -BKL wlan0
disabled
oneshot
# change ecompass device permission
chmod 666 /dev/mmc31xx
chmod 666 /dev/ecompass_ctrl
mkdir /data/misc/sensors 0777 system system
# start memsicd service
service memsicd /system/bin/memsicd
user root
oneshot
service wlan_tool /system/bin/wlan_tool
user root
group root
disabled
oneshot