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:
parent
bcb5d91386
commit
fcbd3efa1c
2 changed files with 21 additions and 0 deletions
12
lib/systemd/system/bind-vendor.service
Normal file
12
lib/systemd/system/bind-vendor.service
Normal 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
|
||||||
9
usr/bin/droid/bind_vendor.sh
Normal file
9
usr/bin/droid/bind_vendor.sh
Normal 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
|
||||||
Loading…
Add table
Reference in a new issue