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
#!/usr/bin/env bash | |
# This script will try to find the adb remote debugging port in the specified | |
# IP address and then tell adb to try to connect to it. | |
# It is useful for connecting to an android device without opening the | |
# "Wireless debugging" screen to get the IP and the random port, which is | |
# cumbersome. | |
for line in $(avahi-browse --terminate --resolve --parsable --no-db-lookup _adb-tls-connect._tcp); do | |
if [[ $line != =* ]]; then |