From 063dfac9d63269912082d527d3411b440cf7cfa3 Mon Sep 17 00:00:00 2001 From: Adam Boardman Date: Tue, 12 Jan 2021 15:59:51 +0000 Subject: [PATCH] Stopped some vendor init's from loading invalid or builtin kernel modules --- usr/bin/droid/bind_vendor.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usr/bin/droid/bind_vendor.sh b/usr/bin/droid/bind_vendor.sh index fce5ef8..36c1cad 100644 --- a/usr/bin/droid/bind_vendor.sh +++ b/usr/bin/droid/bind_vendor.sh @@ -7,3 +7,13 @@ #disable secure_element and keymaster as they always fail mount -o ro,bind /dev/null /vendor/etc/init/android.hardware.secure_element@1.0-service.rc mount -o ro,bind /dev/null /vendor/etc/init/android.hardware.keymaster@3.0-service.rc + +#disable loading of the vendor wlan and bt kernel modules as we include it in our kernel anyway +mount -o ro,bind /dev/null /vendor/etc/init/init.wlan_drv.rc +mount -o ro,bind /dev/null /vendor/etc/init/init.bt_drv.rc +mount -o ro,bind /dev/null /vendor/etc/init/init.wmt_drv.rc + +#disable loading of the vendor fmradio and gps drivers as we build and launch our own within gemian +mount -o ro,bind /dev/null /vendor/etc/init/init.fmradio_drv.rc +mount -o ro,bind /dev/null /vendor/etc/init/init.gps_drv.rc +