Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Improve Emulator Lifecycle Reliability and Tests

Open
#66 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, csharp

Research direction

Start with the WaitForBootComplete and WaitForCpuLoadBelow entry points, then compare their exception handling with GetEmulatorName and the fix described in PR #56. Add unit or integration coverage for transient adb failures and timeout behavior; done means both wait methods retry gracefully without failing immediately.

Written by the indexing model from the issue text.

Description

As discussed in PR #63 review, the new emulator lifecycle methods (WaitForBootComplete, WaitForCpuLoadBelow) need hardening.

Tasks:

  • Add try-catch handling for SdkToolFailedExitException in WaitForBootComplete (similar to GetEmulatorName fix in PR #56)
  • Add try-catch handling for SdkToolFailedExitException in WaitForCpuLoadBelow
  • Add unit/integration tests for these wait methods to ensure they handle transient adb failures gracefully
  • Verify timeout behaviors

Context:
adb commands can fail transiently during emulator boot. The current implementation might throw exceptions immediately instead of retrying, potentially causing flaky tests or CI failures.

Dominant language
C#
Stars
78
Forks
18
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Redth/AndroidSdk.Tools

All issues in Redth/AndroidSdk.Tools

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.