Skip to main content
POST
Enable ADB

Authorizations

Authorization
string
header
required

Phone Harness account API key (pck_…). The dashboard may use a Clerk session JWT with the same header. Never put an account key in a URL.

Path Parameters

sid
string
required

Session ID returned by POST /sessions.

Response

Success.

enabled
boolean
required
transport
string
required
Allowed value: "adb"
host
string
required

DNS name of the ADB endpoint. Use the returned value.

port
integer
required

TCP port dedicated to this phone while the session lives. Run adb connect host:port.

Required range: 1 <= x <= 65535
code
string
required

The unlock code. After connecting, run adb shell unlock . Anyone who has host, port and code can drive the phone until the session ends or the code is reset.

Pattern: ^ph_[a-z2-7]{26}$
expires_at
number
required

Unix timestamp in seconds when access expires. Never later than the session deadline; ADB access does not extend the session.