ad-patch-revert

Revert hot-swapped Android classes by fully-qualified name or all session swaps.

3|Updated May 10, 2026
One-click install
npx skills add https://github.com/Acendas/android-debugger --skill ad-patch-revert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ad-patch-revert
Source: https://github.com/Acendas/android-debugger/tree/main/skills/ad-patch-revert
Command: npx skills add https://github.com/Acendas/android-debugger --skill ad-patch-revert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Revert a previously hot-swapped Android class to restore original behavior.

Core Features & Use Cases

  • Revert a specific FQN class swapped in this session.
  • Revert all classes swapped during the current session.
  • Guidance on attach state and no-snapshot scenarios.

Quick Start

Invoke the ad-patch-revert command with the target fully-qualified name to revert the corresponding class, or omit it to revert all classes swapped during this session.

Frequently Asked Questions about ad-patch-revert

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

FAQPage Schema
How do I revert a hot-swapped Android class during debugging?

Yes, you can revert all hot-swapped Android classes by omitting the specific class name when invoking the revert command, which rolls back every swap executed during the current debugger session.

Do I need an active debugger session to revert Android class swaps?

Yes, reverting hot-swapped Android classes requires an attached android-debugger session. The tool uses this active connection to apply the reversion and restore the original classloading state.

What happens if there is no snapshot when reverting a hot-swapped class?

When reverting a hot-swapped class without a snapshot, the tool provides specific guidance on attach state and no-snapshot scenarios to help troubleshoot the reversion process within the debugging session.

Why would I need to revert a hot-swapped Android class?

You need to revert a hot-swapped Android class to restore original behavior after testing runtime changes. This allows you to undo temporary patches applied via hot-swap without restarting the virtual machine.