Files
firefox-accounts-mirror/_scripts/adb-reverse.sh
dschom 640a3cc739 task(scripts): Update adb-reverse script
Because:
- Script was outdated
- More ports are needed to get this working with android emulator on localhost.

This Commit:
- Introduces a list of known ports
- Uses this list for adb-reverse.sh
- Uses this list for check-ports.sh
2024-07-15 17:52:45 -07:00

13 lines
293 B
Bash
Executable File

#!/bin/bash -e
while IFS= read -r line
do
echo "Running adb reverse for: $line"
port=`echo "$line" | cut -d'#' -f1`
# Edge case for profile server cdn
if [ "$port" == "1111" ]; then
adb reverse tcp:1111 tcp:1112
fi
adb reverse tcp:$port tcp:$port
done < "_scripts/ports.txt"