How to see ABI of android static library?

Viewed 450

Is there any way of inspecting static library for android? For example for iOS static libraries we can simply call :

lipo -info mylib.a 

and it will display the architectures of mylib.a library. If there any similar way for android static library to see the ABIs of the library? If I run lipo -info on android static library I get error.

Any similar command? Thanks in advance.

1 Answers

I can think of two methods based on what is available on your host machine.

  1. Use objdump. Something like objdump -x somelib.a | grep arch

Expected output: architecture: < arch name>

  1. Use readelf. Something like readelf -h somelib.a | grep Class

Expected output: Class: <32/64 bit etc>

Related