Skip to content

Instantly share code, notes, and snippets.

@hackcatml
Last active October 11, 2024 09:15
Show Gist options
  • Save hackcatml/2dfd671599d563488f742c96edc71b7b to your computer and use it in GitHub Desktop.
Save hackcatml/2dfd671599d563488f742c96edc71b7b to your computer and use it in GitHub Desktop.
Unable to perform state transition issue
This issue occurred in the recently updated version of "com.android.art".
@hackcatml
Copy link
Author

@hackcatml Unfortunately, this has the same problem as the original PR. On certain phones (e.g. fully updated S21 Ultra, including the latest Google Play update), the function passed to Java.perform never gets called. No exceptions are thrown but the frida script is basically useless :(

Try this.

Java.perform(function()
{
  Java.deoptimizeEverything();
  // Code
});

@radubogdan2k
Copy link

Java.deoptimizeEverything();

No change :(

@hackcatml
Copy link
Author

Java.deoptimizeEverything();

No change :(

It seems fine to me (com.android.art@350820960).
But Java hooking feels unstable.
It might be better to wait for the official Frida update.

image

@radubogdan2k
Copy link

Java.deoptimizeEverything();

No change :(

It seems fine to me (com.android.art@350820960). But Java hooking feels unstable. It might be better to wait for the official Frida update.

image

What phone are you using?

@radubogdan2k
Copy link

It might be better to wait for the official Frida update.

Definitely, but it seems like nobody's working on it :( Ole said he doesn't have the time and everybody else that gave it a go seems a bit stuck...

@hackcatml
Copy link
Author

Java.deoptimizeEverything();

No change :(

It seems fine to me (com.android.art@350820960). But Java hooking feels unstable. It might be better to wait for the official Frida update.
image

What phone are you using?

Pixel 4a, Android 13 with August 1 Google Play system update

@radubogdan2k
Copy link

Java.deoptimizeEverything();

No change :(

It seems fine to me (com.android.art@350820960). But Java hooking feels unstable. It might be better to wait for the official Frida update.
image

What phone are you using?

Pixel 4a, Android 13 with August 1 Google Play system update

I tried several phones, includ a Pixel 4a. The Pixel was the only one on which it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment