get_device_info
Play demoTry asking
- What Android version is this phone running?
- which phone model is this
- tell me the build number
- read the Android version
ghost skill run ghost/settings get_device_info Android Settings: privacy-bounded native model/build, battery, storage totals and Wi-Fi yes/no reads; switch dark theme.
Task check: passed without the skill, passed with it.
One recorded run each way on set_dark_theme, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.
23× fewer tokens, 1.4× faster with the skill. Task check: passed without the skill, passed with it.
| Run | Time | Tokens | Tool calls | Result |
|---|---|---|---|---|
| No skill: agent drives by hand | 23.1 s | 490,271 | 10 | passed |
With skill: find_skill, run_skill (set_dark_theme) | 17.1 s | 20,925 | 3 | passed |
Prompt: Turn on dark mode
Fixed skill 44926a84, 3/3 clean-reset phone B replays before AFTER retake. Original BEFORE retained. Original AFTER (38.17s/266120 tokens, success=True) preserved in originals/settings.mp4. New AFTER 17.08s/20925 tokens/3 calls, actual run_skill success. Every-frame terminal OCR and source-cast gate passed.
One recorded pair on samsung-demo, claude-haiku-5-5; tokens count every input, cache and output token once per assistant message. Not a signed run: it adds no run evidence.
Settings 1.1.0 reads native aggregates and can change the system theme. It requires no account.
| Action | Result | Parameters |
|---|---|---|
get_device_info | Model, Android version, build number | none |
get_battery_status | Battery level percent, charging boolean | none |
get_storage_usage | Total, used and free /data storage, in KiB | none |
get_wifi_status | Enabled and connected booleans | none |
set_dark_theme | Requested theme and native state readback | enabled boolean |
The four read actions now use privacy-bounded native aggregates by default. The previous About-phone, battery, storage-category and Wi-Fi-list UI paths have been removed entirely; there is no flag to restore them. These actions neither open those pages nor read their accessibility trees. Device names, serials, IMEI, phone numbers, SSID/BSSID, IP addresses, nearby networks and per-app/category storage lists are excluded. Consumers must use the result fields above instead of the removed fields.
Device information uses only ro.product.model, ro.build.version.release and ro.build.display.id. Battery uses filtered dumpsys battery; storage uses numeric df -k /data totals. Wi-Fi filters cmd wifi status on the device before ADB returns output, exposing only booleans. Unsupported or incomplete native output fails explicitly rather than inventing a value. Charging means the platform reports actively charging; a full battery is not actively charging. Storage covers the data filesystem, rather than an advertised device capacity or a per-volume inventory.
The theme action opens Display, applies cmd uimode night yes/no and reads it back. Automatic, custom and unreadable night-mode states are refused before any change, preserving existing schedules. A temporary caller should restore the original fixed theme afterward. Settings data is never cleared.
ghost skill run ghost/settings get_battery_status --device YOUR_DEVICE
ghost skill run ghost/settings set_dark_theme --param enabled=true --device YOUR_DEVICE
The current scope is Android 16 on Samsung SM-A156B, 1080×2340, 450 dpi, en-US. Other OS/OEM combinations need live verification. The read actions depend on the documented native output formats and shell permission; unknown Wi-Fi state fails closed. Theme navigation still depends on the English Display heading.
Current signed artifacts in runs/ are maintainer self-runs made with the canonical local signing key using actual ghost skill run --record, after final file edits. They are not independent verification. Historical artifacts that no longer match the files have been removed. This version requires three successful runs per action before claiming Runs tier.
License: MIT.
SOFT.md is the narrative an agent reads when the exact steps no longer match your app version and it has to adapt the skill.
Package: com.android.settings. Scope: Android 16 Samsung, en-US. Never adapt these actions by opening About phone, Wi-Fi lists, or storage app inventories: these pages can reveal personal identifiers even if a later parser drops those fields.
get_device_info: read exactly ro.product.model, ro.build.version.release, ro.build.display.id; return device_info.model, android_version, build_number. Never enumerate all properties.get_battery_status: filter native dumpsys battery on the device to numeric level, scale, status. Return battery.level_percent and charging; reject missing/unknown status or impossible levels.get_storage_usage: filter df -k /data on the device to total/used/available numbers. Return storage.total_kib, used_kib, free_kib; never enumerate app directories or other volumes.get_wifi_status: filter native cmd wifi status on the device into wifi.enabled and connected booleans. COMPLETED means associated; explicit inactive/disconnected/transitional states mean not connected. A disabled radio is disconnected. Missing/conflicting enabled or connected state is an error. Never return raw command output or network identifiers, and never open Internet settings as fallback.set_dark_theme(enabled): close Settings, go Home, open android.settings.DISPLAY_SETTINGS, wait for visible Display. Query cmd uimode night; only explicit yes/no can be changed. Set the requested fixed mode and read it back. Auto/custom/unreadable states fail without changing the schedule. Success requires the returned mode and independent native readback to match. Restore the original mode when making a temporary demonstration.The four reads need no Settings UI landmark. End validators require exactly the allowed result keys, valid types/ranges and internally consistent aggregates. Do not weaken missing native state into success or reintroduce private UI paths for compatibility.
Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.
get_device_infoTry asking
ghost skill run ghost/settings get_device_info get_battery_statusTry asking
ghost skill run ghost/settings get_battery_status get_storage_usageTry asking
ghost skill run ghost/settings get_storage_usage get_wifi_statusTry asking
ghost skill run ghost/settings get_wifi_status set_dark_themeTry asking
ghost skill run ghost/settings set_dark_theme Each release is an immutable git tag. The tree hash pins the exact skill directory the installer verifies.
| Version | Released | App versions | Tree | Size | Provenance |
|---|---|---|---|---|---|
1.1.0latest | never | >=14 | pending | 15.5 KB | untagged |