diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index d04494a..62143d5 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -44,6 +44,7 @@ BOARD_KERNEL_BASE := 0x80000000 BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0 BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb BOARD_KERNEL_PAGESIZE := 4096 +NEED_KERNEL_MODULE_SYSTEM := true TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_SOURCE := kernel/oneplus/sdm845 TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 83f10fc..301f50e 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -2,6 +2,8 @@ on init mount none /system/lib64/hw/power.qcom.so /vendor/lib64/hw/power.qcom.so bind mount none /system/lib/hw/power.qcom.so /vendor/lib/hw/power.qcom.so bind mount none /system/lib64/hw/hwcomposer.qcom.so /vendor/lib64/hw/hwcomposer.sdm845.so bind + mount none /system/lib/modules/wlan.ko /vendor/lib/modules-aging/qca_cld3_wlan.ko bind + mount none /system/lib/modules/wlan.ko /vendor/lib/modules/qca_cld3_wlan.ko bind on boot # Touchpanel diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts index eb2bfb0..3a24358 100644 --- a/sepolicy/private/file_contexts +++ b/sepolicy/private/file_contexts @@ -9,6 +9,9 @@ # Lights /system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0 +# Modules +/system/lib/modules/wlan\.ko u:object_r:vendor_file:s0 + # Power HAL /system/lib64/hw/power\.qcom\.so u:object_r:vendor_file:s0 /system/lib/hw/power\.qcom\.so u:object_r:vendor_file:s0 diff --git a/sepolicy/private/init.te b/sepolicy/private/init.te new file mode 100644 index 0000000..b4f2343 --- /dev/null +++ b/sepolicy/private/init.te @@ -0,0 +1,2 @@ +# Allow init to mount wlan kernel module +allow init vendor_file:file mounton;