shell-scripte-code/tsu-extra.sh
Simon Rieger 7fcde70d83 chmod
2017-07-08 12:31:34 +00:00

9 lines
236 B
Bash
Executable file

set -ex
HOME=/storage/emulated/0
PREFIX=/data/data/com.termux/files/usr
ROOT_HOME=$HOME/.suroot
ROOT_SHELL=$PREFIX/bin/bash
mkdir -p $HOME/.suroot
su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"