Disconnect Android Device

VerifiedSafe

Disconnect a wireless Android device from ADB. Use with an IP:port argument to disconnect a specific device, 'all' for all wireless devices, or no argument to auto-detect. Helps when you need to disconnect a device connected via WiFi.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#adb#android#wireless#device#disconnect

Recommended for

Automated summary

Disconnects wireless Android devices from ADB, either all at once or a specific device.

Strengths

  • Quick disconnection with a single command
  • Supports multiple devices with interactive selection
  • Clear and structured JSON output
  • Error handling with helpful hints

Limitations

  • Requires ADB to be installed and configured
  • Only works with devices connected over WiFi
  • Does not handle disconnection of wired devices
When to use it

Use when you need to cleanly disconnect Android devices connected over WiFi after testing or debugging sessions.

When not to use it

Not suitable for wired ADB connections or when ADB is not configured in your environment.

Security analysis

Safe
Quality score90/100

The skill simply disconnects wireless ADB devices using a bash script; it performs no destructive, exfiltrating, or obfuscated actions. ADB disconnect is a standard, safe operation for development workflows.

No concerns found

How this analysis is made

Examples

Disconnect all wireless devices
Disconnect all Android devices connected via ADB over WiFi.
Disconnect specific device
Disconnect the Android device at 192.168.1.100:5555 from ADB.

name: disconnect-device description: Disconnect a wireless Android device from ADB. Use when you need to disconnect a device connected via WiFi.

Disconnect Device

Disconnect a wireless Android device from ADB.

Instructions

Script location: scripts/disconnect-device.sh (relative to this skill's directory)

Before running, locate this skill's directory (where this SKILL.md is located), then execute:

bash <skill-directory>/scripts/disconnect-device.sh [argument]

Arguments:

  • all: Disconnect all wireless devices
  • ip:port (e.g., 192.168.1.100:5555): Disconnect specific device
  • (none): Auto-detect wireless devices

JSON Output Schema

Success - Single Device

{
  "success": true,
  "message": "Disconnected from 192.168.1.100:5555",
  "serial": "192.168.1.100:5555"
}

Success - All Devices

{
  "success": true,
  "message": "Disconnected all wireless devices"
}

No Wireless Devices

{
  "success": true,
  "message": "No wireless devices connected"
}

Select Device (multiple wireless devices)

{
  "success": true,
  "action": "select_device",
  "devices": [
    { "serial": "192.168.1.100:5555", "model": "Pixel 6", "api": "33" },
    { "serial": "192.168.1.101:5555", "model": "Galaxy S21", "api": "31" }
  ]
}

Failure

{
  "success": false,
  "error": "adb not found",
  "hint": "Set ANDROID_HOME or ANDROID_SDK_ROOT environment variable"
}

Claude's Handling

  1. If JSON has action: "select_device", use AskUserQuestion to let user choose:
    • "all" - Disconnect all wireless devices
    • Individual devices (show model and API info)
  2. After user selection, run the script again with the selected argument
  3. Report disconnect result to user
  4. On failure, show the error message and hint to the user

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/disconnect-android-device-mma3jsll/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/disconnect-android-device-mma3jsll' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/disconnect-android-device-mma3jsll/download' --output '.skill-downloads/disconnect-android-device-mma3jsll/SKILL.md.part' && mv '.skill-downloads/disconnect-android-device-mma3jsll/SKILL.md.part' '.skill-downloads/disconnect-android-device-mma3jsll/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/disconnect-android-device-mma3jsll/SKILL.md' && test -s '.skill-downloads/disconnect-android-device-mma3jsll/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/disconnect-device' && cp -R '.skill-downloads/disconnect-android-device-mma3jsll' '.claude/skills/disconnect-device'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/disconnect-android-device-mma3jsll'

openskills read 'disconnect-android-device-mma3jsll'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/disconnect-android-device-mma3jsll/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills