Use stable fields for ART class spec offset detection#361
Conversation
|
Thanks!
This seems impossible looking at the code, given that |
|
Thanks! 🙌 |
Pick up ART offset lookup fix by @AeonLucid. See frida/frida-java-bridge#361 for details.
|
Sorry to be this guy but I'm trying to track down one of 2 things that might be causing my issues. With this change my error is now
This eval's a simple script Where Logger contains my aforementioned You'll notice this uses frida-il2cpp-bridge and when I comment out the calls to Il2Cpp.Perform it NO LONGER crashes. I find the error peculiar as it relates to this PR but the commented out code points to the library. I'm going to post this in both places to try and narrow down the issue but I'd appreciate any insight if you have it. |
|
@ExternalAddress4401 Can you provide a minimal script, frida cli arguments and a target app so that I can reproduce the error? |
|
My setup is somewhat of a mess so I have the smallest repro I can manage at: https://github.com/ExternalAddress4401/frida-repro
I use https://beatstar.en.uptodown.com/android/download as a test. I think this should work for any game that uses Il2CPP though.
|
|
@ExternalAddress4401 Thanks! I forgot to ask but which device and android version is this on? Any special roms? If possible you can also message me on discord or telegram (both are @AeonLucid). |
Nope this is a stock ROM and a Samsung Galaxy S20 Canadian variant so it's a locker bootloader and cannot be rooted or anything of that kind. |
Thanks for the repro repository. I managed to fix it. Edit: #362 |
Addresses crashes commented under the previous pull request #359.
These fields shouldn't be optimised away.
Edit: Also added an extra check for the art array length. Sometimes it would read a negative number when trying offsets, and it would infinitely loop.