Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the actual use of .so file in android? [duplicate]

I want to implement hangout like chat into my application. I have been using opentok library. In that i have seen libopentok.so file. Can anyone tell me what is that exact usage of libopentok.so file.

like image 579
Bakya Avatar asked Apr 15 '16 06:04

Bakya


People also ask

What are .so files used for?

A file with the . SO file extension is a Shared Library file. They contain information that can be used by one or more programs to offload resources so that the application(s) calling the SO file doesn't have to actually provide the file.

What does .so extension mean?

Files with the “. so” extension are dynamically linked shared object libraries. These are often referred to more simply as shared objects, shared libraries, or shared object libraries. Shared object libraries are dynamically loaded at run time.

Can you open .so files?

An . so file is a binary file used as a native library on Android. Normally it's a part of an Android application. If you want to see its content, you need to open it as a binary file in a binary (hex) viewer.


1 Answers

In Android, we are able to use Native code (C++).

The Android NDK (Native Development Kit) compiles this code into .so files.

One of the examples of .so files are:

Application Binary Interface (ABI): The ABI defines exactly how your app's machine code is expected to interact with the system at runtime. The NDK builds .so files against these definitions. Different ABIs correspond to different architectures: The NDK includes ABI support for ARMEABI (default), MIPS, and x86. For more information, see ABI Management.

Android's developer site outlines this perfectly: Android Concepts (NDK)

like image 148
TejjD Avatar answered Oct 06 '22 19:10

TejjD