Commit | Line | Data |
---|---|---|
d05bb22f S |
1 | # MTK project .rc configure |
2 | on post-fs-data | |
3 | ||
4 | # | |
5 | # Connectivity related device nodes & configuration (begin) | |
6 | # | |
7 | ||
8 | #/dev/ttyMT2 for Connectivity BT/FM/GPS usage | |
9 | chmod 0660 /dev/ttyMT2 | |
10 | chown system system /dev/ttyMT2 | |
11 | ||
12 | ||
13 | # STP, WMT, GPS, FM and BT Driver | |
14 | # insmod /system/lib/modules/mtk_hif_sdio.ko | |
15 | # insmod /system/lib/modules/mtk_stp_wmt.ko | |
16 | # insmod /system/lib/modules/mtk_stp_uart.ko | |
17 | # insmod /system/lib/modules/mtk_stp_gps.ko | |
18 | # insmod /system/lib/modules/mtk_stp_bt.ko | |
19 | # insmod /system/lib/modules/mtk_fm_drv.ko | |
20 | # insmod /system/lib/modules/mtk_wmt_wifi.ko | |
21 | ||
22 | insmod /system/lib/modules/mtk_wmt_detect.ko | |
23 | ||
24 | # Create char device file for WMT, GPS, BT, FM, WIFI | |
25 | # mknod /dev/stpwmt c 190 0; | |
26 | # mknod /dev/stpgps c 191 0; | |
27 | # mknod /dev/stpbt c 192 0; | |
28 | ||
29 | # chmod 0660 /dev/stpwmt | |
30 | # chown system system /dev/stpwmt | |
31 | # | |
32 | # chmod 0660 /dev/wmtdetect | |
33 | # chown system system /dev/wmtdetect | |
34 | ||
35 | mknod /dev/wmtWifi c 153 0 | |
36 | chmod 0660 /dev/wmtWifi | |
37 | chown system system /dev/wmtWifi | |
38 | ||
39 | # BT | |
40 | # chmod 0660 /dev/stpbt | |
41 | # chown bluetooth radio /dev/stpbt | |
42 | ||
43 | # GPS | |
44 | # chown gps gps /dev/stpgps | |
45 | chown gps gps /sys/class/gpsdrv/gps/pwrctl | |
46 | chown gps gps /sys/class/gpsdrv/gps/suspend | |
47 | chown gps gps /sys/class/gpsdrv/gps/state | |
48 | chown gps gps /sys/class/gpsdrv/gps/pwrsave | |
49 | chown gps gps /sys/class/gpsdrv/gps/status | |
50 | chmod 0660 /dev/stpgps | |
51 | ||
52 | # WiFi | |
53 | mkdir /data/misc/wifi 0770 wifi wifi | |
54 | mkdir /data/misc/wifi/sockets 0770 wifi wifi | |
55 | mkdir /data/misc/wpa_supplicant 0770 wifi wifi | |
56 | chown wifi wifi /data/misc/wifi | |
57 | ||
58 | # FM Radio device node | |
59 | chmod 0660 /dev/fm | |
60 | chown system media /dev/fm | |
61 | ||
62 | #Disable for one Single loader | |
63 | # Load WiFi Driver | |
64 | # insmod /system/lib/modules/wlan.ko | |
65 | ||
66 | # Char device for BT 3.0 HS | |
67 | mknod /dev/ampc0 c 151 0 | |
68 | chown bluetooth bluetooth /dev/ampc0 | |
69 | chmod 0660 /dev/ampc0 | |
70 | ||
71 | # | |
72 | # Connectivity related device nodes & configuration (end) | |
73 | ||
74 | on boot | |
75 | # Refer to http://source.android.com/devices/tech/storage/index.html | |
76 | # It said, "Starting in Android 4.4, multiple external storage devices are surfaced to developers through | |
77 | # Context.getExternalFilesDirs(), Context.getExternalCacheDirs(), and Context.getObbDirs(). | |
78 | # External storage devices surfaced through these APIs must be a semi-permanent part of the device (such as an SD card slot in a battery compartment). | |
79 | # Developers expect data stored in these locations to be available over long periods of time." | |
80 | # Therefore, if the target has the SD card slot in a battery compartment, we need to specify SECONDARY_STORAGE (*** UN-Comment the following command ***) | |
81 | # | |
82 | # export SECONDARY_STORAGE /storage/sdcard1 | |
83 | ||
84 | service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg | |
85 | class late_start | |
86 | disabled | |
87 | ||
88 | # | |
89 | # Connectivity related services (Begin) | |
90 | # | |
91 | ||
92 | service wmtLoader /system/bin/wmt_loader | |
93 | user root | |
94 | group root | |
95 | class main | |
96 | oneshot | |
97 | ||
98 | ||
99 | service conn_launcher /system/bin/6620_launcher -p /system/etc/firmware/ | |
100 | user system | |
101 | group system | |
102 | class core | |
103 | # | |
104 | # Connectivity related services (End) | |
105 | # | |
106 | #[FEATURE]-Add-BEGIN by SCDTABLET.(meiqin),03/27/2015,928381,show version | |
107 | service getver /system/bin/logwrapper /system/bin/getver | |
108 | class late_start | |
109 | user root | |
110 | group root | |
111 | oneshot | |
112 | on property:sys.tct.curef=* | |
113 | setprop ro.tct.curef ${sys.tct.curef} | |
114 | #[FEATURE]-Add-END by SCDTABLET.(meiqin) |