Discussion:
Error dlopen in android api 25 and 26 for leak tool
Tritueviet
2017-12-29 09:19:43 UTC
Permalink
Hello everyone,
I am Wall. I am developer for android.
In now, I develop a leak tool for android.
I create the libmemhook.so file and add it into system/vendor/lib
and push string "libmemhook.so" into system/vendor/etc/public.libraries.txt

and i edit environment add LD_PRELOAD = path to libmemhook.so

and restart device again.
But the device can't start.

in libmemhook.so has function: dlsym()

so how can i use dlsym in .so file ?

thank you very much!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/0a72e37d-982d-4f8d-a7fd-99d53e2b3f43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Cohn
2017-12-31 10:11:35 UTC
Permalink
I assume you have checked that same setup works as expected when you
comment out calls to *dlsym*, *dlopen* and get rid of dependency on

*libdl.so *altogether?


BR,

Alex
Post by Tritueviet
Hello everyone,
I am Wall. I am developer for android.
In now, I develop a leak tool for android.
I create the libmemhook.so file and add it into system/vendor/lib
and push string "libmemhook.so" into
system/vendor/etc/public.libraries.txt
and i edit environment add LD_PRELOAD = path to libmemhook.so
and restart device again.
But the device can't start.
in libmemhook.so has function: dlsym()
so how can i use dlsym in .so file ?
thank you very much!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/1f30cbde-7ca4-4bce-b4e7-fbbc7bc61739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...