像百度手机助手对于app的升级,是如何做到能比实际软件大小小的?

据说是增量升级,但是还是不是很懂,不是前后两个都经过编译链接的产物,可以简单直接做加减法吗?

阅读 5.4k
2 个回答

Google I/O 2012 时就已经宣布对 android2.3+ 的 Google Play 实行增量升级(Smart app updates)

Smart app updates: For Android 2.3, Gingerbread devices and up, when
there is a new version of an app in Google Play, only the parts of the
app that changed are downloaded to users’ devices. On average, a smart
app update is a third the size of a full apk update. This means your
users save bandwidth and battery and the best part? You don’t have to
do a thing. This is automatically enabled for all apps downloaded from
Google Play.1

实现来说是通过 bsdiff 来进行差分,详细的分析可以参见 这篇 blog.

这是android4.1(好像是这个版本)的新特性,跟百度无关。具体你可以搜索下。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题