disconnect-device

Disconnect wireless Android devices from ADB and output standardized JSON results.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/powdream/claude-plugins --skill disconnect-device
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: disconnect-device
Source: https://github.com/powdream/claude-plugins/tree/main/plugins/android-tools/skills/disconnect-device
Command: npx skills add https://github.com/powdream/claude-plugins --skill disconnect-device

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires utils.sh, and includes scripts (resource) components.

What problem does it solve?

Wireless Android development often leaves devices connected to ADB over Wi-Fi, which can be a security risk or cause confusion during testing. This skill cleanly disconnects wireless devices to reset or revoke remote ADB connections.

Core Features & Use Cases

  • Disconnect all wireless devices from ADB
  • Disconnect a specific device by IP:port (e.g., 192.168.1.100:5555)
  • Auto-detect wireless devices and prompt when multiple devices are present
  • Use case: quickly revoke wireless debugging after a test session or in CI environments

Quick Start

Run the script to manage wireless ADB connections: bash <skill-directory>/scripts/disconnect-device.sh [all|ip:port]

Frequently Asked Questions about disconnect-device

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I disconnect wireless Android devices from ADB?▼

To disconnect wireless Android devices from ADB, run the disconnect-device script with arguments like 'all' or a specific IP:port to revoke remote wireless debugging sessions cleanly.

Why should I revoke wireless ADB connections after a test session?▼

Revoking wireless ADB connections after testing eliminates security risks and prevents device confusion by ensuring no devices remain connected over Wi-Fi inadvertently.

Can I disconnect a specific Android device by IP and port from ADB?▼

Yes, you can disconnect a specific Android device by providing its IP:port combination, such as 192.168.1.100:5555, directly as an argument to the disconnect script.

How does ADB handle disconnecting wireless devices when multiple are connected?▼

When multiple wireless devices are connected, the script auto-detects them and prompts the user to select the correct device, ensuring accurate disconnection in complex environments.

Is this wireless ADB disconnection tool suitable for CI workflows?▼

Yes, this tool is suitable for CI workflows as it supports auto-detection and all-devices disconnection flows, outputting standardized JSON results for automated environments.

Do I need the adb binary to disconnect wireless Android devices?▼

Yes, you need the adb binary and helper utilities in utils.sh, as the script relies on them to locate devices, perform disconnect operations, and output standardized results.