18 lines
494 B
Bash
Executable File
18 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
# The API listens on port 8080 on the device.
|
|
# That can be connected to while using the device's
|
|
# shell (e.g. `adb shell`), or remotely via the
|
|
# DHCP assigned IP or the static IP 192.168.42.129.
|
|
#
|
|
# This script will allow you to access the device's API,
|
|
# when plugged in via USB, on port 8080 of the local
|
|
# workstation.
|
|
# So, for example after running this, you can hit this
|
|
# from the workstation:
|
|
# http://127.0.0.1:8080/api/v2/status
|
|
|
|
set -x
|
|
|
|
adb forward tcp:8080 tcp:8080
|
|
|