Google Play 商店上的智能应用更新:它是如何工作的? [英] Smart App Updates on Google Play Store: how does it work?

查看:15
本文介绍了Google Play 商店上的智能应用更新:它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Play 商店支持(自 2012 年 8 月起)一项称为智能应用更新的新功能,该功能允许在升级应用时仅下载必要的增量".

The Google Play store supports (since Aug 2012) a new feature called Smart App Updates, that allows downloading only the necessary "delta" when upgrading an app.

我没有为开发人员找到有关此功能的文档,因此我不知道如何优化我的应用程序以确保它从这个出色的机制中受益.

I have found no documentation for developers regarding this feature, thus I don't know how to optimize my app to make sure it benefits from this great mechanism.

那么,有谁知道:

  • 有哪些技术影响(如果有的话)对开发者来说是值得了解的?(我想在用户的设备上构建了一个新的全尺寸 APK,或者未更改的数据可能存储在其他地方?)
  • 重复利用以前版本中未更改的数据是否仅限于某些资源?(如 asset 文件夹中的文件)
  • What are the technical impacts (if any) that would be good to know for the developers? (I suppose a new, full-size APK is built on the user's device, or maybe the unchanged data is stored somewhere else?)
  • Is the reutilization of unchanged data from the previous versions limited to certain resources? (like files in the asset folder)

推荐答案

一步一步:

  1. GDIFF,一种增量编码算法,用于计算旧应用程序版本和新应用程序版本.这是在服务器上完成的边.这个计算出的差异通常被称为补丁文件.
  2. 补丁文件被传输到设备中.
  3. Google Play Store 应用使用补丁文件和旧应用来构建新版本的应用.
  4. 新版本已安装在设备上.
  1. GDIFF, a delta encoding algorithm, is used to compute the difference between the old application version and the new one. This is done on the server side. This computed difference is usually referred to as a patch file.
  2. The patch file is transferred to the device.
  3. The Google Play Store app uses the patch file and the old application to construct the new version of the application.
  4. The new version is installed on the device.

目前,补丁大小是新应用程序版本大小的 25%(平均).因此,您平均可以节省 75% 的流量.权衡是您必须在终端设备上进行更多计算才能部署接收到的补丁,具体取决于增量编码技术.GDIFF 非常简单,并且开销最小.差异是在 APK 包之间计算的(使用 APK 中的所有信息).如前所述,开发人员无需做任何事情即可从这项新功能中受益.

Currently, patch size is 25% of the new application version size (on average). Thus, you get 75% traffic saving on average. The trade off is that you have to do more computations on the end device to deploy the received patch, depending on the delta encoding technique. GDIFF is extremely simple, and has minimal overhead. The difference is computed between APK packages (all information in the APK is used). As was mentioned, developers don't need to do anything to benefit from this new feature.

这篇关于Google Play 商店上的智能应用更新:它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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