android - 像百度手机助手对于app的升级,是如何做到能比实际软件大小小的?
大家讲道理
大家讲道理 2017-04-17 11:21:14
0
2
326

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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
Ty80

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(好像是这个版本)的新特性,跟百度无关。具体你可以搜索下。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!