mobile-dev-inc / mobile-dev-inc/dadb

Crash with Command failed (host:features): more than one device/emulator

Open
#64 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
1.2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

I am using DADB but it fails with Command failed (host:features): more than one device/emulator

https://github.com/mobile-dev-inc/dadb/blob/447f9b42acacb4fc854982ddd384220b832828b5/dadb/src/main/kotlin/dadb/adbserver/AdbServer.kt#L128

Exception in thread "main" java.io.IOException: Command failed (host:features): more than one device/emulator
	at dadb.adbserver.AdbServer.send$dadb(AdbServer.kt:99)
	at dadb.adbserver.AdbServerDadb.open(AdbServer.kt:138)
	at dadb.adbserver.AdbServerDadb.<init>(AdbServer.kt:128)
	at dadb.adbserver.AdbServer.createDadb(AdbServer.kt:52)
	at dadb.adbserver.AdbServer.listDadbs(AdbServer.kt:81)
	at dadb.adbserver.AdbServer.listDadbs$default(AdbServer.kt:60)
	at dadb.Dadb$Companion.list(Dadb.kt:251)
	at dadb.Dadb$Companion.list$default(Dadb.kt:250)

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the failure with more than one device or emulator, then trace the stack from Dadb.kt lines 250-251 into AdbServer.kt lines 99, 128, and 138. Compare the host:features request path with the multi-device scenario; done means the reported crash is resolved and the relevant behavior is covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
devtools, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.