X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/2f90522ad337a206e8e0a219b05b756f77c5b951..e912ee0f1ba2a77b53be6d50fe0619146c982fd4:/packages/proot/termux-chroot diff --git a/packages/proot/termux-chroot b/packages/proot/termux-chroot index 9fde1a81..7e49a42c 100755 --- a/packages/proot/termux-chroot +++ b/packages/proot/termux-chroot @@ -31,8 +31,11 @@ ARGS="$ARGS -b /vendor:/vendor" # 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" +if [ -f /property_contexts ]; then + # Used by getprop (see https://github.com/termux/termux-packages/issues/1076) + # but does not exist on Android 8. + ARGS="$ARGS -b /property_contexts:/property_contexts" +fi # Expose external and internal storage: if [ -d /storage ]; then