Android 应用程序更新的增量更新 [英] Delta update for Android App updates

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

问题描述

我正在尝试设置自己的服务器来托管 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.

你也可以按照谷歌描述的扩展文件的概念.您应该能够模仿这种方法.

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

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

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