fix: use maintained dex2jar fork (#12)
Co-authored-by: txhno <198242577+txhno@users.noreply.github.com>
This commit is contained in:
parent
c25dfd78d2
commit
5a810d94b3
|
|
@ -18,7 +18,7 @@ A Claude Code skill that decompiles Android APK/XAPK/JAR/AAR files and **extract
|
||||||
|
|
||||||
**Optional (recommended):**
|
**Optional (recommended):**
|
||||||
- [Vineflower](https://github.com/Vineflower/vineflower) or [Fernflower](https://github.com/JetBrains/fernflower) — better output on complex Java code
|
- [Vineflower](https://github.com/Vineflower/vineflower) or [Fernflower](https://github.com/JetBrains/fernflower) — better output on complex Java code
|
||||||
- [dex2jar](https://github.com/pxb1988/dex2jar) — needed to use Fernflower on APK/DEX files
|
- [dex2jar](https://github.com/ThexXTURBOXx/dex2jar) — needed to use Fernflower on APK/DEX files
|
||||||
|
|
||||||
See `plugins/android-reverse-engineering/skills/android-reverse-engineering/references/setup-guide.md` for detailed installation instructions.
|
See `plugins/android-reverse-engineering/skills/android-reverse-engineering/references/setup-guide.md` for detailed installation instructions.
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ android-reverse-engineering-skill/
|
||||||
- [jadx — Dex to Java decompiler](https://github.com/skylot/jadx)
|
- [jadx — Dex to Java decompiler](https://github.com/skylot/jadx)
|
||||||
- [Fernflower — JetBrains analytical decompiler](https://github.com/JetBrains/fernflower)
|
- [Fernflower — JetBrains analytical decompiler](https://github.com/JetBrains/fernflower)
|
||||||
- [Vineflower — Fernflower community fork](https://github.com/Vineflower/vineflower)
|
- [Vineflower — Fernflower community fork](https://github.com/Vineflower/vineflower)
|
||||||
- [dex2jar — DEX to JAR converter](https://github.com/pxb1988/dex2jar)
|
- [dex2jar — DEX to JAR converter](https://github.com/ThexXTURBOXx/dex2jar)
|
||||||
- [apktool — Android resource decoder](https://apktool.org/)
|
- [apktool — Android resource decoder](https://apktool.org/)
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ Converts Android DEX bytecode to standard Java JAR files.
|
||||||
|
|
||||||
### GitHub Releases
|
### GitHub Releases
|
||||||
|
|
||||||
1. Go to <https://github.com/pxb1988/dex2jar/releases/latest>
|
1. Go to <https://github.com/ThexXTURBOXx/dex2jar/releases/latest>
|
||||||
2. Download and extract:
|
2. Download and extract:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -332,24 +332,24 @@ install_dex2jar() {
|
||||||
# Download from GitHub (no sudo needed)
|
# Download from GitHub (no sudo needed)
|
||||||
info "Installing dex2jar from GitHub releases..."
|
info "Installing dex2jar from GitHub releases..."
|
||||||
local tag
|
local tag
|
||||||
tag=$(gh_latest_tag "pxb1988/dex2jar")
|
tag=$(gh_latest_tag "ThexXTURBOXx/dex2jar")
|
||||||
if [[ -z "$tag" ]]; then
|
if [[ -z "$tag" ]]; then
|
||||||
# Fallback: pxb1988 hasn't released in a while, try known version
|
# Fallback to a known maintained release if GitHub metadata is unavailable.
|
||||||
tag="v2.4"
|
tag="2.4.35"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local version="${tag#v}"
|
local version="${tag#v}"
|
||||||
local url="https://github.com/pxb1988/dex2jar/releases/download/${tag}/dex-tools-${version}.zip"
|
local url="https://github.com/ThexXTURBOXx/dex2jar/releases/download/${tag}/dex-tools-${version}.zip"
|
||||||
local tmp_zip
|
local tmp_zip
|
||||||
tmp_zip=$(mktemp /tmp/dex2jar-XXXXXX.zip)
|
tmp_zip=$(mktemp /tmp/dex2jar-XXXXXX.zip)
|
||||||
|
|
||||||
info "Downloading dex2jar $version..."
|
info "Downloading dex2jar $version..."
|
||||||
if ! download "$url" "$tmp_zip"; then
|
if ! download "$url" "$tmp_zip"; then
|
||||||
# Try alternate naming
|
# Try alternate naming
|
||||||
url="https://github.com/pxb1988/dex2jar/releases/download/${tag}/dex-tools-v${version}.zip"
|
url="https://github.com/ThexXTURBOXx/dex2jar/releases/download/${tag}/dex-tools-v${version}.zip"
|
||||||
download "$url" "$tmp_zip" || {
|
download "$url" "$tmp_zip" || {
|
||||||
fail "Download failed."
|
fail "Download failed."
|
||||||
manual "Download from https://github.com/pxb1988/dex2jar/releases/latest"
|
manual "Download from https://github.com/ThexXTURBOXx/dex2jar/releases/latest"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -369,7 +369,7 @@ install_dex2jar() {
|
||||||
|
|
||||||
if [[ -z "$bin_dir" ]]; then
|
if [[ -z "$bin_dir" ]]; then
|
||||||
fail "Could not find d2j-dex2jar.sh in extracted archive."
|
fail "Could not find d2j-dex2jar.sh in extracted archive."
|
||||||
manual "Download and extract manually from https://github.com/pxb1988/dex2jar/releases"
|
manual "Download and extract manually from https://github.com/ThexXTURBOXx/dex2jar/releases"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod +x "$bin_dir"/*.sh 2>/dev/null || true
|
chmod +x "$bin_dir"/*.sh 2>/dev/null || true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue