Skip to content

NodeJS APK unpacker (gets the assets and source codes)

Notifications You must be signed in to change notification settings

puntorigen/apk_unpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APK Unpack

INTRO

This package and command-line helps you unpack any APK (get its assets and java sources) and decrypt its manifest. To install, execute the following on your terminal:

npm i -g puntorigen/apk_unpack

And use it as follows:

apk_unpack apkfile.apk outputdir

As a class, it contains 4 public methods:

init (config).

Initializes the component. Accepts an object with keys:
apk (apkfile to open),
dir (outputdir),
java (true if you want the decrypted classes.jar)

extract (onReadyCB).

This does the extraction of assets and sources into the given outputdir.

decompile (onReadyCB).

This extracts and decrypts the classes.dex from the given APK, also recovers .java files.

info (callback(err,data)).

Retrieves decrypted manifest information about the extracted apkfile from method one.

UPDATES

version 1.2.2:

  • updated apktool and JADX to latest versions.
  • please consider npm java requires python 2.7 to be installed.

version 1.2.1:

  • avoided error that hanged the jvm thread sometimes.

version 1.1.9:

  • now uses JADX instead of dex2jar and jd-cli. Faster and works better for some apks.
  • reduced logging output of java classes.

version 1.1.7-8:

  • improved classpath importing

version 1.1.4-6:

  • added ability to decompile classes into .java files

version 1.1.3:

  • added ability to extract classes.dex and decode its contents using dex2jar

version 1.1.1:

  • Fixed java class location for using command-line as bin

version 1.0.3-9:

  • Prettyfied readme.md file
  • Add readme.md file

About

NodeJS APK unpacker (gets the assets and source codes)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published