Files
dragonpilot/selfdrive/debug/adb.sh

17 lines
268 B
Bash
Raw Normal View History

2020-12-12 19:21:45 -08:00
#!/usr/bin/bash
2022-01-21 21:25:23 -08:00
set -e
2020-12-12 19:21:45 -08:00
2022-01-21 21:25:23 -08:00
PORT=5555
2020-12-12 19:21:45 -08:00
2022-01-21 21:25:23 -08:00
setprop service.adb.tcp.port $PORT
if [ -f /EON ]; then
stop adbd
start adbd
else
sudo systemctl start adbd
fi
IP=$(echo $SSH_CONNECTION | awk '{ print $3}')
echo "then, connect on your computer:"
echo "adb connect $IP:$PORT"