-
Notifications
You must be signed in to change notification settings - Fork 124
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
Command \dl does not work on Android #139
Comments
The issue might be related to this new path policy: static constexpr const char * kPublicNativeLibrariesSystemConfigPathFromRoot =
"/etc/public.libraries.txt" ;
static constexpr const char * kPublicNativeLibrariesVendorConfig =
"/vendor/etc/public.libraries.txt" ; https://source.android.com/devices/architecture/vndk/linker-namespace Different paths OnePlus3:/system/vendor/lib64 # md5sum libsecureui.so
30ed0fd669dcac6847144755fddb8f95 libsecureui.so
OnePlus3:/system/vendor/lib64 # md5sum /data/local/tmp/libsecureui.so
30ed0fd669dcac6847144755fddb8f95 /data/local/tmp/libsecureui.so Working [0x00000000]> \dl /system/vendor/lib64/libsecureui.so
RTLD_GLOBAL:8
RTLD_LAZY :1
0x6f77659619bd7165
[0x00000000]> \dl /data/local/tmp/libsecureui.so
RTLD_GLOBAL:8
RTLD_LAZY :1
Failed to load: /data/local/tmp/libsecureui.so |
Related: frida/frida#448 (comment) AFAIK, in Android 7, Google introduced "namespaces" for dlopen, you can't load any dynamic library outside the app namespace or it will fault. Frida itself get around this using a neat trick, take a look at the android injection code for a reference, maybe you can adopt that to your hooking logic. |
\dl doesn't work on Android at all. I tried with both 12.5.x and 12.6.1. With \dl, I get: With \dl2, it shows "done", but then the process crashes with an error: backtrace: |
Have you tried Android 4.4 or Android 6.x? The issue comes after Android 7.0 with the namespaces.
Try to recompile Frida without stripping to get a symbolicated backtrace. If you want, I can share the latest Frida server compiled with symbols. |
Closed due to #149 |
iOS/macOS
GNU/Linux
Android
The text was updated successfully, but these errors were encountered: