-
Star
(218)
You must be signed in to star a gist -
Fork
(39)
You must be signed in to fork a gist
-
-
Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.
| apt install git | |
| git clone https://gitlab.com/st42/termux-sudo | |
| cd termux-sudo | |
| cat sudo > /data/data/com.termux/files/usr/bin/sudo | |
| chmod 700 /data/data/com.termux/files/usr/bin/sudo |
@ilyaigpetrov Sorry for getting back so late, but thanks so much! This is great and works excellently on my Pixel, even has the ability to run GUI applications!!
now this way is not work in Android15,my phone is install magisk-modules ,root and unlock bl,Android14/15, end if you can use "su" command,in temrmux you just need
cat > $PREFIX/bin/sudo << 'EOF' #!/system/bin/sh su -c "$@" EOF
chmod 755 $PREFIX/bin/sudo
and test
sudo id
.../ $ sudo id uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0
pip install su
;-)
Can somebody help with this?
~ $ sudo su
No superuser binary detected.
Are you rooted?
~ $
Can somebody help with this? ~ $ sudo su No superuser binary detected. Are you rooted? ~ $
Do you have rooted phone or no rooted
Su means super user so u need to root to use sudo su if ur using Android termux
@Legoscratch, maybe you can use https://wiki.termux.com/wiki/PRoot or the official Virtual Terminal app shipped by Google with the recent versions of Android 16 since 2025.