1

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

Mansoor
  • 2,357
  • 1
  • 17
  • 27
Amirhossein
  • 179
  • 4
  • 18

1 Answers1

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