mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 14:22:11 +08:00
4012d181e1
date: 2024-03-17T10:14:38 master commit: 7e9a909e0e57ecb31df4c87c5b9a06b1204fd034
12 lines
212 B
Bash
12 lines
212 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
|
|
PORT=5555
|
|
|
|
setprop service.adb.tcp.port $PORT
|
|
sudo systemctl start adbd
|
|
|
|
IP=$(echo $SSH_CONNECTION | awk '{ print $3}')
|
|
echo "then, connect on your computer:"
|
|
echo "adb connect $IP:$PORT"
|