Skip to content

[GEN-1950] Replace deprecated runCommand in Android docs with device.adb / passAudioAsMicrophoneInput#158

Draft
Joonil Kim (bartholomaeuskim) wants to merge 1 commit into
mainfrom
gen-1950-update-deprecated-runcommand-in-android-docs
Draft

[GEN-1950] Replace deprecated runCommand in Android docs with device.adb / passAudioAsMicrophoneInput#158
Joonil Kim (bartholomaeuskim) wants to merge 1 commit into
mainfrom
gen-1950-update-deprecated-runcommand-in-android-docs

Conversation

@bartholomaeuskim
Copy link
Copy Markdown
Contributor

What

runCommand is deprecated in the New Flow API, but three Android docs still used it to invoke adb and to play audio into the emulator microphone. This swaps those examples to the supported device helpers.

  • android-audio-injectionffplay … via runCommanddevice.passAudioAsMicrophoneInput({ data, durationSeconds }); the recording pull → device.adb(...). Renamed the "ffplay flags" section to "Options" (the helper wraps the flags) and added device to the full-sample import.
  • android-performancerunCommand("adb …")device.adb("…") (the helper invokes adb, so the leading adb is dropped). Added device to the import.
  • android-sensor-mockingrunCommand("adb emu sensor set …")device.adb("emu sensor set …"), plus a device import line.
  • android-device-reference — documented the two new device methods (adb, passAudioAsMicrophoneInput) in the same style as the existing entries, and mentioned them in the intro.

No remaining runCommand references in the Android docs.

Dependency / merge order

These docs reference device.adb() and device.passAudioAsMicrophoneInput(), which ship in platform PR qawolf/platform#27106 (GEN-1953). Hold this until that lands so the docs don't point at APIs that aren't released yet. (Naming note: the audio helper is passAudioAsMicrophoneInput, not injectAudio/playAudio — kept distinct from iOS injectAudio to avoid a type-bundle clash.)

Linear: https://linear.app/qawolf/issue/GEN-1950

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented Jun 4, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
qawolf 🟢 Ready View Preview Jun 4, 2026, 6:14 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant