How to get root access in Termux without root – FakeRoot

get root access in termux without root

Are you looking for a step-by-step guide to gaining root access in termux without rooting your device? You’ve come to the right place.


The Android operating system is a highly popular linux-based operating system, offering both high levels of security and a highly intuitive interface. Android OS comes with an embedded security module that blocks third-party applications and vendors from editing core system files.

Android devices come with preinstalled games and bloatware that cannot be removed. To uninstall these applications, you need to root your Android device. A rooted device allows you to remove unwanted apps, change boot animation, set CPU overclock and underclock, and manually update the system.

There may be instances where you do not want to install sudo on your device due to the fact that it voids its warranty. Recently, I had a problem installing a package that required rooted phones in my termux terminal. It had been successfully bypassed without a problem by installing the FakeRoot module.

In this tutorial, I’m going to show you how you can access root (sudo) through Termux without being a root user.

How to get root access in Termux without root

To enable root access or install sudo in termux without actually rooting the device, you will need to download and install the FakeRoot package from the repository server, then configure it appropriately.

Let’s see how.

Step 1: Install Termux terminal

The termux terminal has already been installed on your device, I assume. There is just one thing to remember: you need to ensure that termux has access to your local SD card storage. Run the below command.


After you run the above command, a pop-up box will appear asking you for permission to access the local storage. Tap Allow.

Step 2: Update and Upgrade the packages

Now you need to update the packages and other binaries to the latest version. Run the below command.

apt update && apt upgrade

Step 3: Install Git package

By using the Git module, you can download sources from public servers. Run the below command.

pkg install git -y

Step 4: Install Python2

The two versions of Python that are available for Termux are Python 2 and Python 3. The FakeRoot module works on python2 source codes. So you need to install Python2 binaries. Run the below command.

pkg install python2 -y

Step 5: Download FakeRoot Repo

Now you can proceed further to download and install the FakeRoot project from the git repository. Run the below command.

git clone

Step 6: Run the FakeRoot module

Now you can run the FakeRoot module in the termux terminal. To execute the Fake root, run the below commands one by one.


cd FakeRoot



Once you run all of the above commands. FakeRoot provides you two options: FakeRoot, Proot. Here, you need to select the first option i.e. FakeRoot and then hit enter. The process of rooting your termux terminal will begin automatically. This will take a little while, so please be patient.

That’s all. You have now successfully gained root access in Termux without rooting your Android device.


With rooting your Android phone, you gain access to administrator privileges, which means you can edit and tweak binaries at the system level. SuperSu, Kingroot, and Magisk are some of the ways to install sudo on an Android phone. It is recommended to root a device with the magisk module because it does not modify the system files. Whenever you don’t want your device rooted, you can install sudo using FakeRoot. Checkout some termux tutorials here.

Thanks. I am hopeful that the above step by step guide has helped you to enable root access without actually rooting your device. Feel free to let us know what you think in the comment section below.

1 thought:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.