-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Labels
Comments
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.android.com/guide/topics/manifest/application-element#extractNativeLibs
https://developer.android.com/reference/android/R.attr#extractNativeLibs
https://cs.android.com/android/_/android/platform/frameworks/base/+/dec4688f40b0018fbd1f00db05581966f531d88f
解压so很耗时,这个优化会比较值得。
The text was updated successfully, but these errors were encountered: