Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using apktool to decompile apk file

Tags:

android

I tried extracting apk file using apktool. I followed steps mentioned below. Is there a way to get the source code from an APK file?

but i am not able to get it completely.I am not sure about where to put the apktool and how to decompile apk file. i got following error while running apktool command C:\Windows\System32>apktool.bat Unable to access jarfile C:\Windows\System32\apktool.jar

Please help me to sort this out.

Thanks in advance

like image 510
user1589345 Avatar asked Dec 29 '12 19:12

user1589345


People also ask

How do I decompile with Apktool?

Type the following command. For decompiling use the command "d". The "d" stands for decompile. After the app is correctly decompiled, a new folder will be created in the same folder where you placed your app.

What is Apktool used for?

A tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step.

Is it possible to decompile APK?

Decompilation of APK file is possible. But it might be difficult to understand the code if it is obfuscated.


2 Answers

I faced the same problem. I my case i discovered that the jar file is present in a separate package and i had to download apktool1.5.2.tar.bz2 in addition to apktool-install-windows-r05-ibot.tar.bz2 . Then i extracted the jar file and placed it in the same directory as apktool. Hope it helps.

like image 103
Sahil Singh Avatar answered Oct 14 '22 08:10

Sahil Singh


I also had this problem, then i noticed this in apktool.After done that,apktool gone well.

  1. Rename downloaded jar to apktool.jar
like image 28
Bryan Avatar answered Oct 14 '22 08:10

Bryan