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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashing - Tracing. Press any key to quit... #62

Open
dipa96 opened this issue Jun 29, 2023 · 2 comments
Open

App crashing - Tracing. Press any key to quit... #62

dipa96 opened this issue Jun 29, 2023 · 2 comments

Comments

@dipa96
Copy link

dipa96 commented Jun 29, 2023

Hi, I have been experiencing problems with jnitrace. Meanwhile, thank you for developing this great tool 馃

Workspace:

  • macbook chip m2
  • Android Studio AVD Emulator (API 26 to 29 tested)
  • frida, frida-tools and frida-server 16.1.0
  • jnitrace 3.3.1

Tested App:
ViewerJNI from Google Drive Folder
You can also find a PoC, youtube video, here

My scenario:
run: jnitrace -l libnative-lib.so com.example.viewerjni and tools reply with: Tracing. Press any key to quit...

In the same time, app open and crash.

Logcat stacktrace info:

[...]
library "/vendor/lib64/egl/libGLESv1_CM_emulation.so" ("/vendor/lib64/egl/libGLESv1_CM_emulation.so") needed or dlopened by "/memfd:frida-agent-64.so (deleted)" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system/product/lib64:/system/framework:/system/app:/system/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/system/product/framework:/system/product/app:/system/product/priv-app:/data:/mnt/expand"]
[...]
Android/sdk_gphone_arm64/generic_arm64:9/PSR1.210301.009.B6/9767327:userdebug/dev-keys
[...]
channel 'dd8ad63 com.example.viewerjni/com.example.viewerjni.MainActivity (server)' ~ Channel is unrecoverably broken
@dipa96
Copy link
Author

dipa96 commented Jun 30, 2023

Looking closer, I found this issues in the repo: chame1eon/jnitrace-engine#13 .
Workaround in this case: jnitrace -m attach -l libnative-lib.so viewerjni , tool work fine now.
Do we know if anyone has solved it without using the attach method?

Cheers :)

@JustTalDevelops
Copy link

Having this same issue. Attach does seem to work somewhat, but fails to hook onto other functions etc. Is there any status or workarounds for this at the moment? thanks.

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

2 participants