Rooting your phone using Termux is possible, however, it is not recommended as it can cause serious damage to your device. Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. It has an extensive range of features, including access to a Linux command line, multiple windows, and the ability to run and create shell scripts.
Although some people have managed to root their phones using Termux, it’s not an ideal method and can be dangerous. Not only does it require a lot of advanced knowledge, but it can also void your device’s warranty. It’s also important to remember that rooting your phone will give you access to the phone’s root file system – something that you should not do unless you’re a highly experienced user.
If you are looking to root your phone, it’s best to use a more reliable method like a dedicated rooting tool. Not only is this method safer, but it’s also easier and more reliable. A dedicated rooting tool will provide you with all the instructions and resources you need to safely and effectively root your phone.