android-sensors

Documents 26 Android sensors and composite inference patterns for device state detection via ADB.

10|2|Updated Jul 9, 2026
One-click install
npx skills add https://github.com/xvxv-stack7/android-claude-agent --skill android-sensors-xvxv-stack7
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: android-sensors
Source: https://github.com/xvxv-stack7/android-claude-agent/tree/main/skills/android-monitor/sensors
Command: npx skills add https://github.com/xvxv-stack7/android-claude-agent --skill android-sensors-xvxv-stack7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Android exposes dozens of hardware sensors, but raw dumpsys output is hard to interpret and sensor names vary by manufacturer. This Skill provides a structured reference of 26 commonly useful sensors with their raw data formats, use cases, and composite inference patterns so you can infer device state, user activity, and environment without app-level APIs. ## Core Features & Use Cases - Sensor Catalog: Covers motion, orientation, environmental, activity recognition, event detection, and specialty sensors with raw data formats and interpretation guidance. - Composite Inference Patterns: Pre-built multi-sensor logic for detecting late-night screen use, phone calls, gaming sessions, and abandoned devices. - Quick ADB Commands: Ready-to-run dumpsys sensorservice commands for listing, filtering, and inspecting sensors on any Android device. - Use Case: You want to detect whether a user is using their phone late at night in a dark room. Combine ambient light (< 5 lux), screen state (Awake), and time of day following the documented inference pattern. ## Quick Start Ask the AI to list all sensors on the connected Android device and explain which ones can detect late-night phone usage.

Frequently Asked Questions about android-sensors

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

FAQPage Schema
How do I list all sensors on an Android device via ADB?▼

Run adb shell dumpsys sensorservice to get the full sensor list. Filter active sensors with grep -E "0x[0-9a-f]{8}\)" or inspect a specific sensor with grep -A 5 followed by the sensor name like Accelerometer.

How to detect user activity from Android sensors?▼

Use the vivo_activity sensor for direct activity classification (walking, running, cycling, in_vehicle, stationary) on supported devices. Otherwise combine accelerometer, gyroscope, and step counter data to infer gait frequency and movement patterns.

Can I read real-time Android sensor values from the command line?▼

No, Android does not expose live sensor buffer reads via command line. dumpsys sensorservice shows registration status and metadata only. For near-real-time access, implement a Shizuku-based sensor polling endpoint in a phone-api layer.

Do activity recognition sensors work on all Android phones?▼

No, sensors like vivo_activity, Elevator Detect, and Smart Prox are vendor-specific and vary by manufacturer such as vivo, Xiaomi, or Samsung. Always verify availability with dumpsys sensorservice on the target device.

How to detect late-night phone usage with sensors?▼

Combine three signals: time between 00:00 and 06:00, ambient light below 5 lux, and screen state Awake. This pattern indicates dark-room phone use and can trigger wellness notifications or logging.