Delta更新,适用于Android App更新 [英] Delta update for Android App updates

查看:330
本文介绍了Delta更新,适用于Android App更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置自己的服务器来托管apk文件,这些文件可用于客户端应用程序中的安装和更新.

I am trying to setup my own Server to host apk files which will be available for installs and updates in the client App.

在APK的新版本更新中,只有更新的部分应在客户端下载.我可以在服务器端使用"bsdiff"生成补丁文件.但是在客户端,我应该如何将补丁文件与原始apk合并并安装更新.

On new version update of apk, only the updated part should get downloaded at the client end. I am able to generate a patch file using "bsdiff" at the server end. But at the client, how should I merge the patch file with the original apk and install the update.

推荐答案

根据您的问题,您似乎正在寻找某种修补系统.通常,Google Play商店需要对此进行管理.当您上传新版本的APK时,它只会将差异下载到客户端设备上,从而为客户保存数据.但是,此操作的合并是在Mobile本身上完成的.

Based on your question, it looks like you are looking for some kind of patching system. Normally Google play store takes of managing this. When you upload a new version of APK, it only download the difference on client's device which saves data for customers. However the merging of this done on Mobile itself.

由于您未使用Google Play商店,因此唯一可用的方法可能是补丁系统,例如 AndFix .可以在此 SO 上找到更多选项.他们中的大多数都需要进行一些代码更改.

Since you are not using google play store, the only way available could be a patching system like AndFix. Some more options can be found on this SO. Most of them require some code changes.

您还可以遵循Google描述的扩展文件的概念.您应该能够模仿这种方法.

You can also follow the concept of expansion files described by Google. You should be able to mimic the approach.

注意:如果您通过Google Play商店进行分发而不使用Google Play的更新机制,则Google Play政策不鼓励这种方法.如果您打算稍后在Play商店中分发应用,则需要小心

Note: Google play policy discourages this approaches if you are distributing it though Google play store and not utilizing Google Play's update mechanism. You need to be careful in case you are planning to distribute your app through play store in later stages

这篇关于Delta更新,适用于Android App更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆