android-stop-app
Stop the Android app running on connected device. Cleanly terminates the app using force-stop. Use when stopping the app for debugging, testing, or cleanup.
Best use case
android-stop-app is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Stop the Android app running on connected device. Cleanly terminates the app using force-stop. Use when stopping the app for debugging, testing, or cleanup.
Teams using android-stop-app should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/android-stop-app/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How android-stop-app Compares
| Feature / Agent | android-stop-app | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Stop the Android app running on connected device. Cleanly terminates the app using force-stop. Use when stopping the app for debugging, testing, or cleanup.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Android Stop App ## Overview Stops the Android app running on a connected device by using `adb shell am force-stop`. This cleanly terminates all app processes, clearing memory while preserving app data. ## When to Use Invoke this skill when the user: - Asks to "stop the Android app" - Wants to "kill the app" - Says "terminate the Android app on device" - Mentions shutting down or closing the Android app - Needs to stop before deploying new version ## Prerequisites - Android device connected via USB - USB debugging enabled - ADB installed (`brew install android-platform-tools`) - Device authorized - App must be running on the device ## Instructions 1. Navigate to the Android app directory: ```bash cd path/to/android/app ``` 2. Run the stop script: ```bash ./stop-app.sh ``` 3. The script will: - Use `adb shell am force-stop` to terminate the app - Report success 4. Inform the user: - The app has been stopped - Safe to call even if app isn't running - Uses force-stop for clean shutdown (not kill) ## Expected Output ``` 🛑 Stopping NoobTest on device... ✅ App stopped ``` ## How It Works The script uses: - `adb shell am force-stop com.miso.noobtest` This Android framework command: - Stops all processes associated with the package - Clears app from memory - Preserves app data and settings - Clean shutdown (not emergency kill) ## force-stop vs kill **force-stop** (recommended): - Android framework command - Clean shutdown - Preserves app data - Safe for development **kill** (not recommended): - OS-level signal - Abrupt termination - May leave resources in inconsistent state - Only use if force-stop fails ## Common Use Cases **Before deploying new version**: ```bash ./stop-app.sh ./install-device.sh ``` **Pairing with restart**: ```bash ./stop-app.sh # Make configuration changes ./restart-app.sh ``` **Clean state testing**: ```bash ./stop-app.sh # Clear app data manually if needed adb shell pm clear com.miso.noobtest # Then install fresh ``` ## Common Issues **"no devices found"**: - Check USB connection - Ensure USB debugging enabled - Verify authorized: `adb devices` - Try: `adb kill-server && adb start-server` **"adb: command not found"**: - Install Android platform tools: `brew install android-platform-tools` - Check PATH includes adb **App still running after force-stop**: - Rare, but check with: `adb shell pidof com.miso.noobtest` - If still running, restart device - Or use: `adb shell pm clear com.miso.noobtest` (nukes app data too) ## Safety This script is safe to call repeatedly: - Won't error if app isn't running - Uses clean shutdown method - Reports status clearly - No risk to app data or installation ## Package Name The script is configured for the specific app's package name (e.g., `com.miso.noobtest` for Firefly/NoobTest). Package name is defined in build.gradle.kts under `applicationId`. ## Data Preservation `force-stop` does NOT clear: - App installation - App data (SharedPreferences, databases, files) - App permissions - User settings To fully clear app state, use: ```bash adb shell pm clear com.miso.noobtest ``` But this will require reinstallation and setup.
Related Skills
android
Build, review, and refactor Android mobile apps (Kotlin) using modern Android patterns. Use for tasks like setting up Gradle modules, Jetpack Compose UI, navigation, ViewModel/state management, networking (Retrofit/OkHttp), persistence (Room/DataStore), DI (Hilt/Koin), testing, performance, release builds, and Play Store readiness.
android-watch-logs
Start real-time log streaming from connected Android device using adb logcat. Shows only app's log messages. Use when monitoring app behavior, debugging, or viewing Android logs.
android-use
Control Android devices via ADB commands - tap, swipe, type, navigate apps
android-supabase
Supabase integration patterns for Android - authentication, database, realtime subscriptions. Use when setting up Supabase SDK, implementing OAuth, querying database, or setting up realtime.
android-project
Navigate and analyze Android project structure, modules, and dependencies. Use when exploring project structure, finding related files, analyzing dependencies, or locating code patterns.
android-notification-builder
Эксперт Android notifications. Используй для push notifications, channels и notification patterns.
android-motion-specialist
Expert Android developer for the Motion Detector project. Use this skill when working on Camera2 API integration, motion detection algorithms, Android networking (LAN sockets + Supabase Realtime), debugging crashes, or any Android/Kotlin development tasks specific to this sprint timing application.
android-kotlin
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing
android-kotlin-development
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.
android-keystore-generation
Generate production and local development keystores for Android release signing
android-gradle
Automate Gradle tasks for Android projects - build, test, coverage, clean. Use when building APKs, running unit tests, generating coverage reports, or checking dependencies.
android-firebase
Firebase integration patterns for Android - Crashlytics, Analytics, Remote Config, FCM. Use when setting up crash reporting, analytics events, remote configuration, or push notifications.