summaryrefslogtreecommitdiff
path: root/meta_init.modem.rc
diff options
context:
space:
mode:
Diffstat (limited to 'meta_init.modem.rc')
-rwxr-xr-xmeta_init.modem.rc59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta_init.modem.rc b/meta_init.modem.rc
new file mode 100755
index 0000000..495819d
--- /dev/null
+++ b/meta_init.modem.rc
@@ -0,0 +1,59 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# IMPORTANT: Do not create world writable files or directories.
+# This is a common source of Android security bugs.
+#
+
+on post-fs-data
+
+ write /proc/bootprof "post-fs-data: on meta modem start"
+
+ # Modem related device nodes
+ mkdir /data/nvram/md 0770 root system
+ mkdir /data/nvram/md3 0770 root system
+ mkdir /data/md3 0770 root system
+
+# Build-in Modified - S
+# insmod /system/lib/modules/ccci_plat.ko
+# insmod /system/lib/modules/ccci.ko
+# Build-in Modified - E
+ chown radio radio /sys/kernel/ccci/boot
+
+#SeLinux
+ mkdir /data/ccci_cfg 0770 system radio
+ restorecon /data/ccci_cfg
+ restorecon_recursive /protect_f
+ restorecon_recursive /protect_s
+
+ # Encrypt phone function
+ setprop vold.post_fs_data_done 1
+
+service permission_check /system/bin/permission_check
+ user root
+ group system radio
+ oneshot
+
+service ccci_fsd /system/bin/ccci_fsd 0
+ user radio
+ group radio system
+ oneshot
+
+service ccci_mdinit /system/bin/ccci_mdinit 0
+ user system
+ group radio system
+ oneshot
+
+service ccci3_fsd /system/bin/ccci_fsd 2
+ user radio
+ group radio system
+ oneshot
+
+service ccci3_mdinit /system/bin/ccci_mdinit 2
+ user system
+ group radio system
+ oneshot
+
+service ccci_rpcd /system/bin/ccci_rpcd 0
+ user radio
+ group radio system
+ oneshot