Search for loaded modules recursively in all system lib sub-directories on Android.
Android native application may load modules from such directories: /system/lib, /system/lib/egl (libEGL_emulation.so,..), /system/lib/hw (gralloc.goldfish.so).
Details
Details
- Reviewers
tberghammer
Diff Detail
Diff Detail
Event Timeline
Comment Actions
How does the dynamic linker find the shared libraries to load? Does it also
perform this recursive directory search? Seems like an odd design choice...
Comment Actions
Number of subdirectories is pretty small and I believe it's acceptable strategy to traverse all child directories in order to find a match - if new library subdirectories will be added in future such logic will still work without need to change.
Seems like an odd design choice...
What approach would you suggest here?