fix: check-deps.ps1 jadx fallback path version check, decompile.md lint fixes

This commit is contained in:
philjn 2026-04-19 08:21:13 -07:00
parent 26bc279148
commit 26007fd686
2 changed files with 6 additions and 1 deletions

View File

@ -46,16 +46,19 @@ After any installations, re-run `check-deps.sh` to verify. Do not proceed until
Run the decompile script on the target file. Choose the engine based on the input: Run the decompile script on the target file. Choose the engine based on the input:
- **APK or XAPK** → use jadx first (handles resources natively; XAPK is auto-extracted): - **APK or XAPK** → use jadx first (handles resources natively; XAPK is auto-extracted):
```bash ```bash
bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh <file> bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh <file>
``` ```
- **JAR/AAR** and Fernflower is available → prefer fernflower for better Java output: - **JAR/AAR** and Fernflower is available → prefer fernflower for better Java output:
```bash ```bash
bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh --engine fernflower <file> bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh --engine fernflower <file>
``` ```
- **If jadx output has warnings** or the user wants the best quality → run both and compare: - **If jadx output has warnings** or the user wants the best quality → run both and compare:
```bash ```bash
bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh --engine both <file> bash ${CLAUDE_PLUGIN_ROOT}/skills/android-reverse-engineering/scripts/decompile.sh --engine both <file>
``` ```
@ -79,6 +82,7 @@ After decompilation completes:
### Step 5: Offer next steps ### Step 5: Offer next steps
Tell the user what they can do next: Tell the user what they can do next:
- **Trace call flows**: "I can follow the execution flow from any Activity to its API calls" - **Trace call flows**: "I can follow the execution flow from any Activity to its API calls"
- **Extract APIs**: "I can search for all HTTP endpoints and document them" - **Extract APIs**: "I can search for all HTTP endpoints and document them"
- **Analyze specific classes**: "Point me to a specific class or feature to analyze" - **Analyze specific classes**: "Point me to a specific class or feature to analyze"

View File

@ -68,7 +68,8 @@ if (-not $jadxBin) {
} }
if ($jadxBin) { if ($jadxBin) {
try { try {
$jadxVersion = & jadx --version 2>$null $jadxCmd = if ($jadxBin -is [string]) { $jadxBin } else { 'jadx' }
$jadxVersion = & $jadxCmd --version 2>$null
Write-Host "[OK] jadx $jadxVersion detected" Write-Host "[OK] jadx $jadxVersion detected"
} catch { } catch {
Write-Host "[OK] jadx detected" Write-Host "[OK] jadx detected"