Android软件包管理器仅解压缩libxxx.so命名库 [英] Android package manager only unpacks libxxx.so named libraries
问题描述
我制作了一个jni库,可以使用dlopen动态加载插件,插件库文件具有不同的命名,例如zzz_abc.so
.
I've made a jni library that dynamically loads plugins using dlopen, plugin library files have a different naming e.g. zzz_abc.so
.
eclipse和ant在apk中正确捆绑了这些文件,但是android packagemanager只解压缩名为libxxx.so
的文件,其他文件名模式被忽略,也许在调试中,gdbserver已添加并解压缩到我的4.1手机上(但不包括) 4.4 genymotion模拟器).
eclipse and ant are correctly bundling these files in the apk, but the android packagemanager only unpacks files named libxxx.so
, other filename patterns are ignored, perhaps in debug, gdbserver is added and unpacked on my 4.1 phone (but not on 4.4 genymotion emulator).
有什么魔术"可以控制这种行为吗?
There is something "magic" to control this behavior?
推荐答案
I've verified and unfortunately the native library installer only copies filenames like libxxx.so
and gdbserver
, if someone is interested the code is in frameworks/base/core/jni/com_android_internal_content_NativeLibraryHelper.cpp.
这篇关于Android软件包管理器仅解压缩libxxx.so命名库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!