-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
AndResGuard is promoting some bad practices #233
Comments
Totally agree!
Feel free to contact me if there's any other harmful behavior. |
Awesome, thank you very much for the prompt response! |
great discussion, mark this! |
对于发布于Google Play的APP,建议不要使用7Zip压缩,因为这个会导致Google Play的优化Patch算法失效 这个优化算法有什么作用,没了会有什么影响呢? |
升级包会变大
…On Fri, Sep 20, 2019, 7:53 PM 850636558myj ***@***.***> wrote:
对于发布于Google Play的APP,建议不要使用7Zip压缩,因为这个会导致Google Play的优化Patch算法失效
这个优化算法有什么作用,没了会有什么影响呢?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#233?email_source=notifications&email_token=AADO6YX4M257RZLQBQSW54LQKWECJA5CNFSM4ESJ4VU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7II6FI#issuecomment-533761813>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADO6YRUOGYFKPVS2IDPSOTQKWECJANCNFSM4ESJ4VUQ>
.
|
升级后的包也是我们自己上传的 ,升级包会变大是什么意思呢? 我们上传上去之后,gp还会帮我们压缩一次么? |
使用google play升级apk的时候,会比较手机已经安装的apk和play上最新的apk差异,只会下发一个比较小的patch来升级apk。 |
I like the idea of having a toolbox that lets you further optimize your APK, but some of the "optimizations" offered by AndResGuard go against good practices:
there are good reasons why some files in the APK are not compressed, such as resources.arsc or native libraries (*.so/dll), so they can be read directly from APK at runtime. By offering/suggesting adding compression to them you in fact prevent optimization and degrade the experience at runtime. Ideally AndResGuard should not compress resources.arsc or at least add an explanation in the manual of why it's not a good idea.
recompressing the APK with 7zip makes little sense for APKs distributed via Play, as it might prevent some optimizations such as File-by-file patches, which greatly reduce download size for updates. Also the initial download from Play is compressed anyway, so this andresguard feature would only affect the APK size on disk and to a small degree. At the very least you shouldn't guide developers who distribute on Play to use 7zip recompression
The text was updated successfully, but these errors were encountered: