Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edc6c3ae authored by TheMalachite's avatar TheMalachite
Browse files

v7101o: init: Move RIL fix to ccci init script

parent 903e50c6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ PRODUCT_PACKAGES += \
# Init
PRODUCT_PACKAGES += \
    init.mt6771.rc \
    init.cccimdinit.rc \
    fstab.enableswap \
    fstab.mt6771

+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,14 @@ LOCAL_SRC_FILES := etc/init.mt6771.rc
LOCAL_MODULE_PATH  := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE       := init.cccimdinit.rc
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES    := etc/init.cccimdinit.rc
LOCAL_MODULE_PATH  := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE       := fstab.enableswap
LOCAL_MODULE_TAGS  := optional
+31 −0
Original line number Diff line number Diff line
#
on early-init

on post-fs-data

    # Modem related device nodes
    mkdir /mnt/vendor/nvdata/md  0770 root system
    mkdir /mnt/vendor/nvdata/md3  0770 root system
    mkdir /data/vendor/md3	0770 root system
#  Build-in Modified - S
#    insmod /vendor/lib/modules/ccci_plat.ko
#    insmod /vendor/lib/modules/ccci.ko
#  Build-in Modified - E
#   chown radio radio /sys/class/BOOT/BOOT/boot/md
    chown radio radio /sys/kernel/ccci/boot

#SeLinux
    mkdir /data/vendor/ccci_cfg 0770 system radio
    restorecon /data/vendor/ccci_cfg

service ccci_mdinit /vendor/bin/ccci_mdinit 0
    user system
    group radio system
    class core
    oneshot

service ccci3_mdinit /vendor/bin/ccci_mdinit 2
    user system
    group radio system
    class core
    oneshot
+3 −19
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ on init
    # We only need it to be overridden before things are mounted
    mount none /system/etc/fstab.mt6771 /vendor/etc/fstab.mt6771 bind
    mount none /system/etc/fstab.enableswap /vendor/etc/fstab.enableswap bind
    mount none /system/etc/init/init.cccimdinit.rc /vendor/etc/init/init.cccimdinit.rc

on post-fs
    # Unmount the overridden fstab because the SELinux label is incorrect
@@ -19,20 +20,3 @@ on zygote-start

on post-fs
    mount none /system/etc/audio_policy_configuration.xml /vendor/etc/audio_policy_configuration.xml bind

on post-fs-data

service ccci_mdinit /vendor/bin/ccci_mdinit 0
   user system
   group radio system
   class core
   oneshot

service ccci3_mdinit /vendor/bin/ccci_mdinit 2
   user system
   group radio system
   class core
   oneshot

start ccci_mdinit
start ccci3_mdinit