Skip to content

Implement reconnect command.#790

Open
3rm-z wants to merge 1 commit intosensepost:masterfrom
3rm-z:master
Open

Implement reconnect command.#790
3rm-z wants to merge 1 commit intosensepost:masterfrom
3rm-z:master

Conversation

@3rm-z
Copy link

@3rm-z 3rm-z commented Mar 2, 2026

This PR implement correctly the reconnect command inside Objection.

The Problem:
Mobile testing often involves app crashes (security protections, memory pressure) or USB timeouts. Currently, when the Frida session terminates, the user must exit Objection and restart the entire process, losing context and history.

The Solution:
The reconnect command allows for a "soft-restart" within the same REPL session. It clears the stale agent state and re-invokes the core get_agent() logic to re-attach to the target bundle.

Usage Notes:
Ensure the target application is open and active on the device before running reconnect.

Tested on iOS 16.4.1 .

Uses core Objection logic, making it compatible with both iOS and Android workflows.

Handles both hard crashes (app killed) and soft crashes (session timeout).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant