Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tracer return value parse error #483

Closed
wants to merge 4 commits into from

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    d02a006 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    a9673af View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Use Interceptor.attach for applierWithParameters

    Before we used Interceptor.replace which called `NativeFunction`.
    For reasons that are not very clear to me, it could throw "abort was called", which made us return a null pointer and possibly crash the program.
    Now we use Interceptor.attach and thus do not interrupt the original execution.
    
    For example:
    
    previous implementation
    il2cpp:
    0x010d4c94 ┌─UserTargeting.HamsterOfferwall::get_ActiveReward(this = HamsterOfferwall (UserTargeting.HamsterOfferwall))
    0x010d4c94 └─UserTargeting.HamsterOfferwall::get_ActiveReward = null [native IL2CPP exception occurred] // <- null pointer returned
    
    after that the app crashed.
    
    new implementation
    il2cpp:
    0x010d4c94 ┌─UserTargeting.HamsterOfferwall::get_ActiveReward(this = HamsterOfferwall (UserTargeting.HamsterOfferwall))
    0x010d4c94 └─UserTargeting.HamsterOfferwall::get_ActiveReward = ""
    
    and execution continues as desired, yay!
    
    One more important improvement, as @fakekey and @Vladik01-11 noticed, some apps have issues with getting the parameter value (again, for reasons I don't understand).
    Now we check if it is possible to get the parameter value, instead of spamming the console with errors, if it is impossible to get the parameter value (as I noticed, this applies mostly to Il2Cpp.Object) you will see the red text "null (failed to parse parameter value)".
    commonuserlol committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    875b84b View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. Configuration menu
    Copy the full SHA
    5cd58ec View commit details
    Browse the repository at this point in the history