Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从API 23开始无需解压so,可直接从apk中加载 #739

Closed
shifujun opened this issue Dec 31, 2021 · 0 comments
Closed

从API 23开始无需解压so,可直接从apk中加载 #739

shifujun opened this issue Dec 31, 2021 · 0 comments
Labels
enhancement New feature or request PR welcome 欢迎贡献代码

Comments

@shifujun shifujun added enhancement New feature or request PR welcome 欢迎贡献代码 labels Dec 31, 2021
shifujun added a commit to shifujun/Shadow that referenced this issue Dec 31, 2021
todo 让解压so任务把sodir返回,从onInstallCompleted的insert中传给DB。
解压so时就把apk中路径拼好作为sodir返回。

Tencent#739
shifujun added a commit to shifujun/Shadow that referenced this issue Jan 4, 2022
重构代码以便后续根据extractNativeLibs给不同apk设置不同的soDir。

Tencent#739
shifujun added a commit to shifujun/Shadow that referenced this issue Jan 4, 2022
API大于等于23时有效。插件Manifest中设置extractNativeLibs="false",
正常的编译流程就会不压缩apk中的so文件。此时将apk路径拼接上so目录直接设置
为ClassLoader的librarySearchPath即可加载so。

参考引用见issue记录。

Tencent#739
shifujun added a commit to shifujun/Shadow that referenced this issue Jan 4, 2022
API大于等于23时有效。插件Manifest中设置extractNativeLibs="false",
正常的编译流程就会不压缩apk中的so文件。此时将apk路径拼接上so目录直接设置
为ClassLoader的librarySearchPath即可加载so。

参考引用见issue记录。

Tencent#739
shifujun added a commit that referenced this issue Jan 5, 2022
API大于等于23时有效。插件Manifest中设置extractNativeLibs="false",
正常的编译流程就会不压缩apk中的so文件。此时将apk路径拼接上so目录直接设置
为ClassLoader的librarySearchPath即可加载so。

参考引用见issue记录。

#739
@shifujun shifujun closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR welcome 欢迎贡献代码
Projects
None yet
Development

No branches or pull requests

1 participant