Downloads:

2,627

Downloads of v 0.7.1:

196

Last Update:

18 May 2018

Package Maintainer(s):

Software Author(s):

  • Skylot

Tags:

java decompiler

JADX (Portable)

This is not the latest version of JADX (Portable) available.

0.7.1 | Updated: 18 May 2018

Downloads:

2,627

Downloads of v 0.7.1:

196

Maintainer(s):

Software Author(s):

  • Skylot

JADX (Portable) 0.7.1

This is not the latest version of JADX (Portable) available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install JADX (Portable), run the following command from the command line or from PowerShell:

>

To upgrade JADX (Portable), run the following command from the command line or from PowerShell:

>

To uninstall JADX (Portable), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade jadx -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade jadx -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure jadx installed
  win_chocolatey:
    name: jadx
    state: present
    version: 0.7.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'jadx' do
  action    :install
  version  '0.7.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: jadx,
    Version: 0.7.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller jadx
{
   Name     = 'jadx'
   Ensure   = 'Present'
   Version  = '0.7.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'jadx':
  provider => 'chocolatey',
  ensure   => '0.7.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install jadx version="0.7.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator gep13 on 23 May 2018.

Description

JADX is command line and GUI tools to produce Java source code from Android Dex and Apk files.

This is a portable package.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# polyfill
if (! (Get-Command -Name New-TemporaryFile -ErrorAction SilentlyContinue))
{
    function New-TemporaryFile
    {
        foreach ($i in 1..10)
        {
            $name = [Guid]::NewGuid()
            $tempPath = Join-Path -Path $env:TEMP -ChildPath $name
            if (! (Test-Path -Path $tempPath -ErrorAction SilentlyContinue))
            {
                return $tempPath
            }
        }
        throw 'cannot create temporary path'
    }
}

# check Java 64-bit
$tempFile = New-TemporaryFile
cmd /c "java -version 2> $tempFile"
if (! (Select-String -Path $tempFile -Pattern 64-Bit))
{
    Remove-Item -Path $tempFile
    throw 'require 64-bit Java'
}
Remove-Item -Path $tempFile

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = $toolsDir
  url           = "https://github.com/skylot/jadx/releases/download/v$env:ChocolateyPackageVersion/jadx-$env:ChocolateyPackageVersion.zip"
  checksum      = '1f0431273ad9e56a40fb31ad6c355ccb1da5be74887d8d9fb17995bd7cb06285'
  checksumType  = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs

$binPath = Join-Path -Path $toolsDir -ChildPath bin
$jadx = Join-Path -Path $binPath -ChildPath jadx.bat
$jadxGui = Join-Path -Path $binPath -ChildPath jadx-gui.bat
Install-BinFile -Name jadx -Path $jadx
Install-BinFile -Name jadx-gui -Path $jadxGui

if (Test-ProcessAdminRights)
{
    $specialFolder = [Environment+SpecialFolder]::CommonPrograms
}
else
{
    $specialFolder = [Environment+SpecialFolder]::Programs
}
$linkPath = [Environment]::GetFolderPath($specialFolder) | Join-Path -ChildPath 'JADX GUI.lnk'
Install-ChocolateyShortcut -ShortcutFilePath $linkPath -TargetPath $jadxGui
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors

Uninstall-BinFile -Name jadx
Uninstall-BinFile -Name jadx-gui

if (Test-ProcessAdminRights)
{
    $specialFolder = [Environment+SpecialFolder]::CommonPrograms
}
else
{
    $specialFolder = [Environment+SpecialFolder]::Programs
}
[Environment]::GetFolderPath($specialFolder) | Join-Path -ChildPath 'JADX GUI.lnk' | Remove-Item

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
JADX (Portable) 1.1.0 798 Sunday, December 8, 2019 Approved
JADX (Portable) 1.0.0.20190724 359 Wednesday, July 24, 2019 Approved
JADX (Portable) 1.0.0 213 Friday, June 21, 2019 Approved
JADX (Portable) 0.9.0 256 Wednesday, February 13, 2019 Approved
JADX (Portable) 0.8.0 225 Sunday, September 23, 2018 Approved
JADX (Portable) 0.7.1.20180627 196 Thursday, June 28, 2018 Approved
JADX (Portable) 0.7.1 196 Friday, May 18, 2018 Approved

Discussion for the JADX (Portable) Package

Ground Rules:

  • This discussion is only about JADX (Portable) and the JADX (Portable) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or JADX (Portable), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus