Magisk su was moved ? - No superuser binary detected
Android15, rooted recently upgraded to android 20250401 security patch and Magisk 28103/28104
~ which su
/data/data/com.termux/files/usr/bin/su
~ su
:/data/data/com.termux/files/home # which su
/debug_ramdisk/su
...# find / -name su | grep "/su"
...
/product/bin/su
/debug_ramdisk/su
/data_mirror/data_ce/null/0/com.termux/.......
/data/data/com.termux/...
/data/user/0/com.termux/...
I had to tweak $PREFIX/usr/bin/tsu script, adding the 2 additional places were I found the real su:
SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/debug_ramdisk/su" "/product/bin/su")
Then it worked
[EDIT]: to retrieve all previous behaviour I had to revoke and/or grand back files (pictures, Music...) access permissions from within Android Settings / Applications / Permissions for Termux, as stated all in bottom in https://wiki.termux.com/wiki/Termux-setup-storage
I had to tweak $PREFIX/usr/bin/tsu script, adding the 2 additional places were I found the real su:
SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/debug_ramdisk/su" "/product/bin/su")Then it worked
Do you have a modified tsu file that works on magisk 29? Please upload
No I did not yet tried magisk 29 so I don't even know if they changed the binary location/partitions. Maybe just using my way of searching su binary then tweak the tsu script accordingly will hopefully work for you.
I'm using Magisk v29.0
I can't use tsu because it can't find su binary. After I modified the tsu script like this:
SU_BINARY_SEARCH=("/debug_ramsiak/su" "/system/product/bin/su")
I can use tsu now, but there's still a little issue.
~ $ tsu
bash: cannot set terminal process group (13254): Inappropriate ioctl for device
bash: no job control in this shell
.../files/home # id
uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0
.../files/home #
I'm using Magisk v29.0
I can't use tsu because it can't find su binary. After I modified the tsu script like this:
SU_BINARY_SEARCH=("/debug_ramsiak/su" "/system/product/bin/su")
I can use tsu now, but there's still a little issue.
~ $ tsu bash: cannot set terminal process group (13254): Inappropriate ioctl for device bash: no job control in this shell .../files/home # id uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0 .../files/home #
I have same issue, remove tsu and install sudo package The new version of sudo works fine The creator of tsu hasn't updated it in five years, so I doubt they'll update it.
I have same issue, remove tsu and install sudo package The new version of sudo works fine The creator of tsu hasn't updated it in five years, so I doubt they'll update it.
sudo package works, but It doesn't contain an interactive shell
I have same issue, remove tsu and install sudo package The new version of sudo works fine The creator of tsu hasn't updated it in five years, so I doubt they'll update it.
sudopackage works, but It doesn't contain an interactive shell
I don't understand what you mean, but sudo package works fine even with zsh sudo -S zsh
I forgot that sudo bash can launch an interactive shell like tsu.
bash: cannot set terminal process group (13254): Inappropriate ioctl for device bash: no job control in this shell .../files/home # id uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0 .../files/home #
Go to line 325 and add
su_args+=("-i")
right above
su_args+=("-c")
See: /debug_ramdisk/su --help [...] -i, --interactive Force pseudo-terminal allocation when using -c
I had to tweak $PREFIX/usr/bin/tsu script, adding the 2 additional places were I found the real su:
SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/debug_ramdisk/su" "/product/bin/su")
Great. This works with magisk 29 and android 14 for me.
I'm using Magisk v29.0
I can't use tsu because it can't find su binary. After I modified the tsu script like this:
SU_BINARY_SEARCH=("/debug_ramsiak/su" "/system/product/bin/su") I can use tsu now, but there's still a little issue.
~ $ tsu bash: cannot set terminal process group (13254): Inappropriate ioctl for device
The same!! Android 14 and Magisk 29.
$ tsu bash: cannot set terminal process group (18009): Inappropriate ioctl for device bash: no job control in this shell .../files/home # .../files/home # whoami root .../files/home # mc works
But the rest is working now.
You should read my comment above where I've written how to fix this.