Skip to content

Implement reconnect command.#790

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

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

Conversation

@3rm-z
Copy link
Copy Markdown
Contributor

@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).

@IPMegladon
Copy link
Copy Markdown
Collaborator

IPMegladon commented Mar 9, 2026

Thanks, I will review what I get a chance. Do know there is was also this implementation for it 7d52261 from #760 so will have to compare these as well first.

@IPMegladon
Copy link
Copy Markdown
Collaborator

Heya I added some stuff, but had to create a new branch and pr as your did not allow maintainers write access. Thanks will close this one for now but the changes should get merged in with the other PR.

@IPMegladon IPMegladon closed this Mar 11, 2026
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.

2 participants