Loading...
Loading...
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.
npx skill4agent add google/skills developer-device-platform-basics[!WARNING] Developer Device Platform (DDP) is currently at Preview.
[!IMPORTANT] For all devicerun and devicestreaming API operations (reserving, status checking, stopping/canceling, updating, or listing a session), always verify and use the exact instructions and curl commands provided in the linked referencefiles..md
gcloudgcloud auth login --no-browser
gcloud auth application-default login --no-browsergcloud services enable devicerun.googleapis.com devicestreaming.googleapis.com testing.googleapis.com --quiet[!NOTE] Cloud Testing API is needed for Device Streaming API during Preview.
export PROJECT_ID=$(gcloud config get project)
export ACCESS_TOKEN=$(gcloud auth application-default print-access-token 2>/dev/null)modelCodeosVersiongcloud alpha device-run devices listIDCATALOG_IDshiba-36CATALOG_IDListing Available DevicesCATALOG_IDCATALOG_ID=shiba-34OS_VERSIONOS_VERSIONdeviceStreamingOS_VERSIONmodel_idmodelCodeversion_idosVersionmodel_idversion_idsession_nameprojects/${PROJECT_ID}/deviceSessions/session-xxxxxx"state""ACTIVE"expireTimeadb -s localhost:{port} shell getprop ro.product.modelDevice Model: {device_model}
OS Version: {version_id}
ADB Address: localhost:{port}
Session Expiration: {expire_time_human_readable_local}{session_name}{command_id}adb{session_name}{command_id}{command_id}session_namettl3600sttlupdateMask=ttladb disconnect localhost:{port}{command_id}--ttl