Skip to content
Last updated: November 22, 2023

Get Loaded Native Libraries

Using Process Memory Maps

The file /proc/<pid>/maps contains the currently mapped memory regions and their access permissions. Using this file we can get the list of the libraries loaded in the process.

# cat /proc/9568/maps
12c00000-52c00000 rw-p 00000000 00:04 14917                              /dev/ashmem/dalvik-main space (region space) (deleted)
6f019000-6f2c0000 rw-p 00000000 fd:00 1146914                            /data/dalvik-cache/arm64/system@[email protected]
7327670000-7329747000 r--p 00000000 fd:00 1884627                        /data/app/
733494d000-7334cfb000 r-xp 00000000 fd:00 1884542                        /data/app/

Using Frida

You can retrieve process related information straight from the Frida CLI by using the Process command. Within the Process command the function enumerateModules lists the libraries loaded into the process memory.

[Huawei Nexus 6P::sg.vantagepoint.helloworldjni]-> Process.enumerateModules()
        "base": "0x558a442000",
        "name": "app_process64",
        "path": "/system/bin/app_process64",
        "size": 32768
        "base": "0x78bc984000",
        "name": "",
        "path": "/system/lib64/",
        "size": 2011136