Last active
November 9, 2021 00:20
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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