ADB

Enable ADB

Return the ADB endpoint and unlock code for one ready session owned by your account. Ready phones already have ADB enabled and carry the same values in the session's adb block, so this is only needed to re-enable after DELETE; it is idempotent. Takes no body. Watch tokens cannot enable access. See the connection guide.

post/sessions/{sid}/adb

Request

  • Base URL
    https://api.phone-harness.com
  • Auth
    HTTP bearer

Path parameters

sidstring required

Session ID returned by POST /sessions.

Response

Success.

enabledtrue required
transport'adb' required
hoststring required

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

portinteger required

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

codestring required

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

expires_atnumber required

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

Changes

No recorded changes to this operation across all 1 revision of this API.