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

可以直接加载第三方apk吗? #12

Closed
flyuuo9 opened this issue Jun 21, 2019 · 2 comments
Closed

可以直接加载第三方apk吗? #12

flyuuo9 opened this issue Jun 21, 2019 · 2 comments

Comments

@flyuuo9
Copy link

flyuuo9 commented Jun 21, 2019

rt。还是说加载的模块必须依赖于shadow编译出来?

@shifujun
Copy link
Collaborator

这要看第三方apk是如何加载的。

如果是说拿一个应用市场上下载的、可以正常安装的apk作为“第三方apk”,那么不可以直接加载。必须是Shadow编译出来的。Shadow会在编译时插入Transform过程,修改应用的字节码,插入Shadow中间层。

如果是说通过另外一个其他的插件框架加载它原本可以支持的apk,那还是有可能支持的。我没有尝试过。但是可以这样理解,Shadow只是将宿主的一部分代码动态化了,插件代码相当于宿主代码的一部分。所以其他插件框架接入宿主还是接入Shadow插件中,其实是没区别的。

@GaoZhenGit
Copy link

哈哈,能直接加载第三方apk的话,估计就只有vitrual apk了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants