diff --git a/docs/adding_extra_mounts.md b/docs/adding_extra_mounts.md index 85b919a..6c84f26 100644 --- a/docs/adding_extra_mounts.md +++ b/docs/adding_extra_mounts.md @@ -4,7 +4,7 @@ In case you want to bind directories directly from host's file system to proot c ## How to apply -You can use the traditional `proot-distro` method to use `--bind` argument with paths to bind in syntax `:` before the name of the distribution. Or custom configuration file named `udroid_proot_mounts` in container root ( at `\`) with paths to bind in format `:` +You can use the traditional `proot-distro` method to use `--bind` argument with paths to bind in syntax `:` before the name of the distribution. Or custom configuration file named `udroid_proot_mounts` in container root ( at `/`) with paths to bind in format `:` ### By using argument @@ -19,7 +19,7 @@ udroid -l --bind /sdcard:/sdcard jammy:raw ### By creating config file -Those binds are written in a file named `udroid_proot_mounts` in the root of the container (at `\`). +Those binds are written in a file named `udroid_proot_mounts` in the root of the container (at `/`). > Note that for some udroid builds there may be pre-defined custom mounts points in `udroid_proot_mounts` file. If you want to add your own mounts, you should add them to the end of the file. ( carefull while using redirections to overwrite the file, you may lose the pre-defined mounts ) diff --git a/install.sh b/install.sh index e008899..42490bb 100755 --- a/install.sh +++ b/install.sh @@ -23,6 +23,16 @@ if (( $android_version_code >= 12 )); then sleep 2 fi +# Termux Playstore version warnings +if [[ $TERMUX_VERSION =~ ^"googleplay" ]]; then + sleep 1 + echo + GWARN "[Warning]: Termux Playstore version detected" + GWARN "You may experience issues like crashing or commands not working" + echo + sleep 2 +fi + cd udroid/src || exit 1 # Remove old udroid rm -rf $(which udroid) diff --git a/udroid/src/install.sh b/udroid/src/install.sh index f1b748e..428dcb0 100755 --- a/udroid/src/install.sh +++ b/udroid/src/install.sh @@ -22,6 +22,11 @@ function create_dir() { g_spin minidot "Creating directory \"$1\"..." mkdir -p $1 } +# test if gum can function properly +g_spin minidot "testing gum..." sleep 3 | [[ $? -ne 0 ]] && { + die "running gum failed" +} + create_dir 0 $INSTALL_DIR create_dir 1 $DEFAULT_ROOT create_dir 1 $DEFAULT_FS_INSTALL_DIR diff --git a/udroid/src/proot-utils/proot-utils.sh b/udroid/src/proot-utils/proot-utils.sh index 8ad64b7..2b5cc8c 100644 --- a/udroid/src/proot-utils/proot-utils.sh +++ b/udroid/src/proot-utils/proot-utils.sh @@ -118,8 +118,9 @@ p_login() { PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin \ TERM=$TERM \ LANG=C.UTF-8 \ - /bin/su -l $container_user \ - $cmd_string + /bin/su \ + -l $container_user \ + -c "$cmd_string" }