cross-app-tests-with-uiautomator

cross-app-tests-with-uiautomator is a skill for Claude Code, Codex from skydoves/android-testing-skills. It costs 213 tokens per session (4,497 once invoked), scanned A, original, Apache-2.0.

A method for Android instrumentation tests to control system screens and other apps, such as Settings, the dialer, notifications, or a sharing screen.

In plain words
What is it for?
Use it for cross-app tests, system-UI actions, launching another app, pressing Home or Recents, changing device settings, and recovering from stale UI elements.
Why use it?
Android’s Espresso testing framework is limited to your app, while UiAutomator can interact with windows owned by other apps or by the operating system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for cross-app tests, system-UI actions, launching another app, pressing Home or Recents, changing device settings, and recovering from stale UI elements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add skydoves/android-testing-skills --skill cross-app-tests-with-uiautomator
Clone the repo
git clone --depth 1 https://github.com/skydoves/android-testing-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-app-tests-with-uiautomator

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator/github.svg)](https://agentmods.dev/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator)
Your own site
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cross-app-tests-with-uiautomator

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/cross-app-tests-with-uiautomator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 213 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00213 $0.04497
Opus 5.5 $0.00085 $0.01799
Sonnet 5.5 $0.00043 $0.00899
Haiku 4.5 $0.00021 $0.00450

Measured 3mo ago against content hash 1f8dfeac5a9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cross-app-tests-with-uiautomator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

instrumentation/uiautomator/cross-app-tests-with-uiautomator/SKILL.md · 334 lines

How it starts

The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-App Tests with UiAutomator — Drive System UI and Other Apps

UiAutomator is the only AndroidX test framework that can drive UI across process boundaries — Settings, the dialer, system notifications, another app's activity. Espresso refuses (InjectEventSecurityException) when an event would cross to a foreign window. UiAutomator works against the platform AccessibilityNodeInfo tree, so it sees every window. This skill encodes the modern BySelector / UiObject2 API, the singleton acquisition, the StaleObjectException recovery pattern, and the cross-app launch path.

When to use this skill

  • The test must drive system UI (Settings, dialer, system notifications, quick settings, recents).
  • The test spans the developer's app and another app (share sheet, contacts picker, camera).
  • Espresso threw InjectEventSecurityException because the test reached a foreign window.
  • The user reports StaleObjectException and is debugging cached-node lifetime.
  • The user asks how to send the device home, press recents, or toggle airplane mode in a test.
  • The user mixes BySelector and UiSelector in the same test and is confused which is current.

When NOT to use this skill

  • The UI is entirely inside the developer's app — Espresso (Views) or Compose tests are faster and more reliable. See ../../espresso/writing-espresso-tests/SKILL.md for Views.
  • The runner stack is not yet set up — start with ../../runner/running-instrumented-tests-with-androidjunit4/SKILL.md.
  • The user only needs to push device-side state changes (animations off, intent stub) — see ../../../adb/control/injecting-input-and-state/SKILL.md.
  • The test only needs to scrape logs after a run — see ../../../adb/observability/extracting-logs-with-logcat/SKILL.md.

Prerequisites

  • Runner stack from ../../runner/running-instrumented-tests-with-androidjunit4/SKILL.md.
  • androidTestImplementation("androidx.test.uiautomator:uiautomator:2.3.0").
  • A real or virtual Android device with the accessibility_service available (the default).
  • For Context.startActivity to a foreign package on API 30+, a <queries> entry in the test APK manifest naming the target package or intent action.

Read the full file on GitHub · 334 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 334 lines · 213 tokens per session scan A 1f8dfeac5a9b

Subscribe to this mod's changes

cross-app-tests-with-uiautomator is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 213 tokens to every session and 4,497 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cross-app-tests-with-uiautomator compared with skills from other repositories

cross-app-tests-with-uiautomator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-app-tests-with-uiautomatorskydoves/android-testing-skillsSkill3516mo agoApache-2.0A213Claude Code, Codex
android-ui-journey-testingsickn33/agentic-awesome-skillsSkill51ktodayMITA27Claude Code
android_ui_verificationsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
solopi-aialipay/SoloPiSkill6.8ktodayApache-2.0A82Codex
public-transitchromium/chromiumSkill25ktodayBSD-3-ClauseA53Claude Code, Codex
eas-simulatorexpo/skillsSkill4.3ktodayMITA251Claude Code, Codex
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code