Coder Social home page Coder Social logo

5l1v3r1 / apk-decompiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertohuertasm/apk-decompiler

0.0 1.0 0.0 22.32 MB

Small Rust utility to decompile Android apks

Home Page: https://robertohuertas.com/2019/02/03/rust_cli_apk_decompiler/

License: MIT License

Rust 24.22% Shell 45.96% Batchfile 29.82%

apk-decompiler's Introduction

apk-decompiler

Build Status

Small utility to decompile your apks so you don't have to worry using lots of different tools.

How to install it

At the moment, it only works in Mac and Linux. Check out the releases section and download the specific file for your system

How to get your apk

First of all you need a rooted phone so you can access it via adb shell.

Once you're there, if you want to list the packages installed in your device:

pm list packages
# or if you're looking for something specific
pm list packages -f instagram
# or
pm list packages | awk -F':' '{print $2}' | grep instagram

Once you know which is the name of the package you want to access:

pm path <name-of-the-package>
# e.g com.company.app
# this may output something similar to this:
# /data/app/com.company.app/BBhSG-3w3_vAghNyy2LsKg==/base.apk

In order to extract a package we'll use adb again:

adb pull <path-to-the-package>

This will extract the package into your current folder, normally with the following name: base.apk.

How to use it

Just execute:

./apk-decompiler <name-of-your-apk>

You'll get a new folder called output which contains the following folders:

  1. decompiled: This is the output of running dex2jar.
  2. extracted: This folder contains the output of unzipping the apk.
  3. xml: This is basically the output of running apktool.
  4. package-name-error.zip: Optional file that you will get in case there were some errors during the decompilation process.

Known issues

If you have folders with empty spaces this may be a problem for jd-cli which is one of the dependencies of this project. So... just try to avoid them ;P

apk-decompiler's People

Contributors

robertohuertasm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.