Skip to content

Instantly share code, notes, and snippets.

@dnedrow
Last active November 9, 2021 00:20
Show Gist options
  • Select an option

  • Save dnedrow/97e5e7e7e8519325c8cdbc5c93aba8db to your computer and use it in GitHub Desktop.

Select an option

Save dnedrow/97e5e7e7e8519325c8cdbc5c93aba8db to your computer and use it in GitHub Desktop.
Script demonstrating how to use adb and pbpaste to insert test in an Android emulator.
#!/bin/bash
# Copy something to your Mac clipboard. This script will paste it into
# a focused text field in the Android emulator.
# As always, you could also create an alias for the command or just
# run it manually.
adb shell input text `pbpaste`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment