aboutsummaryrefslogtreecommitdiff
path: root/rootdir/factory_init.project.rc
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-01-02 12:44:35 +0100
committerMister Oyster <oysterized@gmail.com>2017-01-02 12:44:35 +0100
commita184d985bf43d3fe6eeba971bc6b32f79ea38b37 (patch)
tree6f6e56e090777cc149bc1ab39e5987cc2b03e867 /rootdir/factory_init.project.rc
initial releasecm-13.0
Diffstat (limited to 'rootdir/factory_init.project.rc')
-rw-r--r--rootdir/factory_init.project.rc80
1 files changed, 80 insertions, 0 deletions
diff --git a/rootdir/factory_init.project.rc b/rootdir/factory_init.project.rc
new file mode 100644
index 0000000..c231fcd
--- /dev/null
+++ b/rootdir/factory_init.project.rc
@@ -0,0 +1,80 @@
+mkdir /data/misc/sensors 0664 system system
+
+service msensord /system/bin/msensord
+ user system
+ group system
+ oneshot
+
+service akmd8963 /system/bin/akmd8963
+ disabled
+ user system
+ group system
+
+
+on post-fs
+#
+# Connectivity related modules and character device nodes (Begin)
+#
+ #for 662x_launcher
+ chmod 0660 /dev/ttyMT2
+ chown system system /dev/ttyMT2
+
+ # STP, SDIO, 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_fm_priv.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;
+ mknod /dev/fm c 193 0;
+ chmod 0660 /dev/stpwmt
+ chown system system /dev/stpwmt
+ chmod 0660 /dev/wmtdetect
+ chown system system /dev/wmtdetect
+
+ # FM Radio device, FIXME: this is not a proper way to set permissions
+ chmod 0666 /dev/fm
+
+ mknod /dev/wmtWifi c 153 0
+ chmod 0666 /dev/wmtWifi
+ chmod 0660 /dev/stpgps
+ chmod 0660 /dev/stpbt
+ chown bluetooth radio /dev/stpbt
+
+ # Load WiFi Driver
+ #insmod /system/lib/modules/wlan.ko
+
+#
+# Connectivity related modules and character device nodes (Ends)
+#
+
+on boot
+
+
+#
+# Connectivity related services (Begin)
+#
+
+service wmtLoader /system/bin/wmt_loader
+ user root
+ group root
+ oneshot
+
+service conn_launcher /system/bin/6620_launcher -p /system/etc/firmware/
+ user system
+ group system
+
+
+#
+# Connectivity related services (End)
+#
+