X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/5e3818ecd90b114051d6f24ee86d1801e6117f5f..ead0f6940830256ecbccaddff182bb5e1c318324:/scripts/run-container.sh diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 9f5d367..05f1a08 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -32,11 +32,9 @@ stop nfcd # umount rootfs if it was mounted umount -l rootfs || true -mkdir -p /home/anbox/rootfs -mkdir -p /home/anbox/data -mount anbox_arm64_system.img rootfs +mount anbox_*_system.img rootfs mount -o remount,ro rootfs -mount anbox_arm64_vendor.img rootfs/vendor +mount anbox_*_vendor.img rootfs/vendor mount -o remount,ro rootfs/vendor mount -o bind anbox.prop rootfs/vendor/anbox.prop @@ -48,29 +46,6 @@ else fi fi -# TODO: Move this to installer script -SKU=`getprop ro.boot.product.hardware.sku` -mount -o remount,rw rootfs/vendor -cp -p /vendor/etc/permissions/android.hardware.nfc.* rootfs/vendor/etc/permissions/ -cp -p /vendor/etc/permissions/android.hardware.consumerir.xml rootfs/vendor/etc/permissions/ -cp -p /odm/etc/permissions/android.hardware.nfc.* rootfs/vendor/etc/permissions/ -cp -p /odm/etc/permissions/android.hardware.consumerir.xml rootfs/vendor/etc/permissions/ -if [ ! -z $SKU ]; then - cp -p /odm/etc/permissions/sku_${SKU}/android.hardware.nfc.* rootfs/vendor/etc/permissions/ - cp -p /odm/etc/permissions/sku_${SKU}/android.hardware.consumerir.xml rootfs/vendor/etc/permissions/ -fi -if [ -f /vendor/lib/libladder.so ] && [ ! -f rootfs/vendor/lib/libladder.so ]; then - cd rootfs/vendor/lib - wget https://github.com/GS290-dev/gigaset_gs290_dump/raw/full_k63v2_64_bsp-user-10-QP1A.190711.020-1597810494-release-keys/vendor/lib/libladder.so - cd ../../.. -fi -if [ -f /vendor/lib64/libladder.so ] && [ ! -f rootfs/vendor/lib64/libladder.so ]; then - cd rootfs/vendor/lib64 - 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 -mount -o remount,ro rootfs/vendor - # Anbox binder permissions chmod 666 /dev/anbox-*binder chmod 777 /dev/ashmem