X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/15a644cdfe990d1eaecc21dd24209b82c07a4da3..refs/heads/lineage-17.1:/scripts/vendor-fixup.sh diff --git a/scripts/vendor-fixup.sh b/scripts/vendor-fixup.sh index 042f183..e90d8c9 100644 --- a/scripts/vendor-fixup.sh +++ b/scripts/vendor-fixup.sh @@ -1,7 +1,7 @@ #!/bin/bash mkdir /home/anbox/tmp_vendor -mount /home/anbox/anbox_arm64_vendor.img /home/anbox/tmp_vendor +mount /home/anbox/anbox_${1}_vendor.img /home/anbox/tmp_vendor SKU=`getprop ro.boot.product.hardware.sku` cp -p /vendor/etc/permissions/android.hardware.nfc.* /home/anbox/tmp_vendor/etc/permissions/ @@ -22,5 +22,12 @@ if [ -f /vendor/lib64/libladder.so ] && [ ! -f /home/anbox/tmp_vendor/lib64/libl wget https://github.com/GS290-dev/gigaset_gs290_dump/raw/full_k63v2_64_bsp-user-10-QP1A.190711.020-1597810494-release-keys/vendor/lib64/libladder.so cd ../../.. fi +if [ -f /vendor/lib64/libmpvr.so ] && [ ! -f /home/anbox/tmp_vendor/lib64/libmpvr.so ]; then + cp /vendor/lib64/libmpvr.so /home/anbox/tmp_vendor/lib64/ +fi +if [ -f /vendor/lib/libmpvr.so ] && [ ! -f /home/anbox/tmp_vendor/lib/libmpvr.so ]; then + cp /vendor/lib/libmpvr.so /home/anbox/tmp_vendor/lib/ +fi +sed -i "s/-service/-service --desktop_file_hint=unity8.desktop/" /home/anbox/tmp_vendor/etc/init/android.hardware.graphics.composer@2.1-service.rc umount /home/anbox/tmp_vendor rm -rf /home/anbox/tmp_vendor