From 755cc3022e55c2d8d41775d5259ecd2e9a79cf1c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 13 Jun 2017 16:21:56 +0200 Subject: [PATCH] proot: /data & /property_contexts in termux-chroot (#1081) Fixes #1076. --- packages/proot/termux-chroot | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/proot/termux-chroot b/packages/proot/termux-chroot index d9d73fcf8..0e2c560a8 100755 --- a/packages/proot/termux-chroot +++ b/packages/proot/termux-chroot @@ -15,9 +15,12 @@ ARGS="-b /system:/system" # See https://github.com/termux/proot/issues/2#issuecomment-303995382 ARGS="$ARGS -b /vendor:/vendor" -# Bind $PREFIX so Termux programs expecting -# to find e.g. configurations files there work. -ARGS="$ARGS -b $PREFIX/..:$PREFIX/.." +# 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