FrameworkTop Tools

How to Install & Use ApkTool In Termux | Termux ApkTool

how to install and Use apktool in termux and how to decompile and recompile apk file.

Do you want to build modded apps in Termux? If so, then in this post I will show you how you can install ApkTool in Termux to build modded apps and give you commands to compile and decompile apps Easily. You can also use this tool to perform reverse engineering on applications💻.


What is ApkTool in Termux?

You’ve probably seen Modded apps (like the modded version of Subways surfer) where you get 999999 coins from the start. These games are made by people who make game mods to make money (it’s technically not legal). To make these mods people use Apk Decompiler Tools which give them access to individual parts of the app files and then make changes to the code (such as changing the seed money/points from 0 to 9999999) and then recompile the files into an APK, which create and Modded App.

To decompile apk you get different apps for different OS but if you want to decompile apps in termux then you need to install ApkTool in termux. Apk Tool allows you to compile apps in termux. You can also use nano to edit files in termux and you can also decompile in termux using ApkTool.

This tool was created by Lexiie and you can check out his project @ApkTool-Termux. It is a good tool for all people who are interested in creating moderated apps using Apktool in Termux. Since creating game mods is a vast topic, I will only show you the basics, but if you are really interested, you can always learn from the Internet.


Requirements :

  • Termux App
  • Minimum Space Required = 200 MB 
  • Internet
  • Java



  • [+] Latest Apktool
  • [+] Java
  • [+] Error Fix
  • [+] Fully Automatic
  • [+] Easy for Beginners


Step – Download the Termux app

  • First Uninstall Old Termux and Install the New Upgrade Version
  • First, open the Website / App on your Android phone.
  • Search for the Termux app.
  • And install it on your Android phone by clicking the Download button
  • And it will download to your phone.

Termux 0.118 Download



Install ApkTool In Termux

Step 1:- Before installing any tool we first upgrade all our pre-installed packages in termux so that when we use Apk-Tool we will not face any problems. We will use the below command to upgrade packages in Termux. To avoid errors while installing the BeEF tool.

 apt update -y && apt upgrade -y 


Step 2:- Since this project is hosted on Github, we need to install Git in termux to download the project from the Github repository. Just put the command below and the Git package will be installed immediately.

 apt install git -y 



Step 3:- Now all dependencies are installed in your termux and we can now install the BeEF Browser Exploitation Framework tool in the termux using the command given below. For the file size of this tool, just copy and paste the command below and the tool will load in 10 seconds.

 git clone


Step 4:- Now we need to change the Directory to the ApkTool folder, we can use the Cd command for this. If you don’t know about the cd command, it is highly recommended. Just type the below command in Termux and press Enter.

 cd TermuxTools-Installation/Apktool-Termux




Install Version 2.3.4

Step 1:- Now here if you type ls you will see a .deb file. This is a Debian file and you just need to install it in your termux. To do this, just put the below command into termux.

 dpkg -i apktool_2.3.4_all.deb

Step 2:- Everything is done and you just need to check whether Termux-Apktool is perfectly installed in your Termux or not. Just type apktool in termux and if it shows output like the below image then it means Termux Apk-Tool is installed in your system.




Install Version 2.7.0

Step-1:- Type the command below to Set up and Install this tool apktool tool


Step 2:- Now apktool tool Installation Successfully Run this tool





Use ApkTool in Termux

Apk Tool is really an Advance tool and it offers a lot of features but in this post, I will show you the basics like compiling and decompiling apk using Termux.

 apktool -help


~ $ apktool
Apktool v2.3.4 - a tool for reengineering Android apk files
with smali v2.2.2 and baksmali v2.2.2
Copyright 2014 Ryszard Wiśniewski 

usage: apktool
 -advance,--advanced   prints advance information.
 -version,--version    prints the version then exits

usage: apktool if|install-framework [options] (framework.apk)
 -p,--frame-path (dir)   Stores framework files into (dir).
 -t,--tag (tag)          Tag frameworks using (tag).
usage: apktool d[ecode] [options] (file_apk)
 -f,--force              Force delete destination directory.
 -o,--output (dir)     The name of folder that gets written. Default is apk.out
 -p,--frame-path (dir)   Uses framework files located in (dir).
 -r,--no-res             Do not decode resources.
 -s,--no-src             Do not decode sources.
 -t,--frame-tag (tag)    Uses framework files tagged by (tag).
usage: apktool b[uild] [options] (app_path)
 -f,--force-all          Skip changes detection and build all files.
 -o,--output (dir)       The name of apk that gets written. Default is dist/name.apk
 -p,--frame-path (dir)   Uses framework files located in (dir).


Decompile apk with Termux :

First, you need the app in termux to decompile it and you can always share apk files from internal storage to termux to decompile or you can even decompile them in your internet storage by changing the directory. And you can also use Termux-Browser to download apk directly in termux.

 apktool d Yourappname.apk

EX: apktool d whatsapp.apk

after doing this command you will see the process on the screen and after it completes you will see a folder named your apk in this folder you will get all the files of your apk file. Just edit any file in this folder.


Recompile Apk with Termux :

Now after finishing editing the files in the folder created by the apk tool. You will need to recompile this folder in the apk file. we will use the command for this

 apktool b name-of-the-folder --output new-name-of-apk.apk

EX: apktool b whatsapp –output whatsapp.apk

It may take some time to recompile the apk file.


Sign the apk in Termux :

Now your apk file is modified but you won’t be able to install it on any phone. In order to install it, you need to sign the apk file using the apk signer program in termux. Since Signer doesn’t work in termux, I wrote a separate post on how you can sign APk in termux.



Apk Tool is one of the most powerful tools if you know how to use it, personally, I think it is easy to decompile apk but very difficult to change values ​​and modify apk. You should also know that decompiling and tampering with someone’s app is illegal. I know this post is a bit boring, so here’s a link to my Termux-Games script. If you have any questions about this post, feel free to ask me in the comments. Thanks for reading Guys, stay inspired, and as always stay ethical.

we show how to install apktool in termux without error we are not promoting any illegal activity all articles and tools used in this article are for educational purposes and the server used to do any type of activity for the article is ours so not to harm anyone. just follow all the steps carefully and if there is any error mail me here you will get a message when you create a free account here


Hello, I'm SUMAN from India. Learn about the termux app from Beginner to pro, At this Site, you will get all the working termux tools, I am also posting the best Termux GitHub tools.

Related Articles

Notify of
Newest Most Voted
Inline Feedbacks
View all comments

Thanks bro


Nothing todo noe

Back to top button
Would love your thoughts, please comment.x

Adblock Detected


Please disable your ad blocker! This site is supported by the advertisement.

Please disable your ad blocker to support us !!