Skip to content

Instantly share code, notes, and snippets.

@GabrielMMelo
Created January 22, 2019 12:33
Show Gist options
  • Select an option

  • Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.

Select an option

Save GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c to your computer and use it in GitHub Desktop.
Install sudo in Termux (Android)
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
@Legoscratch
Copy link

Does anybody know if this has been patched in Android 16 as I've tried basically everything in this thread but it says:

Termux does not supply tools for rooting

and I don't really know much about termux to be honest but has anyone found any new solutions?

Any help would be appreciated, (also I got it to work on my old phone but it was Android 14, which is why I think it might be an issue with Android 16)

@ilyaigpetrov
Copy link

@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.

@Legoscratch
Copy link

@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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment