diff --git a/lib/systemd/system/bind-vendor.service b/lib/systemd/system/bind-vendor.service new file mode 100644 index 0000000..20b418c --- /dev/null +++ b/lib/systemd/system/bind-vendor.service @@ -0,0 +1,12 @@ +[Unit] +Description=Bind mount certain files over /vendor +After=vendor.mount +DefaultDependencies=no + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/bin/sh /usr/bin/droid/bind_vendor.sh + +[Install] +WantedBy=local-fs.target diff --git a/usr/bin/droid/bind_vendor.sh b/usr/bin/droid/bind_vendor.sh new file mode 100644 index 0000000..887f97f --- /dev/null +++ b/usr/bin/droid/bind_vendor.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +#droid-hal-cosmopda-bin had these, uncertain if they are needed with the new LineageOS based generic android rootfs +#mount -o ro,bind /usr/libexec/droid-hybris/vendor/lib64/hw/audio.primary.mt6771.so /vendor/lib64/hw/audio.primary.mt6771.so +#mount -o ro,bind /usr/libexec/droid-hybris/vendor/lib64/libmtk-ril.so /vendor/lib64/libmtk-ril.so + +#disable secure_element and keymaster as tyey 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