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:
Initializes the component. Accepts an object with keys:
apk (apkfile to open),
dir (outputdir),
java (true if you want the decrypted classes.jar)
This does the extraction of assets and sources into the given outputdir.
This extracts and decrypts the classes.dex from the given APK, also recovers .java files.
Retrieves decrypted manifest information about the extracted apkfile from method one.
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