X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/202a1fb5d3efb4affe66cabc1f5ed33de0db1d80..398ddab9889cc1e52be709d92a51fbaa444e4505:/packages/proot/termux-chroot diff --git a/packages/proot/termux-chroot b/packages/proot/termux-chroot index 9a84101d..0e2c560a 100755 --- a/packages/proot/termux-chroot +++ b/packages/proot/termux-chroot @@ -11,9 +11,16 @@ fi # For the /system/bin/linker(64) to be found: ARGS="-b /system:/system" -# Bind $PREFIX so Termux programs expecting -# to find e.g. configurations files there work. -ARGS="$ARGS -b $PREFIX/..:$PREFIX/.." +# On some devices /vendor is required for termux packages to work correctly +# See https://github.com/termux/proot/issues/2#issuecomment-303995382 +ARGS="$ARGS -b /vendor:/vendor" + +# Bind /data to include system folders such as /data/misc. Also $PREFIX +# and $HOME so that Termux programs with hard-coded paths continue to work: +ARGS="$ARGS -b /data:/data" + +# Used by getprop (see https://github.com/termux/termux-packages/issues/1076): +ARGS="$ARGS -b /property_contexts:/property_contexts" # Expose external and internal storage: if [ -d /storage ]; then