Skip to content

Can't find Mono runtime when running in emulator #2

@tweidinger

Description

@tweidinger

Hi, I just wanted to replicate/try your repo.
I did run all described steps.

Clone the modified frida-mono-api in this repository's root.
git clone https://github.com/GoSecure/frida-mono-api mono-api
cd mono-api && git switch extra
Run npm i && npm run build
Ensure you have frida installed (pip install frida frida-push)
Start the test Application on your Android device
Run the following commands to launch the script
frida-push
frida -U com.test.sample -l dist/xamarin-unpin.js --no-pause

I was expecting the same output as in the example but got:

Error: Can't find Mono runtime!
    at mono-api/src/mono-module.js:20
    at o (node_modules/browser-pack/_prelude.js:1)
    at mono-api/src/mono-api.js:2
    at o (node_modules/browser-pack/_prelude.js:1)
    at mono-api/src/index.js:1
    at o (node_modules/browser-pack/_prelude.js:1)
    at src/main.js:24
    at o (node_modules/browser-pack/_prelude.js:1)
    at r (node_modules/browser-pack/_prelude.js:1)

I am not sure how to fix this or where to investigate the cause.
More context:
Host system: Arch 5.4.x
Guest system: Emulated Pixel 3a (API 24) Frida 12.8.20
frida-ps is working and the server shows no error when pushed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions