-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.project.rc
106 lines (76 loc) · 2.39 KB
/
init.project.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
# MTK project .rc configure
on post-fs-data
# -----------------------
# Add by MTK
chown system /sys/module/mlog/parameters/do_mlog
chown system /sys/module/mlog/parameters/timer_intval
# default:60 higher value means doing swapping more aggressively (0~100)
write /proc/sys/vm/swappiness 100
#
# Connectivity related device nodes & configuration (begin)
#
#/dev/ttyMT2 for Connectivity BT/FM/GPS usage
chmod 0660 /dev/ttyMT2
chown system system /dev/ttyMT2
# STP, WMT, GPS, FM and BT Driver
# insmod /system/lib/modules/mtk_hif_sdio.ko
# insmod /system/lib/modules/mtk_stp_wmt.ko
# insmod /system/lib/modules/mtk_stp_uart.ko
# insmod /system/lib/modules/mtk_stp_gps.ko
# insmod /system/lib/modules/mtk_stp_bt.ko
# insmod /system/lib/modules/mtk_fm_drv.ko
# insmod /system/lib/modules/mtk_wmt_wifi.ko
insmod /system/lib/modules/mtk_wmt_detect.ko
# Create char device file for WMT, GPS, BT, FM, WIFI
mknod /dev/stpwmt c 190 0;
mknod /dev/stpgps c 191 0;
mknod /dev/stpbt c 192 0;
chmod 0660 /dev/stpwmt
chown system system /dev/stpwmt
chmod 0660 /dev/wmtdetect
chown system system /dev/wmtdetect
mknod /dev/wmtWifi c 153 0
chmod 0660 /dev/wmtWifi
chown system system /dev/wmtWifi
# BT
chmod 0660 /dev/stpbt
chown bluetooth radio /dev/stpbt
# GPS
chown gps gps /dev/stpgps
chown gps gps /sys/class/gpsdrv/gps/pwrctl
chown gps gps /sys/class/gpsdrv/gps/suspend
chown gps gps /sys/class/gpsdrv/gps/state
chown gps gps /sys/class/gpsdrv/gps/pwrsave
chown gps gps /sys/class/gpsdrv/gps/status
chmod 0660 /dev/stpgps
# WiFi
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wpa_supplicant 0770 wifi wifi
chown wifi wifi /data/misc/wifi
#
# Connectivity related device nodes & configuration (end)
#
# Encrypt phone function
setprop vold.post_fs_data_done 1
on boot
#
# Connectivity related services (Begin)
#
service wmtLoader /system/bin/logwrapper /system/bin/wmt_loader
user root
group root
class main
oneshot
service conn_launcher /system/bin/logwrapper /system/bin/6620_launcher -p /system/etc/firmware/
user system
group system
class core
service wlanLoader /system/bin/wlan_loader
user root
group root
class main
oneshot
#
# Connectivity related services (End)
#