Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 612 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 612 Bytes

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