本文介绍了在Google Play商店中使用补丁和更新来减少APK大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近了解到Google正在使用逐个文件修补和另一种算法 BsDiff-Delta更新,该算法修补apk文件,并且仅将更新大小的apk提供给从Play商店下载.

I recently read about that Google is using File-by-File Patching and another one algorithm BsDiff - Delta update which patches apk files and gives only update sized apk to download from Play Store.

我浏览了以下博客和链接:

I went through below blogs and links:

1) https://android-developers.googleblog.com/2016/12/saving-data-reducing-the-size-of-app-updates-by-65-percent.html

2) https://github.com/andrewhayden/archive -patcher/blob/master/README.md 用于逐个文件修补"

2) https://github.com/andrewhayden/archive-patcher/blob/master/README.mdfor "File-by-File Patching"

3) https://android -developers.googleblog.com/2016/07/improvements-for-smaller-app-downloads.html 进行"BsDiff"补丁

3) https://android-developers.googleblog.com/2016/07/improvements-for-smaller-app-downloads.html for "BsDiff" patching

我在Linux上安装了BsDiff,并将其应用在新旧apk上,但它的大小与应用相同,并且在Play商店更新时,它显示的大小与安装时相同.

I installed BsDiff on my Linux and applied it on old and new apk but it remains the same size of the app and also while I update it on Play Store, it shows full size as at the time of install.

我还下载了逐个文件修补"代码,并通过它制作了apk,并在Play商店中对其进行了更新,但同样,apk的大小没有减少.

Also, I downloaded "File-by-File Patching" code and made apk through it and updated it on Play Store but the same, no reduced size of apk.

因此,如果有人这样做或对此有所了解,请给出答案,以便我可以在Play商店中进行尺寸缩小的应用程序更新.

So, If anybody who has done this or know about this, Please give your answer so I can make my app update of reduced size app update on Play Store.

推荐答案

您无需执行任何操作即可触发这些APK大小的减小以进行更新.您绝对不需要下载BS Diff或修补代码. Play会自动为您执行此操作.但是,根据应用程序的流行程度,可以根据需要应用某些优化.因此,如果您的应用不太流行,则可能需要一段时间才能看到其优势.

You don't need to do anything to trigger these APK size reductions for updates. You definitely don't need to download BS Diff or the patching code. Play will do this automatically for you. However some optimizations are applied on demand depending on how popular an app is. So if your app is not very popular it might take a little while to see the advantages.

如果您希望Google能够应用尽可能多的优化,则应该选择 Google Play应用签名(如果尚未安装).这使Google Play拥有最优化应用程序更新的能力,尽管它现在不影响这些优化,但将来可能会如此.

If you want Google to be able to apply as many optimizations as possible, you should opt in to Google Play App Signing if you haven't already. This gives Google Play the most ability to optimize app updates, and while it doesn't affect these optimizations right now it may in future.

这篇关于在Google Play商店中使用补丁和更新来减少APK大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:18