You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash# Get the list of connected devices
devices=$(adb devices | awk 'NR>1 {print $1}')# Iterate over each devicefordevicein$devicesdo# Get the device IP address
ip=$(adb -s $device shell ifconfig wlan0 | awk '/inet addr/{print substr($2,6)}')# Connect to ADB over Wi-Fi
adb -s $device tcpip 5555
adb -s $device connect $ip:5555
# Print the device name and connection statusecho"Connected to $device over Wi-Fi"done