Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred when starting frida-server on Android #2851

Open
4332weizi opened this issue May 9, 2024 · 12 comments
Open

An error occurred when starting frida-server on Android #2851

4332weizi opened this issue May 9, 2024 · 12 comments

Comments

@4332weizi
Copy link

  • frida: 16.2.1
  • frida-server: frida-server-16.2.1-android-arm64
  • divice: Pixel 7 Pro
  • OS version: Android 15 VanillalceCream (AP31.240322.027)
cheetah:/ # /data/local/tmp/frida-server &
[1] 14506
cheetah:/ # {"type":"error","description":"TypeError: t is not a function","stack":"TypeError: t is not a function
     at frida/node_modules/frida-java-bridge/lib/android.js:1591:1
     at frida/node_modules/frida-java-bridge/lib/class-model.js:113:1
     at CallbackContext.kt (frida/node_modules/frida-java-bridge/lib/android.js:586:1)
     at NativeFunction.<anonymous> (<anonymous>)
     at bt (frida/node_modules/frida-java-bridge/lib/android.js:577:1)
     at frida/node_modules/frida-java-bridge/lib/class-model.js:112:1
     at Function.build (frida/node_modules/frida-java-bridge/lib/class-model.js:7:1)
     at k._make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168:1)
     at k.use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62:1)
     at frida/node_modules/frida-java-bridge/index.js:224:1","fileName":"frida/node_modules/frida-java-bridge/lib/android.js","lineNumber":1591,"columnNumber":1}
{"type":"error","description":"TypeError: Cannot read properties of undefined (reading 'find')","stack":"TypeError: Cannot read properties of undefined (reading 'find')
     at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1014:1)
     at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1030:1)
     at Object.get (frida/node_modules/frida-java-bridge/lib/class-factory.js:742:1)
     at frida/node_modules/frida-java-bridge/index.js:224:1
     at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)
     at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:223:1)
     at _.perform (frida/node_modules/frida-java-bridge/index.js:204:1)
     at /internal-agent.js:490:6","fileName":"frida/node_modules/frida-java-bridge/lib/class-factory.js","lineNumber":1014,"columnNumber":1}
@4332weizi
Copy link
Author

cheetah:/ # /data/local/tmp/frida-server &
[1] 28650
cheetah:/ # Unexpectedly timed out while waiting for syscall on ActivityManager thread; please file a bug!
{"type":"error","description":"TypeError: t is not a function","stack":"TypeError: t is not a function
     at frida/node_modules/frida-java-bridge/lib/android.js:1591:1
     at frida/node_modules/frida-java-bridge/lib/class-model.js:113:1
     at CallbackContext.kt (frida/node_modules/frida-java-bridge/lib/android.js:586:1)
     at NativeFunction.<anonymous> (<anonymous>)
     at bt (frida/node_modules/frida-java-bridge/lib/android.js:577:1)
     at frida/node_modules/frida-java-bridge/lib/class-model.js:112:1
     at Function.build (frida/node_modules/frida-java-bridge/lib/class-model.js:7:1)
     at k._make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168:1)
     at k.use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62:1)
     at frida/node_modules/frida-java-bridge/index.js:224:1","fileName":"frida/node_modules/frida-java-bridge/lib/android.js","lineNumber":1591,"columnNumber":1}
{"type":"error","description":"TypeError: Cannot read properties of undefined (reading 'find')","stack":"TypeError: Cannot read properties of undefined (reading 'find')
     at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1014:1)
     at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1030:1)
     at Object.get (frida/node_modules/frida-java-bridge/lib/class-factory.js:742:1)
     at frida/node_modules/frida-java-bridge/index.js:224:1
     at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)
     at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:223:1)
     at _.perform (frida/node_modules/frida-java-bridge/index.js:204:1)
     at /internal-agent.js:490:6","fileName":"frida/node_modules/frida-java-bridge/lib/class-factory.js","lineNumber":1014,"columnNumber":1}

@Amargy
Copy link

Amargy commented Jun 7, 2024

Same:

  1. pixel8 and VanillalceCream
  2. frida server for ARM64 Android

$ adb push frida-server /data/local/tmp/
$ adb shell "chmod 755 /data/local/tmp/frida-server"
$ adb shell "/data/local/tmp/frida-server &"

emu64a:/ # {"type":"error","description":"TypeError: t is not a function","stack":"TypeError: t is not a function\n at frida/node_modules/frida-java-bridge/lib/android.js:1591:1\n at frida/node_modules/frida-java-bridge/lib/class-model.js:113:1\n at CallbackContext.kt (frida/node_modules/frida-java-bridge/lib/android.js:586:1)\n at NativeFunction. ()\n at bt (frida/node_modules/frida-java-bridge/lib/android.js:577:1)\n at frida/node_modules/frida-java-bridge/lib/class-model.js:112:1\n at Function.build (frida/node_modules/frida-java-bridge/lib/class-model.js:7:1)\n at k._make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168:1)\n at k.use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62:1)\n at frida/node_modules/frida-java-bridge/index.js:224:1","fileName":"frida/node_modules/frida-java-bridge/lib/android.js","lineNumber":1591,"columnNumber":1}
{"type":"error","description":"TypeError: Cannot read properties of undefined (reading 'find')","stack":"TypeError: Cannot read properties of undefined (reading 'find')\n at F.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1018:1)\n at F.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1034:1)\n at Object.get (frida/node_modules/frida-java-bridge/lib/class-factory.js:746:1)\n at frida/node_modules/frida-java-bridge/index.js:224:1\n at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)\n at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:223:1)\n at _.perform (frida/node_modules/frida-java-bridge/index.js:204:1)\n at /internal-agent.js:490:6","fileName":"frida/node_modules/frida-java-bridge/lib/class-factory.js","lineNumber":1018,"columnNumber":1}

@Rat4er
Copy link

Rat4er commented Jun 13, 2024

same:
Pixel 7 VanillalceCream

{"type":"error","description":"TypeError: t is not a function","stack":"TypeError: t is not a function\n    at frida/node_modules/frida-java-bridge/lib/android.js:1591:1\n    at frida/node_modules/frida-java-bridge/lib/class-model.js:113:1\n    at CallbackContext.kt (frida/node_modules/frida-java-bridge/lib/android.js:586:1)\n    at NativeFunction.<anonymous> (<anonymous>)\n    at bt (frida/node_modules/frida-java-bridge/lib/android.js:577:1)\n    at frida/node_modules/frida-java-bridge/lib/class-model.js:112:1\n    at Function.build (frida/node_modules/frida-java-bridge/lib/class-model.js:7:1)\n    at k._make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168:1)\n    at k.use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62:1)\n    at frida/node_modules/frida-java-bridge/index.js:224:1","fileName":"frida/node_modules/frida-java-bridge/lib/android.js","lineNumber":1591,"columnNumber":1}
{"type":"error","description":"TypeError: Cannot read properties of undefined (reading 'find')","stack":"TypeError: Cannot read properties of undefined (reading 'find')\n    at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1014:1)\n    at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1030:1)\n    at Object.get (frida/node_modules/frida-java-bridge/lib/class-factory.js:742:1)\n    at frida/node_modules/frida-java-bridge/index.js:224:1\n    at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)\n    at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:223:1)\n    at _.perform (frida/node_modules/frida-java-bridge/index.js:204:1)\n    at /internal-agent.js:490:6","fileName":"frida/node_modules/frida-java-bridge/lib/class-factory.js","lineNumber":1014,"columnNumber":1}

@NgoHuy
Copy link

NgoHuy commented Jun 24, 2024

I updated today and have same issue, it conflicted with some changes from new Android backport.

@NgoHuy
Copy link

NgoHuy commented Jun 24, 2024

@Davenjoy
Copy link

Davenjoy commented Jun 25, 2024

Same issue:

Pixel 8 VanillaIceCream
Android 13

{"type":"error","description":"TypeError: t is not a function","stack":"TypeError: t is not a function\n at frida/node_modules/frida-java-bridge/lib/android.js:1591:1\n at frida/node_modules/frida-java-bridge/lib/class-model.js:113:1\n at CallbackContext.kt (frida/node_modules/frida-java-bridge/lib/android.js:586:1)\n at NativeFunction. ()\n at bt (frida/node_modules/frida-java-bridge/lib/android.js:577:1)\n at frida/node_modules/frida-java-bridge/lib/class-model.js:112:1\n at Function.build (frida/node_modules/frida-java-bridge/lib/class-model.js:7:1)\n at k._make (frida/node_modules/frida-java-bridge/lib/class-factory.js:168:1)\n at k.use (frida/node_modules/frida-java-bridge/lib/class-factory.js:62:1)\n at frida/node_modules/frida-java-bridge/index.js:224:1","fileName":"frida/node_modules/frida-java-bridge/lib/android.js","lineNumber":1591,"columnNumber":1}
{"type":"error","description":"TypeError: Cannot read properties of undefined (reading 'find')","stack":"TypeError: Cannot read properties of undefined (reading 'find')\n at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1014:1)\n at I.value (frida/node_modules/frida-java-bridge/lib/class-factory.js:1030:1)\n at Object.get (frida/node_modules/frida-java-bridge/lib/class-factory.js:742:1)\n at frida/node_modules/frida-java-bridge/index.js:224:1\n at c.perform (frida/node_modules/frida-java-bridge/lib/vm.js:12:1)\n at _performPendingVmOpsWhenReady (frida/node_modules/frida-java-bridge/index.js:223:1)\n at _.perform (frida/node_modules/frida-java-bridge/index.js:204:1)\n at /internal-agent.js:490:6","fileName":"frida/node_modules/frida-java-bridge/lib/class-factory.js","lineNumber":1014,"columnNumber":1}

I tested frida-server 16.2.x - 16.3.3

@0xbigshaq
Copy link

Same issue here, tested on frida-server 16.2.0 and 16.3.3 (Pixel 5 API 35)

@vapinto
Copy link

vapinto commented Jun 30, 2024

Same issue to, frida-server-16.3.3, Android pixel 8 Pro,

@lumaaaaaa
Copy link

Same issue, frida-server 16.3.3 on Pixel 4 API 35

@lumaaaaaa
Copy link

Downgrading my device to API 34 resolved this issue, I suspect the offsets are not yet updated to support the latest API or something of that sort.

@itormoza
Copy link

itormoza commented Jul 3, 2024

Same issue, frida-server 16.3.3 on A52s 5G API 34 - LineageOS

@shaoziintel
Copy link

same issue frida-server 16.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants