Technical Paper: Universal Android Rooting via Magisk Without a Personal Computer 1. Abstract
Termux (from F-Droid or their website) or Terminal Emulator.
You get a temporary root shell. However, this is non-persistent . As soon as you reboot, root is gone. To make it permanent, you must manually copy su to /system/xbin , which requires writing to system (hard on modern phones).
Rooting an Android device gives you administrative "Superuser" access, allowing you to delete bloatware, install powerful modules, and customise your system. While traditionally done with a computer, it is now possible to by using a second Android phone or a custom recovery. ⚠️ Essential Warnings Before You Start