Skip to content

fix(android): configure ADB timeout through environment - #407

Open
jordus100 wants to merge 1 commit into
ionic-team:developfrom
jordus100:feature/adb-timeout
Open

jordus100 wants to merge 1 commit into
ionic-team:developfrom
jordus100:feature/adb-timeout

Conversation

@jordus100

@jordus100 jordus100 commented Sep 21, 2026 •

Copy link
Copy Markdown

Description

Added NATIVE_RUN_ADB_TIMEOUT env variable for all standard ADB operations while retaining ADB_TIMEOUT as a legacy fallback, and documented the setting in Android CLI help.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

This fixes #259
My particular problem was when using devices from remote test labs like SmartDust
I was getting enigmatic errors in Ionic Capacitor caused by too short ADB timeouts, resulting from high latency in my remote setup. The error originated from this tool - the default ADB timeout was rigid and too short for some cases.

Tests or Reproductions

Added appropriate unit tests.
Also tested on real Android devices connected remotely when using Ionic Capacitor. After my fix, Ionic Capacitor was able to work with my Android devices.

Platforms Affected

  • Android
  • iOS
  • Web

Use NATIVE_RUN_ADB_TIMEOUT env variable for all standard ADB operations while retaining ADB_TIMEOUT as a legacy fallback, and document the setting in Android CLI help.
This prevents ADB timeout errors on setups with high latency.
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.

Customize ADB commands timeout

1 participant