frida / frida-java-bridge

Java runtime interop from Frida
318 stars 118 forks source link

Error in Java.deoptimizeEverything "no Instrumentation" #300

Closed incapdns closed 1 month ago

incapdns commented 9 months ago

I'm getting the following error:

Error: Unable to determine Instrumentation field offsets
    at Xe (frida/node_modules/frida-java-bridge/lib/android.js:378)
    at <anonymous> (frida/node_modules/frida-java-bridge/lib/memoize.js:4)
    at <anonymous> (frida/node_modules/frida-java-bridge/lib/android.js:1511)
    at kt (frida/node_modules/frida-java-bridge/lib/android.js:586)

When trying to run the following code:

Java.performNow(() => {
  Java.deoptimizeEverything()
})

or

Java.perform(() => {
  Java.deoptimizeEverything()
})

The build.gradle file:

android {
    compileSdk 34

    defaultConfig {
        applicationId "mobapptut.com.camera2videoimage"
        minSdk 23
        targetSdk 34
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
}

Phone: Galaxy S10+ Model: SM-G975F Android 12 Frida: Frida aGdget 16.1.4

incapdns commented 9 months ago

I noticed that my android.os.Build.VERSION.SDK_INT is 31, and the maximum supported is 30.

Is there any prediction on when it will be compatible?

If it's not too much to ask, I would like you to show me the way to obtain the other offsets, how this calculation is done, which is in the _getArtInstrumentationSpec function (Android.js)