Skip to content

Propagate exceptions for bootstrapper NativeFunction#6

Merged
StackOverflowExcept1on merged 1 commit intoStackOverflowExcept1on:masterfrom
AntonDevil:user/AntonDevil/FixCrashExeption
Feb 13, 2026
Merged

Propagate exceptions for bootstrapper NativeFunction#6
StackOverflowExcept1on merged 1 commit intoStackOverflowExcept1on:masterfrom
AntonDevil:user/AntonDevil/FixCrashExeption

Conversation

@AntonDevil
Copy link
Copy Markdown
Contributor

Add exceptions: "propagate" (default is steal) to NativeFunction call for bootstrapper to resolve new Harmony call exceptions on native call

Currently, the demo _run.bat fails to finish hook initialization.
It starts here


And then fails here
harmony = new Harmony("com.example.patch");

It seems to me new Harmony starts to load something which throws benign exception (tries to resolve/load 0Harmony.dll or does reflection?) which frida steal by default.
See nativefunction

exceptions: "propagate" helps to let the app RuntimePatcher to properly deal with Harmony code injection initialization.

Before:
image

After:
image

Add `exceptions: "propagate"` (default is `steal`) to NativeFunction call for bootstrapper to resolve `new Harmony` call exceptions on native call
@StackOverflowExcept1on StackOverflowExcept1on merged commit 9b456fd into StackOverflowExcept1on:master Feb 13, 2026
2 checks passed
@AntonDevil
Copy link
Copy Markdown
Contributor Author

AntonDevil commented Feb 13, 2026

Hi @StackOverflowExcept1on,

I accidentally found your post on frida
frida/frida#3318 (comment)

I didn't get to the exact root cause of the problem (what exception is thrown) but my change fixes it.
I guess you can close this issue now 😊.

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