Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix 安装 dex2jar

查看 dex2jar 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dex2jar

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install dex2jar

MacPorts ports tree · java/dex2jar/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#dex2jar

nixpkgs package indexes · pkgs/by-name/de/dex2jar/package.nix · 来源: api.github.com

概览

软件包摘要

Tools to work with Android .dex and Java .class files

命令和别名

  • d2j-apk-sign
  • d2j-asm-verify
  • d2j-baksmali
  • d2j-class-version-switch
  • d2j-decrypt-string
  • d2j-dex-recompute-checksum
  • d2j-dex-weaver
  • d2j-dex2jar
  • d2j-dex2smali
  • d2j-jar-access
  • d2j-jar-weaver
  • d2j-jar2dex
  • d2j-jar2jasmin
  • d2j-jasmin2jar
  • d2j-smali
  • d2j-std-apk
  • d2j_invoke

历史

项目历史与用法

dex2jar is a command-line toolkit for working with Android Dalvik Executable files and Java class or jar files. Package users usually encounter it through d2j-dex2jar and the companion d2j-* utilities.

项目历史

The official README describes dex2jar as tools for Android .dex and Java .class files and notes the project move to GitHub. It preserves links to older SourceForge, Bitbucket, and Google Code project homes, which reflects the common migration path of early Android reverse-engineering tools into GitHub-era maintenance.

The current repository organizes the project as multiple tools: dex-reader/writer, d2j-dex2jar, smali/baksmali-compatible assembly and disassembly, and additional utilities such as string decryption helpers.

采用历史

dex2jar became a familiar package in Android reverse-engineering and security-analysis workflows because it bridged Android .dex bytecode and Java tooling. Even when users later inspect output with decompilers or bytecode tools, the package often provides the first conversion step from an APK or dex file to a jar-shaped artifact.

使用方式

The README's example workflow builds the distribution, unpacks dex-tools, and runs d2j-dex2jar.sh against an APK path. The output is a jar file named after the input, such as apk_to_decompile-dex2jar.jar.

为什么软件包爱好者会关心

dex2jar is notable as a package because it installs a family of narrowly named command-line tools rather than a single binary. That makes it a classic reverse-engineering formula: many small entry points, stable scripts, and a README that doubles as the packaging-facing interface.

时间线

  • Early project era: README records historical homes on Google Code, SourceForge, and Bitbucket.
  • GitHub era: README marks the project move to GitHub.
  • 2023-10-03: GitHub release v2.4 was published.

Related projects

  • smali/baksmali is directly related because dex2jar includes compatible assembly and disassembly tools.
  • Java bytecode and Android APK analysis tools are downstream or adjacent consumers of dex2jar output.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:decrypt

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
d2j-apk-signcli全局可执行文件
d2j-asm-verifycli全局可执行文件
d2j-baksmalicli全局可执行文件
d2j-class-version-switchcli全局可执行文件
d2j-decrypt-stringcli全局可执行文件
d2j-dex-recompute-checksumcli全局可执行文件
d2j-dex-weavercli全局可执行文件
d2j-dex2jarcli全局可执行文件
d2j-dex2smalicli全局可执行文件
d2j-jar-accesscli全局可执行文件
d2j-jar-weavercli全局可执行文件
d2j-jar2dexcli全局可执行文件
d2j-jar2jasmincli全局可执行文件
d2j-jasmin2jarcli全局可执行文件
d2j-smalicli全局可执行文件
d2j-std-apkcli全局可执行文件
d2j_invokecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.4
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/pxb1988/dex2jar

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/pxb1988/dex2jarnone 置信度

安装元数据

软件包元数据

软件包键brew:dex2jar
版本2.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/dex2jar
主页https://github.com/pxb1988/dex2jar
仓库https://github.com/pxb1988/dex2jar
上游文档https://github.com/pxb1988/dex2jar#readme
许可证Apache-2.0
源码归档https://github.com/pxb1988/dex2jar/releases/download/v2.4/dex-tools-v2.4.zip
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedex2jar
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

dex2jar

nix profile install nixpkgs#dex2jar
  • normalized package name match
  • 匹配方式:Dex2jar
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/de/dex2jar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

dex2jar

sudo port install dex2jar
  • normalized package name match
  • 匹配方式:Dex2jar
MacPorts ports tree · api.github.com · MacPorts ports tree: java/dex2jar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

dex2jar

choco install dex2jar
  • normalized package name match
  • 匹配方式:Dex2jar
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: dex2jar from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.1916','tektoncd-cli'

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment