X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/15a644cdfe990d1eaecc21dd24209b82c07a4da3..30a3cbd862755b661dfdae688665f06e20085097:/scripts/run-container.sh?ds=sidebyside diff --git a/scripts/run-container.sh b/scripts/run-container.sh index 43345ee..79042f5 100644 --- a/scripts/run-container.sh +++ b/scripts/run-container.sh @@ -21,7 +21,7 @@ start cgroup-lite umount -l /sys/fs/cgroup/schedtune # start sensors hal -start anbox-sensors +anbox-sensord & # start anbox-net, that sets up lxc bridge /home/anbox/anbox-net.sh start @@ -32,11 +32,17 @@ stop nfcd # umount rootfs if it was mounted umount -l rootfs || true -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 +if [ -d /vendor/lib/egl ]; then + mount -o bind /vendor/lib/egl rootfs/vendor/lib/egl +fi +if [ -d /vendor/lib64/egl ]; then + mount -o bind /vendor/lib64/egl rootfs/vendor/lib64/egl +fi if mountpoint -q -- /odm; then mount -o bind /odm rootfs/odm_extra @@ -50,8 +56,11 @@ fi chmod 666 /dev/anbox-*binder chmod 777 /dev/ashmem -# Wayland socket permissions -chmod 777 -R /run/user/32011 +# Wayland and pulse socket permissions +XDG_PATH=`cat anbox.prop | grep anbox.xdg_runtime_dir | cut -f 2- -d "="` +PULSE_PATH=`cat anbox.prop | grep anbox.pulse_runtime_path | cut -f 2- -d "="` +chmod 777 -R $PULSE_PATH +chmod 777 -R $XDG_PATH # Set sw_sync permissions chmod 777 /dev/sw_sync