injecting-input-and-state

Execute ADB shell commands to inject input and manage Android app state.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill injecting-input-and-state-trancee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: injecting-input-and-state
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/android-testing-skills/adb/control/injecting-input-and-state
Command: npx skills add https://github.com/trancee/MeshLink-template --skill injecting-input-and-state-trancee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of programmatically controlling an Android device from a host machine, enabling automated UI interaction, system configuration, and state management without requiring complex instrumentation code.

Core Features & Use Cases

  • Input Simulation: Inject precise taps, swipes, text, and hardware key events to simulate user behavior.
  • System Configuration: Override display metrics like size and density, or toggle system settings like animation scales for hermetic testing.
  • State Management: Perform clean app resets using package manager commands and launch specific activities with custom intent extras.

Quick Start

Use the injecting-input-and-state skill to force-stop the target package and launch the main activity with a clean state.

Frequently Asked Questions about injecting-input-and-state

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

FAQPage Schema
How do I simulate user input on an Android device via shell commands?

You can simulate user input on an Android device by executing ADB shell commands to inject precise taps, swipes, text, and hardware key events without requiring complex instrumentation code.

How do I perform hermetic testing by resetting system settings on Android?

To perform hermetic testing, you can override display metrics like size and density, or toggle system settings like animation scales, and perform clean app resets using package manager commands.

Can I launch specific Android activities with custom intent extras using ADB?

Yes, you can launch specific Android activities with custom intent extras by executing shell commands to manage application state and force-stop target packages for a clean testing launch.

Do I need an active ADB connection to automate Android device control via shell?

Yes, you need an active ADB connection to automate Android device control, and it requires API level 24 and above to support the modern command wrappers used for shell execution.

What is the best way to programmatically control an Android device from a host machine?

The best way to programmatically control an Android device from a host machine is using shell command automation for input injection, display configuration, and state management without complex instrumentation.

Does input injection via shell work for clearing package data on Android?

Yes, input injection and state management via shell works for clearing package data by executing package manager commands to perform clean app resets for hermetic testing scenarios.