如何本地库的APK文件的一部分 [英] How Native Libraries are part of the APK file

查看:138
本文介绍了如何本地库的APK文件的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

APK文件包括Dalvik的可执行文件,资源和本地Libraries.How做的Dalvik机code包含抽象code等这些本地库?那只会让因为如果他们是在机器code像DLL或LIB的库。

The APK file consists of the Dalvik executable, Resources and Native Libraries.How does Dalvik machine code contain abstraction code such as these native libraries? It would only make since if they are libraries in machine code like DLL or LIB's.

推荐答案

本机库交付.so文件(特别是,ELF动态库,因为它通常在Linux上),包含在APK(这是​​说zip文件中)容器中。

The native libraries are delivered as .so files (specifically, ELF dynamic libraries as it typical on Linux), contained within the APK (which is to say zip file) container.

在安装过程中,适用于设备的架构库(假设匹配的一个是在APK提供)被自动复制出来的APK容器到应用程序的私有目录,它可以在运行时动态连接器使用的。

During install, a library suitable for the device's architecture (assuming a matching one is available in the APK) is automatically copied out of the apk container into the app's private directory, where it can be used at runtime by the dynamic linker.

这篇关于如何本地库的APK文件的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆