Skip to content

Fix Kali bootstrap handling for adb and managed PATH#5

Merged
Codeblin merged 1 commit into
masterfrom
fix/kali-managed-adb-bootstrap
Jul 15, 2026
Merged

Fix Kali bootstrap handling for adb and managed PATH#5
Codeblin merged 1 commit into
masterfrom
fix/kali-managed-adb-bootstrap

Conversation

@Codeblin

Copy link
Copy Markdown
Owner

Summary

Fix Kali/Linux bootstrap behavior for managed adb, Frida PATH checks, platform-tools downloads, and GitHub API rate-limit guidance.

This PR makes dexmachina fix --bootstrap behave correctly when tools are installed into DexMachina’s managed workspace instead of the global shell PATH.

Testing

  • python -m pytest
  • dexmachina --help
  • dexmachina status --offline

Additional validation:

  • py -m pytest -> 135 passed
  • Focused tests for direct installs, device helpers, and doctor checks passed

Device or Emulator Coverage

If this affects device flows, note what you tested:

  • Setup: Kali/Linux-style managed install path behavior reproduced from user output
  • Rooted: Not required for this change
  • Command: dexmachina fix --bootstrap
  • Result: Managed adb is now resolved from .dexmachina/tools/adb/bin/adb; Frida checks use DexMachina’s managed environment; fix re-check reloads config after active Frida venv changes

Supply Chain Impact

  • No new downloads or network calls
  • New/changed downloads are documented in THREAT_MODEL.md
  • Checksums/signatures were added when upstream provides them

Notes:

  • Platform-tools download validation still fails closed on short/incomplete downloads.
  • Downloads that are larger than Content-Length are now accepted to handle decoded transfer-size behavior from Google platform-tools responses.
  • GitHub API rate-limit failures now tell users to set GITHUB_TOKEN.

- tolerate decoded downloads larger than Content-Length
- resolve DexMachina-managed adb in device and doctor checks
- run Frida doctor checks through managed environment
- reload config before fix re-check phase
- add GitHub rate-limit guidance and Kali docs
@Codeblin Codeblin merged commit 5e1c09f into master Jul 15, 2026
9 checks passed
@Codeblin Codeblin deleted the fix/kali-managed-adb-bootstrap branch July 15, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant