How to let Termux get root privileges on non-rooted Android devices

On a rooted Android phone, we can obtain administrative privileges, and can adjust and edit applications at the system privilege level, such as SuperSu, Kingroot, Magisk, etc. If you want to root the device, it is recommended to use the magisk method, after all, it will not easily modify system files. And if you don't want to root the device, you can use FakeRoot to install the sudo command. How do we get termux to get root permissions or install sudo command line without rooting Android devices? In fact, we can simply download and install the FakeRoot software package.

Step 1: Install Termux and give permission to access local files

After installing Termux, we need to allow Termux to have access to the local SD memory card, which can be entered in the Termux terminal:

termux-setup-storage

When a window pops up asking whether to allow access to local storage, we need to click Agree.

Step 2: Update the upgrade package

There is no need to explain this, directly to the Termux terminal:

apt update && apt upgrade

Step 3: Install the Git software

pkg install git -y

Step 4: Install Python2

The source code of FakeRoot is python2, so we need to install Python2.

pkg install python2 -y

Step 5: Download and install FakeRoot Repo

git clone https://github.com/MaulanaRyM/FakeRoot
cd FakeRoot
python2 root.py

After running these commands, FakeRoot asks to choose between FakeRoot and Proot. We only need to select the FakeRoot mode and press Enter to confirm, so that it will automatically perform root processing. This root process will take some time, please be patient.

Through these simple steps, Termux has obtained root privileges on non-rooted Android devices.

Guess you like

Origin blog.csdn.net/weixin_37885187/article/details/129159145