Skip to content
android-restart-app logo

Android Restart App

android-restart-app

Restart the Android app on connected device without rebuilding. Force-stops and relaunches the app remotely. Use when testing changes that don't require rebuild, or refreshing app state.

SKILL.md

Full skill instructions

Android Restart App

Overview

Restarts the Android app on a connected device by force-stopping the existing instance and launching it again. This is useful for testing configuration changes, clearing app state, or refreshing the app without rebuilding.

When to Use

Invoke this skill when the user:

  • Asks to "restart the Android app"
  • Wants to "reload the app"
  • Says "relaunch on device"
  • Mentions refreshing or resetting the Android app
  • Wants to test without rebuilding

Prerequisites

  • Android device connected via USB
  • App must be installed on the device (use android-deploy-usb first if not)
  • USB debugging enabled
  • ADB installed
  • Device authorized

Instructions

  1. Navigate to the Android app directory:

    cd path/​to/​android/​app
    
  2. Run the restart script:

    ./​restart-app.sh
    
  3. The script will:

    • Force-stop the running app with adb shell am force-stop
    • Launch the app again with adb shell am start
    • Activate it (bring to foreground)
  4. Inform the user:

    • The app has been restarted on the device
    • This does NOT rebuild - only restarts the existing installation
    • Use android-deploy-usb if code changes need to be deployed first

Expected Output

🔄 Restarting NoobTest on device...
✅ App restarted

How It Works

The script uses:

  • adb shell am force-stop com.miso.noobtest to kill the app process
  • adb shell am start -n com.miso.noobtest/​.MainActivity to launch again

When to Use vs Deploy

Use restart-app when:

  • Testing configuration files or assets that don't require rebuild
  • Clearing app state (memory, caches)
  • You just want to refresh the running app
  • Changes are external (server-side, network config, etc.)

Use android-deploy-usb when:

  • You changed Kotlin code
  • You added/​modified UI (Compose)
  • You updated dependencies in build.gradle.kts
  • Any code that needs recompilation

Common Issues

"no devices found":

  • Check USB connection
  • Ensure USB debugging is enabled
  • Verify device authorized: adb devices
  • Try: adb kill-server && adb start-server

App not installed:

  • Run android-deploy-usb first to build and install
  • Verify app on device home screen or app drawer

App doesn't start:

  • Check logcat for errors: adb logcat | grep NoobTest
  • Verify MainActivity class name matches package
  • Check app permissions if needed

Speed

This is very fast (< 2 seconds) since there's no build step. It's ideal for rapid iteration when testing non-code changes or clearing app state.

Package Name

The script is configured for the specific app's package name. For Firefly/​NoobTest, this is com.miso.noobtest. Different apps will have different package names configured in build.gradle.kts under applicationId.

Force-Stop Note

adb shell am force-stop is a clean shutdown that:

  • Stops all app processes
  • Clears memory but keeps app data
  • Safer than killing process with kill command
  • Recommended way to stop Android apps during development

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View