All skills
google avatar

/developer-device-platform-basics

@d91e77b
by googlegoogle/skills21k stars
1,698

Provides guidance and instructions on managing remote devices on Developer Device Platform (DDP). Use when reserving remote Android devices, establishing connection tunnels, checking session status, or extending/cancelling leases. Don't use for iOS or local device/hardware inquiries.

Use this Skill: https://skilld.dev/gh/google/skills/developer-device-platform-basics

This session only. Nothing lands on disk.

referencesstart_adb_forwarder.md

≈573 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Start ADB Forwarder

To forward ADB connection to the remote device, run the scripts/demo_adb_forwarder.py script.

Python Environment Setup

Before running the python script, ensure you have set up the virtual environment:

  1. Navigate to Scripts Directory: Ensure your current working directory is the skill scripts directory (the directory containing demo_adb_forwarder.py) before running any of the following commands. If you are an agent, ensure you set the working directory (or Cwd parameter of your execution tool) to this directory. This is required because subsequent commands (like pip install and running scripts) use relative paths.

  2. Virtual Environment: Create and activate a dedicated local virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install Dependencies: Install the required client dependencies:

    pip install -r requirements.txt

[!IMPORTANT] Every time you execute the python connection forwarder, you must ensure this virtual environment is activated first.

Running the ADB Forwarder

  1. Calculate Duration: Calculate the remaining lifetime of the device session in seconds (the difference between expireTime and the current time) to align the forwarder's lifespan.

  2. Start Connection Forwarder: Start demo_adb_forwarder.py in the background with the calculated remaining duration passed via the --ttl argument. Run this command in the background using your environment's command execution capability.

    Run this command in local virtual environment:

    python3 demo_adb_forwarder.py --device_session {session_name} --ttl {remaining_seconds}

    Ensure you record the returned Command ID.

Wait for Online and Parse Port

  1. Monitor Output: Monitor the background forwarder command output for the following log line: ADB forwarding listening on localhost:{port}

  2. Extract Port: Extract the {port} number. If this line does not appear within 2 minutes (typically under 1 minute), terminate the forwarder background process using your environment's process management capability, cancel the session, and report failure.

Source: SKILL.md on GitHub

No alerts9d3 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    This skill provides a comprehensive set of tools and instructions for managing remote Android devices on the Developer Device Platform. It facilitates authentication, device reservation, and the establishment of ADB connection tunnels using official Google Cloud CLI tools and libraries. The skill incorporates important security practices, such as requiring explicit user confirmation for actions that incur billing.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

Signed by skilld at d91e77b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "0.5.0",
  "category": "CloudInfrastructureAndServices"
}

README badge

README badge for google/skills/developer-device-platform-basics