Skip to content

Latest commit

 

History

History

data

Running the experiments

python3 android-runner BM-experiment/*/Experiment*/batch*/config.json

Connecting all devices via wifi

#!/bin/bash

# Get the list of connected devices
devices=$(adb devices | awk 'NR>1 {print $1}')

# Iterate over each device
for device in $devices
do
  # 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 status
  echo "Connected to $device over Wi-Fi"
done