Help! Need help with IL2Cpp Method Patching crashing the game (armeabi-v7a)

MDT3CH

Platinian
Hello everyone,
I'm trying to create a simple script for a Unity IL2Cpp game (32-bit armeabi-v7a), but I've hit a roadblock and could use some advice from experienced modders.
Device: Samsung SM-A566B (Android 16, SDK 36, 32-bit architecture)
GAME MLBB
Framework: ELGG 1.2.6
Target: Trying to hook/patch a method (e.g., ShowEntity or similar visibility functions).
The Problem:
I used an auto-offset finder script to locate the target method's pointer/offset in the library (libcsharp.so / libil2cpp.so).
When I apply a standard ARM 32-bit return patch (01 00 00 E3 1E FF 2F E1 / mov r0, #1; bx lr) to that offset using GameGuardian, the script says "Activated".
However, a few seconds later, the game instantly crashes.
I suspect that either I'm patching a method pointer instead of the actual function instructions, or the game has an integrity check / signature validation that triggers a crash when the library bytes are modified.
If anyone has experience bypassing this or can point me in the right direction on how to properly hook/patch IL2Cpp methods on 32-bit games without crashing, I would greatly appreciate it!
Thanks in advance.
 
Back
Top Bottom