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

补丁生效咨询 #64

Closed
ghost opened this issue Mar 30, 2017 · 1 comment
Closed

补丁生效咨询 #64

ghost opened this issue Mar 30, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 30, 2017

Robust版本:0.3.2
Gradle版本:2.14.1
系统:Mac
Hi,我这边尝试了demo,有些困惑的地方需要咨询一下。我把补丁文件push到sdcard,点击patch之后补丁会生效。如果杀死app,重新进入重新点击patch,补丁不生效。看了源码发现在PatchExecutor类中的patch方法中会删除补丁文件。想了解这么处理的原因是什么?每次都需要从localFile 处理到tempFile么

@c-kunwu
Copy link
Collaborator

c-kunwu commented Mar 31, 2017

这样是考虑到补丁自身的安全性,在加载前会通过verifyPatch对网络下载的补丁文件进行校验、拷贝等相关的处理,PatchManipulate相关的接口可以根据你们自己的需要实现

@c-kunwu c-kunwu closed this as completed Mar 31, 2017
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

1 participant