MJx0 / KittyMemory

This library aims for runtime code patching for both Android and iOS
MIT License
307 stars 109 forks source link

Issue with ARMv8 Code Modification in Kitty Memory #29

Closed JinxxBoom closed 2 months ago

JinxxBoom commented 3 months ago

Hello. I'm using the latest version of your Kitty Memory. I'm encountering an issue when modifying code on ARMv8. During code execution, it stops at a certain point (I'll show it in a photo). I've verified this by logging checkpoints in logcat. I'm not sure what to do next. It seems like I've tried all the methods. I also used your files as a base and, without changing them, patched my offsets and bytes. But nothing worked.

One of my attempts to find errors: After the line 'g_il2cppELF.base()', I wrote two consecutive entries in logcat. The first one was displayed in LogCat. But the second one – wasn't. I don't know how this is possible...

Photo

JinxxBoom commented 2 months ago

I solved this issue. RVA: 0x13FE838 Offset: 0x13FD838 VA: 0x13FE838. The offset needs to be RVA, not Offset.