-
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
拿到插件的dex #816
Labels
因陈旧关闭
未解决但因长时间无人跟进而关闭
Comments
shifujun
added a commit
to shifujun/Shadow
that referenced
this issue
Feb 18, 2022
我测了一下getPackageCodePath正常返回的也是 所以#818 返回的也是插件apk的路径。 |
shifujun
added a commit
to shifujun/Shadow
that referenced
this issue
Feb 18, 2022
shifujun
added a commit
that referenced
this issue
Feb 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
插件项目有个功能是获取自己的dex文件来拿到所有的类
DexFile df = new DexFile(context.getPackageCodePath());
但是现在插件化以后,这里获得的是宿主的dex。
我现在把context.getPackageCodePath()改成宿主的解压目录,比如UnpackedPlugin/sample-manager/oDex/C0750B63-4562-4ED2-8E99-2B6CAFD9B08F_odex
但总是报错
请问获取的正确姿势应该是啥
The text was updated successfully, but these errors were encountered: