]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - scripts/vendor-fixup.sh
anbox: Use iptables-legacy incase it found
[waydroid.git] / scripts / vendor-fixup.sh
index 042f183ab73f59c5d1c0bd99280e5b2124896ac9..d101d55ecea814483cd752ab531c61ab7c9cf932 100644 (file)
@@ -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,6 @@ 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
+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