@modmyiqos/jadx-node

A wrapper around Jadx for decompiling Java dex files

Usage no npm install needed!

<script type="module">
  import modmyiqosJadxNode from 'https://cdn.skypack.dev/@modmyiqos/jadx-node';
</script>

README

jadx-node

A light wrapper around jadx, a java decompiler.

Why?

  • You don't need to have jadx installed locally. A copy is bundled with this package.
  • You can use this library to invoke jadx without having to spawn the process yourself.
  • Jadx memory usage is capped at 2GB, to minimise crashing from out-of-memory errors.
  • Jadx is configured to skip resources, show code that it can't decompile and use up to 6 threads.

CLI Usage

npm install --global @modmyiqos/jadx-node
yarn global add @modmyiqos/jadx-node
jadx-node --input ./classes.dex --output ./decompiledResult/

JavaScript Usage

npm install --save @modmyiqos/jadx-node
yarn add @modmyiqos/jadx-node
import jadx from '@modmyiqos/jadx-node'

const source ='./classes.dex'
const destination = './decompiledResult/'

await jadx(source, destination)

LICENSE

Copyright 2019 Mish Guru Ltd

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.