Adding bind blanking of rogue android services that fail to start and we probably don't need anyway (TrustKernel OS stuff probably for fingerprint sensor)

This commit is contained in:
Adam Boardman 2021-01-06 15:59:03 +00:00
parent bcb5d91386
commit fcbd3efa1c
2 changed files with 21 additions and 0 deletions

View file

@ -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

View file

@ -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