Package apptest provides utilities for testing an app.
It is extremely incomplete, hence it being internal. For starters, it should support iOS.
const Port = "12533"
Port is the TCP port used to communicate with the test app.
TODO(crawshaw): find a way to make this configurable. adb am extras?
Comm is a simple text-based communication protocol.
Assumes all sides are friendly and cooperative and that the communication is over at the first sign of trouble.