Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see ABI of android static library?

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.

like image 610
user123445151156 Avatar asked Oct 23 '25 11:10

user123445151156


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>

like image 170
manishg Avatar answered Oct 26 '25 01:10

manishg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!