Skip to content

[A] Decompile apk and get java or smali source

Notifications You must be signed in to change notification settings

arkty/apk2java-linux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

apk2java-linux

This project is a porting for Linux/*nix of https://github.com/rajivvishwa/apk2java that works only on Windows

Introduction

This script decompiles an apk to its corresponding java sources. Security code review can be done on theses generated applicaion source files so as to identify any potential vulnerabilities present. This is not made to encourage piracy/plagiarism.

*** This script just automates the sequence in which various tools are initiated and does not handle any error events. You will have to go through the cmd verbose to figure out the problem. ***

Usage

Usage: apk2java.py action ApkFileName [options]

action can only be 'b' (for build) and 'd' (for decompile)
Options:
  -h, --help   show this help message and exit
  --java       select java source format [DEFAULT]
  --smali      select smali source format
  --jasmin     select jasmin source format
  --no-source  no source code generation

Requirements

JRE 1.7 (Java Runtime Environment) Python 3

Tools used

Dex2jar : https://code.google.com/p/dex2jar/

Procyon : https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler

apk-tool : https://code.google.com/p/android-apktool/

baksmali : https://code.google.com/p/smali/

Note: These tools and a smaple apk is downloaded by the script. There is not need to download them manually

About

[A] Decompile apk and get java or smali source

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%