I need to see which methods are available in a .so file so i can use them like private native int JNIMethod(String args);
in Java.
Is this possible? if yes, How?
Thanks
Asked
Active
Viewed 32 times
1

Mansoor
- 2,357
- 1
- 17
- 27

Amirhossein
- 179
- 4
- 18
1 Answers
1
You can use nm, objdump or readelf
to see the exposed functions in a .so file. Example:
objdump -T your_shared_object.so | c++filt
Piping the result to c++filt
is only necessary if the names are mangled.

Mansoor
- 2,357
- 1
- 17
- 27