← 返回 Skills 市场
wangyendt

Pywayne Adb Logcat Reader

作者 wangyendt · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
566
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install adb-logcat-reader
功能描述
Read Android device logs in real-time via adb logcat using a C++ or Python backend with generator-style streaming output.
使用说明 (SKILL.md)

Pywayne ADB Logcat Reader

This module provides real-time Android device log reading capabilities via the adb logcat command.

Quick Start

from pywayne.adb.logcat_reader import AdbLogcatReader

# Create reader (default C++ backend)
reader = AdbLogcatReader()

# Start log capture and read
reader.start()
for line in reader.read():
    print(line)

Use Python backend (alternative)

reader = AdbLogcatReader(backend='python') reader.start() for line in reader.read(): print(line)


# Stop and cleanup
reader.stop()

Initialization

# C++ backend (default, faster)
reader = AdbLogcatReader()

# Python backend (alternative, may be more compatible)
reader = AdbLogcatReader(backend='python')

Reading Logs

The read() method yields log lines incrementally as a generator, suitable for processing large logs or real-time monitoring.

# Process logs as they arrive
for line in reader.read():
    # Filter, parse, store...

Properties

Property Description
backend 'cpp' or 'python'
running Whether logcat process is running

Methods

Method Description
start() Start adb logcat process
read() Generator yielding log lines
stop() Stop logcat process
get_backend() Get active backend type

Backends

C++ Backend (Default)

  • Uses native C++ implementation
  • Faster performance for real-time streaming
  • Better compatibility with adb logcat

Python Backend (Alternative)

  • Uses Python subprocess to call adb
  • More compatible across different environments
  • Easier debugging and integration

Notes

  • C++ backend is faster and recommended for production
  • Python backend may be useful during development
  • stop() terminates adb logcat; use Ctrl+C to send interrupt signal
  • Logs are cleared automatically when process stops
安全使用建议
This skill appears to be documentation for a module that is not bundled here and has no source or install instructions. Before installing or enabling it: 1) Ask the publisher for the repository or a release URL and an install spec (pip package, wheel, or native binary). 2) Verify the pywayne.adb.logcat_reader package and its C++ backend exist and inspect their source. 3) Ensure your environment has the adb binary and that you understand device access/permissions (USB access can expose device logs). 4) Treat native/C++ components from unknown sources as higher risk—run in an isolated environment or container until provenance is confirmed. If you cannot verify the code/source, avoid enabling autonomous invocation or installing the skill.
功能分析
Type: OpenClaw Skill Name: adb-logcat-reader Version: 0.1.0 The skill bundle describes a legitimate utility for reading Android device logs using the `adb logcat` command. The `SKILL.md` provides clear documentation on its purpose and usage, including the mention of a Python backend utilizing `subprocess`, which is a necessary capability for its stated function. There is no evidence of prompt injection, malicious instructions, data exfiltration, or other harmful behaviors within the provided metadata and documentation files.
能力评估
Purpose & Capability
SKILL.md describes a pywayne.adb.logcat_reader module with a C++ backend and a Python backend for running adb logcat, but the skill bundle contains no code, no source link, and no install steps. It also does not declare that the adb binary is required despite relying on adb; this is internally inconsistent with the stated purpose.
Instruction Scope
The instructions are narrowly focused on using the described module and do not ask for unrelated files or credentials. However they assume the module and native backend already exist in the runtime; the absence of installation or provenance instructions leaves ambiguous what the agent should actually execute.
Install Mechanism
There is no install specification or source repository. The presence of a C++ backend implies compiled/native components that must be provided or installed, but no mechanism is given. Lack of source/homepage increases risk and prevents verification.
Credentials
The skill declares no required binaries or environment variables, yet its functionality fundamentally depends on the adb binary and access to connected Android devices (USB or network). Not declaring adb and omitting any permissions/requirements is disproportionate and misleading.
Persistence & Privilege
The skill does not request always-on inclusion and uses default autonomy settings. It does not ask to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install adb-logcat-reader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /adb-logcat-reader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of pywayne-adb-logcat-reader. - Provides real-time log monitoring from Android devices using the adb logcat command. - Supports both a fast C++ backend (default) and a Python subprocess backend for compatibility. - Offers a generator-style `read()` method for streaming logs as they arrive. - Includes methods to start, stop, and manage the logcat reading process. - Allows users to select their preferred backend and monitor logs for filtering, parsing, or storage.
元数据
Slug adb-logcat-reader
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Pywayne Adb Logcat Reader 是什么?

Read Android device logs in real-time via adb logcat using a C++ or Python backend with generator-style streaming output. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 566 次。

如何安装 Pywayne Adb Logcat Reader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install adb-logcat-reader」即可一键安装,无需额外配置。

Pywayne Adb Logcat Reader 是免费的吗?

是的,Pywayne Adb Logcat Reader 完全免费(开源免费),可自由下载、安装和使用。

Pywayne Adb Logcat Reader 支持哪些平台?

Pywayne Adb Logcat Reader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Pywayne Adb Logcat Reader?

由 wangyendt(@wangyendt)开发并维护,当前版本 v0.1.0。

💬 留言讨论