📖 বাংলায় পড়তে এখানে ক্লিক করুন (Read in Bangla)
A complete and automated solution to fix "No superuser binary detected" or "Root permission denied" errors in Termux for Android.
Keywords: termux root fix, termux sudo error, tsu patcher, kernelsu termux fix, magisk termux root, termux su binary not found, android terminal root, msrofficial
Sometimes, even if your Android device is rooted (especially with modern solutions like KernelSU or the latest Magisk), Termux's default tsu package fails to locate the root binary (su). This typically occurs because the default script does not search inside /debug_ramdisk/su or other custom mounting paths used by systemless root methods.
This repository provides an automated script to scan all possible root matrices, purge conflicting binaries, and inject a working sudo environment.
This is the fastest and most reliable method. It downloads the fix.sh script, executes a root matrix scan, installs necessary dependencies, and drops you into a root shell.
Run the following command in your Termux terminal:
curl -sO https://raw.githubusercontent.com/msrofficial/fix-termux-root/main/fix.sh && chmod +x fix.sh && ./fix.shIf the automated script fails or you prefer to strictly patch the existing tsu package without removing it, run this single command to backup and patch the file instantly:
pkg update && pkg install tsu -y
cp $PREFIX/bin/tsu $PREFIX/bin/tsu.bak && sed -i 's|^SU_BINARY_SEARCH=.*|SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/debug_ramdisk/su" "/sbin/su")|' $PREFIX/bin/tsu && echo "tsu patched successfully"Verification: Type tsu or sudo su. If the # prompt appears, you are successfully rooted.
If you want full control over the process, you can manually edit the configuration file using a text editor.
pkg install tsu nano file root-repo sudo -ynano $PREFIX/bin/tsuScroll down until you find the line starting with SU_BINARY_SEARCH= and add "/debug_ramdisk/su" inside the brackets. The modified line should look exactly like this:
SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/debug_ramdisk/su")
- Press
CTRL + X - Press
Y(for Yes) - Press
Enter
Developed and maintained by MSR Sakibur. Feel free to connect for updates or support:
- GitHub: msrofficial
- Facebook: sakibur.msr
- Telegram: @msr0official
- Telegram Channel: @msrpatch