Skip to content

Instantly share code, notes, and snippets.

View Skydev0h's full-sized avatar
🦆
Hello!

Oleksandr Skydev0h

🦆
Hello!
View GitHub Profile
#!/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