cswl / tsu Goto Github PK
View Code? Open in Web Editor NEWGain root shell on Termux.
License: ISC License
Gain root shell on Termux.
License: ISC License
This issue will track fixes towards Magisk superuser which is mostly "Permission denied."
All remaining issues will be closed in favor of this one.
https://github.com/cswl/tsu/releases/download/v8.0.0.a%2B/tsu_8.0.0a+_all.deb
I installed this version but when i try to call, termux returns; "The program tsu is not installed. Install it by executing: pkg install tsu"
And If I try pkg install tsu command,
It returns
"0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
I'm very confused about that.
So, in the show usage, I see that we have [USER]
argument. So I think I use that to change another user other than "root".
$ tsu u0_a78
# whoami
root
well it's not. Alright, so I try with sudo. I see that we have -u [user]
argument. So............ nope.
$ sudo --dbg -u u0_a78 bash + shift
+ TERMUX_FS=/data/data/com.termux/files
+ TERMUX_PREFIX=/data/data/com.termux/files/usr
+ TERMUX_PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
+ ROOT_HOME=/data/data/com.termux/files/home/.suroot
+ ANDROIDSYSTEM_PATHS=/system/bin:/system/xbin
+ BB_MAGISK=/sbin/.magisk/busybox
+ log_DEBUG TSU_AS_SUDO
+ [[ true == true ]]
+ [[ -u == \s\u ]]
+ log_DEBUG _TSU_AS_SUDO
+ [[ -z true ]]
+ declare -A EXP_ENV
+ log_DEBUG _TSU_AS_SUDO
+ [[ true == true ]]
+ [[ -z -u ]]
++ printf '%q ' -u u0_a78 bash
+ CMD_ARGS='-u u0_a78 bash '
+ env_path_helper
+ log_DEBUG env_path_helper
+ log_DEBUG SWITCH_USER
+ [[ -z '' ]]
+ NEW_HOME=/data/data/com.termux/files/home/.suroot
+ EXP_ENV[PREFIX]=/data/data/com.termux/files/usr
+ EXP_ENV[TMPDIR]=/data/data/com.termux/files/home/.suroot/.tmp
+ EXP_ENV[LD_PRELOAD]=/data/data/com.termux/files/usr/lib/libtermux-exec.so
+ log_DEBUG _TSU_AS_SUDO
+ [[ true == true ]]
+ NEW_PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
++ id -g
+ SUDO_GID=10078
++ id -un
+ SUDO_USER=u0_a78
+ EXP_ENV[SUDO_GID]=10078
+ EXP_ENV[SUDO_USER]=u0_a78
+ log_DEBUG LD_LIBRARY_PATH
+ [[ -n '' ]]
+ EXP_ENV[PATH]=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
+ EXP_ENV[HOME]=/data/data/com.termux/files/home/.suroot
+ EXP_ENV[TERM]=xterm-256color
+ [[ -z true ]]
+ set +x
+ [[ -d /data/data/com.termux/files/home/.suroot ]]
+ STARTUP_SCRIPT='-u u0_a78 bash '
+ SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")
+ [[ -x /sbin ]]
+ SU_BINARY_SEARCH+=("/sbin/su" "/sbin/bin/su")
+ unset LD_LIBRARY_PATH
+ unset LD_PRELOAD
+ [[ -z '' ]]
++ /sbin/su -v
+ [[ 18.1:MAGISKSU (topjohnwu) == *\M\A\G\I\S\K\S\U ]]
+ for SU_BINARY in "${SU_BINARY_SEARCH[@]}"
+ '[' -e /system/xbin/su ']'
+ for SU_BINARY in "${SU_BINARY_SEARCH[@]}"
+ '[' -e /system/bin/su ']'
+ for SU_BINARY in "${SU_BINARY_SEARCH[@]}"
+ '[' -e /sbin/su ']'
+ exec /sbin/su -c 'PATH=/system/bin:/system/xbin env -i PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets SUDO_GID=10078 ANDROID_DATA=/data SUDO_USER=u0_a78 TMPDIR=/data/data/com.termux/files/home/.suroot/.tmp PREFIX=/data/data/com.termux/files/usr TERM=xterm-256color LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so ANDROID_ROOT=/system HOME=/data/data/com.termux/files/home/.suroot -u u0_a78 bash '
env: exec -u: No such file or directory
kinda funny it's written on help but.... not implemented? 😨
Is there's something wrong? Or I misunderstood something? Is this because I use old Magisk? I rarely update it because it needs to be updated via recovery, or else I lost my root.
So in termux your user home is defaulted (least in my case) /data/data/com.termux/files/home/
so say when i try to do tsudo ./run.sh
it will try to run it from /run.sh
instead of /data/data/com.termux/files/home/run.sh
any way to change the default path on tsudo to where ever i run the command?
After running tsu
my current working directory starts with (unreachable)...
[u0_a116` …/~]$ tsu
[root …/home]# pwd
(unreachable)/data/data/com.termux/files/home
I see that this has something to do with running env -i
. If I take this out from the command it works fine.
[u0_a116 …/~]$ /sbin/su -c > 'PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin ANDROID_DATA=/data TMPDIR=/data/data/com.termux/files/home/.suroot/.tmp PREFIX=/data/data/com.termux/files/usr TERM=xterm-256color LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so ANDROID_ROOT=/system HOME=/data/data/com.termux/files/home/.suroot /data/data/com.termux/files/usr/bin/bash'
[root …/home]# pwd
/data/data/com.termux/files/home
But if I run it this way I get my whole previous environment.
Here is my output from termux-info
Packages CPU architecture:
aarch64
Subscribed repositories:sources.list
deb https://termux.org/packages/ stable main
science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
sources.list.d/pointless.list
deb https://its-pointless.github.io/files/24 termux extras
root-repo (sources.list.d/root.list)
deb https://dl.bintray.com/grimler/termux-root-packages-24 root stable
Updatable packages:
All packages up to date
Android version:
9
Kernel build information:
Linux localhost 4.9.117+ #2 SMP PREEMPT Mon Jul 6 14:52:47 CST 2020 aarch64 Android
Device manufacturer:
LENOVO
Device model:
Lenovo TB-8705F
I know tsu is available in termux repo.
but I'd like to compile tsu and tsudo.
I can't find an android version of shellcheck.
am I missing someting?
thanks.
After installing I wrote "tsu" and I have error:
enter main
/system/xbin/su: invalid option -- -
I think this error there section:
if [ -z "$USER_COMMAND" ]; then
exec "$SU_BINARY" --preserve-environment -c "LD_LIBRARY_PATH=$OLD_LIBRARY_PATH PATH=$PATH $ROOT_SHELL"
else
exec "$SU_BINARY" --preserve-environment -c "LD_LIBRARY_PATH=$OLD_LIBRARY_PATH PATH=$PATH $USER_COMMAND"
fi
Hello,
When using tsu 2.0, the TERM
environment variable is not set and this causes several programs to not work correctly.
My Termux environment:
ANDROID_DATA=/data
ANDROID_ROOT=/system
EXTERNAL_STORAGE=/sdcard
HOME=/data/data/com.termux/files/home
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
LOGNAME=u0_a69
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
PREFIX=/data/data/com.termux/files/usr
PWD=/data/data/com.termux/files/home
SHELL=/data/data/com.termux/files/usr/bin/fish
SHLVL=1
SSH_CLIENT=127.0.0.1 59374 8022
SSH_CONNECTION=127.0.0.1 59374 127.0.0.1 8022
SSH_TTY=/dev/pts/1
TERM=xterm-256color
TMPDIR=/data/data/com.termux/files/usr/tmp
USER=u0_a69
With tsu:
ANDROID_ASSETS=/system/app
ANDROID_BOOTLOGO=1
ANDROID_DATA=/data
ANDROID_ROOT=/system
ANDROID_STORAGE=/storage
ASEC_MOUNTPOINT=/mnt/asec
BOOTCLASSPATH=/system/framework/telephony-ext.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar
DOWNLOAD_CACHE=/data/cache
EXTERNAL_STORAGE=/sdcard
HOME=/
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
PWD=/
SHLVL=1
SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar
TMPDIR=/data/data/com.termux/files/usr/tmp
USER=root
Latest updates caused an issue.
After gettin' in tsu mode the output of the commands looks like this:
echo $0
/data/.../com.termux/files/usr/bin/zsh
echo $SHELL
/system/bin/sh
The problem is that the zsh can't be used, so zsh history and syntax highlightin' are not available, although it worked in previous versions.
$ tsudo 'mkdir 'test1 test2''
$ ls -l
test1
test2
Correct output should be one directory with the name 'test1 test2', not two directories.
I use latest version of magisk (87de0e7a(20408)) on my dell labtop with bliss os.
Tsu was not working. I am sure I have the correct binary su file in the right place.
Other app works fine on root permission requst.
Getting W: sandbox user '_apt' on the system, can not drop privileges
after execute some command under tsu mode
I've already opened a issue in termux packages.
termux/termux-packages#3917
Is this due to magisk update?
my magisk version is:
19.2(19200)
And magisk manager version is:
7.2.0(213)
And android version is
Android 8.1.0 Oreo
i try to use tsu but wipe all my file by accident,seens it not because of tsu but because of this termux/termux-app#735 (comment) ,so i close this issue.
There are several pull requests (including one from me). @cswl is this project still maintained?
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/bash": cannot locate symbol "SSL_session_reused" referenced by "/system/lib64/libmtk_symbols.so"... Aborted
Hi. Im trying to use aircrack-ng tools, but it seems I have a problem with permissions. Plz help. I'm using Galaxy S8, rooted, using Magisk 19.3 and already granted root permission to termux app. But when I tried to use the tool, I got this error.
$ airmon-ng check kill
Run it as root
$ tsu
bash: /data/data/com.termux/files/usr/bin/airmon-ng: /data/data/com.termux/files/usr/bin/sh: bad interpreter: Permission denied
bash: /data/data/com.termux/files/usr/bin/ls: Permission denied
All other commands give me Permission denied error. I just tried
$ tsudo airmon-ng ,
But it still gives me the same error. Someone please give me a solution
hi i have a samsung galaxy S7 edge (SM-G735f) rooted it using Magisk SU which is currently at V 1.18.1 I have troubles to execute commands some of them work (ex: echo) but others don't (like whoami and ls). When they don't i get this message:
bash: /data/data/com.termux/files/usr/bin/applets/ls: Permission denied
Help would be much appreciated
Magisk version is 12.6. Maybe 13.X is still not working.
Hi..I keep getting the below error everytime i try to use tsu to drop to root shell,i have su installed
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/bash": cannot locate symbol "ucnv_open_56" referenced by "/system/lib/libmtk_symbols.so"...
Please help
tsu only works on root and is even worse when passed username
at least same username should result same result
I am trying to back to user of Termux from root. i have tried HOME=/data/...../home PATH=/data/...../sbin su u0_a194 -s /data/...../bash
but doesn't seem to work properly
port 22 for ssh can not be used without root and when start sshd as root I login in root from ssh.
Im using Magisk v17.0, i have granted root acces to termux,and im using an s7 edge.
when i type tsu this shows up:
bash: /data/data/com.termux/files/usr/libexec/termux/command-not-found: Permission denied
please help
same issue as
termux/termux-app#672
which has been fixed
unknown option -- preserve-environment
Usage: su [options] [args...]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-cn, --context CONTEXT switch to SELinux CONTEXT before invoking
-d, -ad, --daemon, --auto-daemon
start the su daemon
-i, --install check and repair su files
-h, --help display this help message and exit
-v, -V, --version display version number and exit
Usage#2: su uid COMMAND...
u0_a89@localhost:$ su 0 id$ uid=0(root) gid=0(root) context=u:r:init:s0
u0_a89@localhost:
u0_a89@localhost:$ su 0 apt$ [-] Execute command failed
u0_a89@localhost:
u0_a89@localhost:$ env$ LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
u0_a89@localhost:
LANG=en_US.UTF-8
PREFIX=/data/data/com.termux/files/usr
PWD=/data/data/com.termux/files/home
HOME=/data/data/com.termux/files/home
TMPDIR=/data/data/com.termux/files/usr/tmp
TERM=xterm-256color
SHLVL=1
ANDROID_ROOT=/system
ANDROID_DATA=/data
EXTERNAL_STORAGE=/storage/emulated/0
PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
_=/data/data/com.termux/files/usr/bin/env
u0_a89@localhost:~$
I originally posted this in #30 (comment):
I am experiencing issues on my Galaxy S7 since an upgrade to Oreo. Downgrading Magisk from 18.1 to a version that worked on Nougat (e.g. 16.3) doesn't help, so I doubt it is a Magisk issue at all.
tsu is able to launch a shell via magisk su
but that shell isn't able to run any executable anymore.
Re-adding the LD_*
variables doesn't help.
selinux is permissive.
I don't know if this is related to #33 because some users report that they are using SuperSU.
I've also had a look at branch v3.0-stash but it looks incomplete. (E.g. libtsu-magisk.sh
is referenced but missing.)
Do you have an explanation for this behavior and is there a known workaround yet?
Here are some details:
$ bash -x tsu
+ getopts :aehps:c opt
+ test -z /data/data/com.termux/files/usr
+ test -n ''
+ test -n ''
+ LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
+ test -n ''
+ test -z ''
+ test -x /data/data/com.termux/files/home/.termux/shell
+ test -x /data/data/com.termux/files/usr/bin/bash
+ ROOT_SHELL=/data/data/com.termux/files/usr/bin/bash
+ OLD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
+ '[' -e /sbin/magisk ']'
+ for s in '/magisk/.core/bin/su' '/sbin/su'
+ '[' -e /magisk/.core/bin/su ']'
+ for s in '/magisk/.core/bin/su' '/sbin/su'
+ '[' -e /sbin/su ']'
+ unset LD_LIBRARY_PATH
+ SU_BINARY=/sbin/su
+ '[' -z '' ']'
+ exec /sbin/su --preserve-environment -c 'LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets /data/data/com.termux/files/usr/bin/bash'
# id
bash: /data/data/com.termux/files/usr/bin/id: Permission denied
# set
ANDROID_DATA=/data
ANDROID_ROOT=/system
BASH=/data/data/com.termux/files/usr/bin/bash
BASHOPTS=cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="4" [2]="23" [3]="1" [4]="release" [5]="aarch64-unknown-linux-android")
BASH_VERSION='4.4.23(1)-release'
COLUMNS=144
DIRSTACK=()
EUID=0
EXTERNAL_STORAGE=/sdcard
GROUPS=()
HISTFILE=/data/data/com.termux/files/home/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/data/data/com.termux/files/home
HOSTNAME=localhost
HOSTTYPE=aarch64
IFS=$' \t\n'
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
LINES=65
LOGNAME=u0_a294
MACHTYPE=aarch64-unknown-linux-android
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-android
PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
PIPESTATUS=([0]="2")
PPID=30596
PREFIX=/data/data/com.termux/files/usr
PS1='\$ '
PS2='> '
PS4='+ '
PWD=/data/data/com.termux/files/home
SHELL=/data/data/com.termux/files/usr/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=2
SSH_CLIENT='127.0.0.1 45315 1123'
SSH_CONNECTION='127.0.0.1 45315 127.0.0.1 1123'
SSH_TTY=/dev/pts/2
TERM=xterm-256color
TMPDIR=/data/data/com.termux/files/usr/tmp
UID=0
USER=u0_a294
_=--help
command_not_found_handle ()
{
/data/data/com.termux/files/usr/libexec/termux/command-not-found "$1"
}
# LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so id
bash: /data/data/com.termux/files/usr/bin/id: Permission denied
hero2lte:/ $ /sbin/su
hero2lte:/ # for f in /sbin/su /sbin/magisk /sbin/magisk.bin /data/data/com.termux/files/usr/bin/{coreutils,id} /data/data/com.termux/files/usr/lib/libtermux-exec.so; do ls -l $f; file $f; done
lrwxrwxrwx 1 root root 12 2019-02-05 18:47 /sbin/su -> /sbin/magisk
/sbin/su: symbolic link
-rwxr-xr-x 1 root root 94 2019-02-05 18:47 /sbin/magisk
/sbin/magisk: /system/bin/sh script
-rwxr-xr-x 1 root root 100068 2019-02-05 18:47 /sbin/magisk.bin
/sbin/magisk.bin: ELF shared object, 32-bit LSB arm, dynamic (/system/bin/linker), BuildID=04ebe378f4100b5ff7c3eb7da8a17a10836e5ce1, stripped
-rwxr-xr-x 1 u0_a294 u0_a294 1054504 2018-07-03 11:20 /data/data/com.termux/files/usr/bin/coreutils
/data/data/com.termux/files/usr/bin/coreutils: ELF shared object, 64-bit LSB arm64, dynamic (/system/bin/linker64), for Android 21, built by NDK r17 (4754217), stripped
lrwxrwxrwx 1 u0_a294 u0_a294 9 2019-01-29 17:46 /data/data/com.termux/files/usr/bin/id -> coreutils
/data/data/com.termux/files/usr/bin/id: symbolic link
-rwxr-xr-x 1 u0_a294 u0_a294 5720 2017-10-01 22:13 /data/data/com.termux/files/usr/lib/libtermux-exec.so
/data/data/com.termux/files/usr/lib/libtermux-exec.so: ELF shared object, 64-bit LSB arm64, stripped
hero2lte:/ # cat /sbin/magisk
#!/system/bin/sh
unset LD_LIBRARY_PATH
unset LD_PRELOAD
exec /sbin/magisk.bin "${0##*/}" "$@"
hero2lte:/ # env | sort
ANDROID_ASSETS=/system/app
ANDROID_BOOTLOGO=1
ANDROID_DATA=/data
ANDROID_ROOT=/system
ANDROID_SOCKET_adbd=8
ANDROID_STORAGE=/storage
ASEC_MOUNTPOINT=/mnt/asec
BOOTCLASSPATH=/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/legacy-test.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/smartbondingservice.jar:/system/framework/sprengine.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/timakeystore.jar:/system/framework/fipstimakeystore.jar:/system/framework/ucmopensslenginehelper.jar:/system/framework/esecomm.jar:/system/framework/SemAudioThumbnail.jar:/system/framework/knoxsdk.jar:/system/framework/sec_edm.jar:/system/framework/sagearpolicymanager.jar:/system/framework/sec_sdp_sdk.jar:/system/framework/sec_sdp_hidden_sdk.jar:/system/framework/knoxvpnuidtag.jar
DOWNLOAD_CACHE=/data/cache
ENC_EMULATED_STORAGE_TARGET=/storage/enc_emulated
EXTERNAL_STORAGE=/sdcard
HOME=/
HOSTNAME=hero2lte
KNOX_STORAGE=/data/knox/ext_sdcard
LOGNAME=root
MC_AUTH_TOKEN_PATH=/efs
PATH=/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin
SHELL=/system/bin/sh
SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/samsung-services.jar:/system/framework/hqm.jar:/system/framework/dmf.jar:/system/framework/ssrm.jar
TERM=dumb
TMPDIR=/data/local/tmp
USER=root
_=/system/bin/env
# getenforce
Permissive
$ x=$(</proc/self/maps)
$ echo "$x"
7b3901a000-7b3902b000 r-xp 00000000 08:0e 8296 /system/lib64/libcutils.so
7b3902b000-7b3902d000 r--p 00010000 08:0e 8296 /system/lib64/libcutils.so
7b3902d000-7b3902e000 rw-p 00012000 08:0e 8296 /system/lib64/libcutils.so
7b39043000-7b39059000 r-xp 00000000 08:0e 8411 /system/lib64/liblog.so
7b39059000-7b3905a000 ---p 00000000 00:00 0
7b3905a000-7b3905b000 r--p 00016000 08:0e 8411 /system/lib64/liblog.so
7b3905b000-7b3905c000 rw-p 00017000 08:0e 8411 /system/lib64/liblog.so
7b39082000-7b390b9000 r-xp 00000000 08:0e 8417 /system/lib64/libm.so
7b390b9000-7b390ba000 r--p 00036000 08:0e 8417 /system/lib64/libm.so
7b390ba000-7b390bb000 rw-p 00037000 08:0e 8417 /system/lib64/libm.so
7b390d6000-7b390d8000 r-xp 00000000 08:0e 8450 /system/lib64/libnetd_client.so
7b390d8000-7b390d9000 ---p 00000000 00:00 0
7b390d9000-7b390da000 r--p 00002000 08:0e 8450 /system/lib64/libnetd_client.so
7b390da000-7b390db000 rw-p 00003000 08:0e 8450 /system/lib64/libnetd_client.so
7b39105000-7b391db000 r-xp 00000000 08:0e 8277 /system/lib64/libc++.so
7b391db000-7b391dc000 ---p 00000000 00:00 0
7b391dc000-7b391e4000 r--p 000d6000 08:0e 8277 /system/lib64/libc++.so
7b391e4000-7b391e5000 rw-p 000de000 08:0e 8277 /system/lib64/libc++.so
7b391e5000-7b391e8000 rw-p 00000000 00:00 0 [anon:.bss]
7b39200000-7b39600000 rw-p 00000000 00:00 0 [anon:libc_malloc]
7b39640000-7b39704000 r-xp 00000000 08:0e 8278 /system/lib64/libc.so
7b39704000-7b39705000 ---p 00000000 00:00 0
7b39705000-7b3970b000 r--p 000c4000 08:0e 8278 /system/lib64/libc.so
7b3970b000-7b3970d000 rw-p 000ca000 08:0e 8278 /system/lib64/libc.so
7b3970d000-7b3970e000 rw-p 00000000 00:00 0 [anon:.bss]
7b3970e000-7b3970f000 r--p 00000000 00:00 0 [anon:.bss]
7b3970f000-7b39716000 rw-p 00000000 00:00 0 [anon:.bss]
7b39763000-7b39765000 r-xp 00000000 08:0e 8305 /system/lib64/libdl.so
7b39765000-7b39766000 r--p 00001000 08:0e 8305 /system/lib64/libdl.so
7b39766000-7b39767000 rw-p 00002000 08:0e 8305 /system/lib64/libdl.so
7b39767000-7b39768000 rw-p 00000000 00:00 0 [anon:.bss]
7b39794000-7b397df000 r-xp 00000000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
7b397df000-7b397f0000 ---p 00000000 00:00 0
7b397f0000-7b397f4000 r--p 0004c000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
7b397f4000-7b397f6000 rw-p 00050000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
7b39804000-7b39827000 r-xp 00000000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7b39827000-7b39843000 ---p 00000000 00:00 0
7b39843000-7b39844000 r--p 0002f000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7b39844000-7b39845000 rw-p 00030000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7b39880000-7b39887000 r-xp 00000000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
7b39887000-7b3989f000 ---p 00000000 00:00 0
7b3989f000-7b398a0000 r--p 0000f000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
7b398a0000-7b398a1000 rw-p 00010000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
7b398d7000-7b398d8000 r-xp 00000000 103:02 1590495 /data/data/com.termux/files/usr/lib/libtermux-exec.so
7b398d8000-7b398d9000 r--p 00000000 103:02 1590495 /data/data/com.termux/files/usr/lib/libtermux-exec.so
7b398d9000-7b398da000 rw-p 00001000 103:02 1590495 /data/data/com.termux/files/usr/lib/libtermux-exec.so
7b398e2000-7b39912000 r--s 00000000 00:0f 12823 /dev/__properties__/u:object_r:default_prop:s0
7b39912000-7b3994d000 r-xp 00000000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7b3994d000-7b39960000 ---p 00000000 00:00 0
7b39960000-7b39962000 r--p 0003e000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7b39962000-7b39969000 rw-p 00040000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7b39981000-7b399b1000 r--s 00000000 00:0f 12863 /dev/__properties__/properties_serial
7b399b1000-7b399b2000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7b399b3000-7b399b4000 rw-p 00000000 00:00 0 [anon:linker_alloc]
7b399be000-7b399bf000 r--p 00000000 00:00 0 [anon:linker_alloc]
7b399cc000-7b399ce000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7b399e4000-7b399e5000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7b399eb000-7b39a1b000 r--s 00000000 00:0f 12857 /dev/__properties__/u:object_r:debug_prop:s0
7b39a1b000-7b39a1c000 ---p 00000000 00:00 0
7b39a1c000-7b39a1d000 rw-p 00000000 00:00 0
7b39a1d000-7b39a1e000 ---p 00000000 00:00 0
7b39a1e000-7b39a4e000 r--s 00000000 00:0f 12863 /dev/__properties__/properties_serial
7b39a4e000-7b39b33000 r-xp 00000000 08:0e 226772 /system/bin/linker64
7b39b34000-7b39b38000 r--p 000e5000 08:0e 226772 /system/bin/linker64
7b39b38000-7b39b39000 rw-p 000e9000 08:0e 226772 /system/bin/linker64
7b39b39000-7b39ba5000 rw-p 00000000 00:00 0
7b39ba5000-7b39ba6000 r--p 00000000 00:00 0
7b39ba6000-7b39bac000 rw-p 00000000 00:00 0
7b39bac000-7b39c4a000 r-xp 00000000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
7b39c4a000-7b39c4b000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7b39c4c000-7b39c4d000 r--p 00000000 00:00 0 [anon:atexit handlers]
7b39c4d000-7b39c50000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7b39c50000-7b39c51000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7b39c51000-7b39c52000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7b39c52000-7b39c53000 rw-p 00000000 00:00 0 [anon:arc4random data]
7b39c53000-7b39c54000 rw-p 00000000 00:00 0 [anon:linker_alloc]
7b39c54000-7b39c55000 rw-p 00000000 00:00 0 [anon:linker_alloc_lob]
7b39c55000-7b39c56000 r--p 00000000 00:00 0 [anon:linker_alloc]
7b39c56000-7b39c57000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7b39c57000-7b39c58000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7b39c58000-7b39c59000 r--p 00000000 00:00 0 [anon:linker_alloc]
7b39c59000-7b39c5a000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7b39c5a000-7b39c5b000 r--p 00000000 00:00 0 [anon:atexit handlers]
7b39c5b000-7b39c5c000 ---p 00000000 00:00 0 [anon:thread signal stack guard page]
7b39c5c000-7b39c60000 rw-p 00000000 00:00 0 [anon:thread signal stack]
7b39c60000-7b39c61000 rw-p 00000000 00:00 0 [anon:arc4random data]
7b39c61000-7b39c62000 ---p 00000000 00:00 0 [anon:bionic TLS guard page]
7b39c62000-7b39c65000 rw-p 00000000 00:00 0 [anon:bionic TLS]
7b39c65000-7b39c66000 ---p 00000000 00:00 0 [anon:bionic TLS guard page]
7b39c66000-7b39c67000 r--p 00000000 00:00 0 [vvar]
7b39c67000-7b39c68000 r-xp 00000000 00:00 0 [vdso]
7b39c68000-7b39c6c000 r--p 000ac000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
7b39c6c000-7b39c6f000 rw-p 000b0000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
7b39c6f000-7b39c78000 rw-p 00000000 00:00 0
7fd0230000-7fd0251000 rw-p 00000000 00:00 0 [stack]
$ tsu
# echo "$x"
766385e000-766386f000 r-xp 00000000 08:0e 8296 /system/lib64/libcutils.so
766386f000-7663871000 r--p 00010000 08:0e 8296 /system/lib64/libcutils.so
7663871000-7663872000 rw-p 00012000 08:0e 8296 /system/lib64/libcutils.so
7663890000-76638a6000 r-xp 00000000 08:0e 8411 /system/lib64/liblog.so
76638a6000-76638a7000 ---p 00000000 00:00 0
76638a7000-76638a8000 r--p 00016000 08:0e 8411 /system/lib64/liblog.so
76638a8000-76638a9000 rw-p 00017000 08:0e 8411 /system/lib64/liblog.so
76638c4000-76638fb000 r-xp 00000000 08:0e 8417 /system/lib64/libm.so
76638fb000-76638fc000 r--p 00036000 08:0e 8417 /system/lib64/libm.so
76638fc000-76638fd000 rw-p 00037000 08:0e 8417 /system/lib64/libm.so
7663916000-76639ec000 r-xp 00000000 08:0e 8277 /system/lib64/libc++.so
76639ec000-76639ed000 ---p 00000000 00:00 0
76639ed000-76639f5000 r--p 000d6000 08:0e 8277 /system/lib64/libc++.so
76639f5000-76639f6000 rw-p 000de000 08:0e 8277 /system/lib64/libc++.so
76639f6000-76639f9000 rw-p 00000000 00:00 0 [anon:.bss]
7663a00000-7663e00000 rw-p 00000000 00:00 0 [anon:libc_malloc]
7663e4e000-7663e50000 r-xp 00000000 08:0e 8450 /system/lib64/libnetd_client.so
7663e50000-7663e51000 ---p 00000000 00:00 0
7663e51000-7663e52000 r--p 00002000 08:0e 8450 /system/lib64/libnetd_client.so
7663e52000-7663e53000 rw-p 00003000 08:0e 8450 /system/lib64/libnetd_client.so
7663e8a000-7663e8c000 r-xp 00000000 08:0e 8305 /system/lib64/libdl.so
7663e8c000-7663e8d000 r--p 00001000 08:0e 8305 /system/lib64/libdl.so
7663e8d000-7663e8e000 rw-p 00002000 08:0e 8305 /system/lib64/libdl.so
7663e8e000-7663e8f000 rw-p 00000000 00:00 0 [anon:.bss]
7663ef5000-7663f18000 r-xp 00000000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7663f18000-7663f34000 ---p 00000000 00:00 0
7663f34000-7663f35000 r--p 0002f000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7663f35000-7663f36000 rw-p 00030000 103:02 1589350 /data/data/com.termux/files/usr/lib/libandroid-support.so
7663f51000-7664015000 r-xp 00000000 08:0e 8278 /system/lib64/libc.so
7664015000-7664016000 ---p 00000000 00:00 0
7664016000-766401c000 r--p 000c4000 08:0e 8278 /system/lib64/libc.so
766401c000-766401e000 rw-p 000ca000 08:0e 8278 /system/lib64/libc.so
766401e000-766401f000 rw-p 00000000 00:00 0 [anon:.bss]
766401f000-7664020000 r--p 00000000 00:00 0 [anon:.bss]
7664020000-7664027000 rw-p 00000000 00:00 0 [anon:.bss]
7664045000-7664090000 r-xp 00000000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
7664090000-76640a1000 ---p 00000000 00:00 0
76640a1000-76640a5000 r--p 0004c000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
76640a5000-76640a7000 rw-p 00050000 103:02 1591794 /data/data/com.termux/files/usr/lib/libncursesw.so.6.1
76640af000-76640df000 r--s 00000000 00:0f 12823 /dev/__properties__/u:object_r:default_prop:s0
76640df000-76640e6000 r-xp 00000000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
76640e6000-76640fe000 ---p 00000000 00:00 0
76640fe000-76640ff000 r--p 0000f000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
76640ff000-7664100000 rw-p 00010000 103:02 1589874 /data/data/com.termux/files/usr/lib/libhistory.so.7.0
7664119000-7664154000 r-xp 00000000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7664154000-7664167000 ---p 00000000 00:00 0
7664167000-7664169000 r--p 0003e000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7664169000-7664170000 rw-p 00040000 103:02 1589635 /data/data/com.termux/files/usr/lib/libreadline.so.7.0
7664176000-76641a6000 r--s 00000000 00:0f 12863 /dev/__properties__/properties_serial
76641a6000-76641a7000 rw-p 00000000 00:00 0 [anon:linker_alloc]
76641b7000-76641b8000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
76641c7000-76641c8000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
76641d7000-76641d8000 r--p 00000000 00:00 0 [anon:atexit handlers]
76641d8000-7664208000 r--s 00000000 00:0f 12857 /dev/__properties__/u:object_r:debug_prop:s0
7664208000-7664209000 ---p 00000000 00:00 0
7664209000-766420a000 rw-p 00000000 00:00 0
766420a000-766420b000 ---p 00000000 00:00 0
766420b000-766423b000 r--s 00000000 00:0f 12863 /dev/__properties__/properties_serial
766423b000-7664320000 r-xp 00000000 08:0e 226772 /system/bin/linker64
7664320000-7664321000 rw-p 00000000 00:00 0 [anon:arc4random data]
7664321000-7664325000 r--p 000e5000 08:0e 226772 /system/bin/linker64
7664325000-7664326000 rw-p 000e9000 08:0e 226772 /system/bin/linker64
7664326000-7664392000 rw-p 00000000 00:00 0
7664392000-7664393000 r--p 00000000 00:00 0
7664393000-7664399000 rw-p 00000000 00:00 0
7664399000-7664437000 r-xp 00000000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
7664437000-7664439000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7664439000-766443a000 r--p 00000000 00:00 0 [anon:linker_alloc]
766443a000-766443d000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
766443d000-766443e000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
766443e000-766443f000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
766443f000-7664440000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7664440000-7664441000 rw-p 00000000 00:00 0 [anon:linker_alloc]
7664441000-7664442000 rw-p 00000000 00:00 0 [anon:linker_alloc_lob]
7664442000-7664443000 r--p 00000000 00:00 0 [anon:linker_alloc]
7664443000-7664444000 rw-p 00000000 00:00 0 [anon:linker_alloc_vector]
7664444000-7664445000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7664445000-7664446000 r--p 00000000 00:00 0 [anon:linker_alloc]
7664446000-7664447000 rw-p 00000000 00:00 0 [anon:linker_alloc_small_objects]
7664447000-7664448000 r--p 00000000 00:00 0 [anon:atexit handlers]
7664448000-7664449000 ---p 00000000 00:00 0 [anon:thread signal stack guard page]
7664449000-766444d000 rw-p 00000000 00:00 0 [anon:thread signal stack]
766444d000-766444e000 rw-p 00000000 00:00 0 [anon:arc4random data]
766444e000-766444f000 ---p 00000000 00:00 0 [anon:bionic TLS guard page]
766444f000-7664452000 rw-p 00000000 00:00 0 [anon:bionic TLS]
7664452000-7664453000 ---p 00000000 00:00 0 [anon:bionic TLS guard page]
7664453000-7664454000 r--p 00000000 00:00 0 [vvar]
7664454000-7664455000 r-xp 00000000 00:00 0 [vdso]
7664455000-7664459000 r--p 000ac000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
7664459000-766445c000 rw-p 000b0000 103:02 1590315 /data/data/com.termux/files/usr/bin/bash
766445c000-7664465000 rw-p 00000000 00:00 0
7fd1c6a000-7fd1c8b000 rw-p 00000000 00:00 0 [stack]
I added the 'tsu' command on the bash.bashrc file so whenever I start the app I get a root shell immediately. Though, once the app is started the terminal just constantly resets. I know it's supposed to reset once and that does happen when I start the app and TYPE OUT the command but placing the command on bashrc just throws the terminal in this infinite loop.
I have now added tsu
as an apt package, so after executing apt update
to fetch the updated package list users can now install the script with
apt install tsu
and have it automatically update latest just as normal packages. You may want to update the README with this!
Ping me (perhaps by creating issue here and mention me, or by creating a pull request for updating https://github.com/termux/termux-packages/blob/master/packages/tsu/build.sh) whenever you have pushed something that you want to have packaged as an update of the apt package!
I'am using Supersu and i have problem with tsu and tsudo. Every time I use tsu or tsudo with any command I get the "permission denied" error. A few weeks ago everything was fine. How can I solve? Thanks and sorry for my english.
Currently, tsu
does nothing and silently exits when the phone is not rooted and there is no su
binary. It would be nice to display a similar message like the dummy su
shipped with termux-tools
(maybe by invoking exactly this).
Running anything using sudo shows:
No superuser binary detected.
Are you rooted?
Except su command is working properly.
Phone is rooted using SuperSU, which doesn't show up toast message when using sudo. Before update everything worked properly.
Description of this doesn't state that it needs ROOT REQUIRED
same if $ pkg search tsu
so it was put into the termux.com base repo vice in the root repo
su binary built with aosp/caf doesn't have arguments and is very dumb.
https://source.codeaurora.org/external/gigabyte/platform/system/extras/tree/su
when i type tsu or sudo cmd it show me error /system/bin/sh :env nor found
running tsu
give the output
"No superuser binary detected. \n"
"Are you rooted?
I can confirm that su is in /sbin/ folder
Using magisk 14.3
I have LineageOS 17.1 on Samsung Galaxy S4 LTE.
The latest update of tsu to version 8.5.1 broke my usual workflow.
Now, when I start tsu in Termux, I don't get my fancy command prompt ($PS1 is not set) but just one symbol "#". When I run "vim somefile.txt" inside of tsu, vim doesn't have any of the settings from my .vimrc file and .vim directory. Actually, all settings from my .bashrc are not used either, e.g. the variable $EDITOR is not set.
The variable $HOME inside of tsu is /data/data/com.termux/files/home/.suroot.
I don't know what more details to provide to make the description of the problem clearer. As far as I understand, tsu doesn't copy my environment and uses some default one.
I get the following output on invoking tsu:
/system/bin/sh: no closing quote
Any idea where to look? I reinstalled but no luck.
Throws out the error below and terminates:
➜ ~ tsu
CANNOT LINK EXECUTABLE "/sbin/su": cannot locate symbol "u_foldCase_58" referenced by "/system/lib64/libsqlite.so"...
CANNOT LINK EXECUTABLE "/sbin/su": cannot locate symbol "u_foldCase_58" referenced by "/system/lib64/libsqlite.so"...
[1] 16255 abort tsu
plz help me
i spent months to root termux but always i get this
tsu
CANNOT LINK EXECUTABLE DEPENDENCIES: library "libandroid-support.so" not found
imp.notes:
galaxy j3119
magisk 19.2.3
when i installed termux and update and upgrade for the first time , termux ask me to say yes or no for installing Bash 5.0.7-5 over 5.0.7.-1.. and i set yes. is that related?
another thing i didnt installed busybox but i installed busybox module of magisk only. is that related?
plz anyone help me ..
Having installed tsu, with tsu - A
I get /data/data/com.termux/files/usr/bin/tsu: 139: exec: :Permission denied
Any help, please?
Hello, I am really happy knowing about tsu, it worked though, however, on terminal, I can't seem to see words/strings i am typing into, but I am still getting response or results it's working, it's just I can't see anything I input on the terminal.
Help please!
I'm running LineageOS 14.1 on OnePlus3, tsu 8.2.0, termux 0.94. The device is rooted using the official LineageOS su package. tsu
fails with:
/sbin/su: Permission denied
Because on my device the whole /sbin/
directory is inaccessible for non-root users. On the other hand, the su
binary is present at /system/bin/su
and just calling su
successfully obtains root privileges.
/edit: the same issue occurs on LineageOS 16.0, Xiaomi Redmi 3s (land)
Build version 8.5.0
is refactored again..
Changes..:
sudo -u USER and tsu USER works now
sudo now includes -E option to preserve environment variables
/system and /sbin PATHS are now included by default in recent Termux install without LD_LIBRARY_PATH
I using tsu formerly but i reinstalled termux and now it gives me a sh error. My input and output;
$ sudo su
/system/bin/sh: env: not found
I using last version of termux and termux api.
CPH1909(OPPO a5s)
Anroid 8.1.0
What I should do? Really I dont understand that..
Shouldn't ANDROIDSYSTEM_PATHS
includes /sbin
as part of the system paths added with options -p
and -a
?
I have installed the Magisk module acc and its executable was added to the folder /sbin
. I was hoping to access acc
from the PATH.
Maybe there are some reasons for not adding /sbin
so this issue is more like a question/request.
Hi,
The termux-packages repo is now using two branches, one for android 5&6 and a master branch for android >= 7.
Could you please create a new branch in this repo for android-5 & 6 (named for example android-5
)?
We can then do android >=7 specific changes to the only the master branch and android 5&6 changes to the android-5 branch.
Termux for android >= 7 doesn't need LD_LIBRARY_PATH for example so that can be removed from the tsu script for android >= 7.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.