ADB

Reset the unlock code

Mint a new unlock code for this session and close every existing ADB connection. Use it when the code has been shared too widely. The endpoint's host and port stay the same. Takes no body. Watch tokens cannot reset.

post/sessions/{sid}/adb/reset

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.