shoujian
V2EX  ›  Android

请问是否有研究Android的smart app updates的?请教其实现原理和方法

By shoujian at 2012 年 7 月 11 日 · 15306 次点击
自从看了Google I/O 2012的keynote后就对其smart app updates感兴趣,之前没有头绪,今天升级JellyBean 4.1.1 OTA包的时候解包看了下其文件,发现N多的 XXX.apk.p 文件,查了下资料,是补丁文件,但是没法再将其解包出来,个人猜测smart app updates的原理就是与这个有关,不知道群里有没有研究这个的,求指点下如何分离和合并.apk.p文件?多谢。
2 条回复  •  1970-01-01 08:00:00 +08:00
meteor
   1
meteor  
   2012 年 7 月 12 日
见Android Developer网站
https://developer.android.com/intl/zh-CN/about/versions/jelly-bean.html

Smart App Updates
Smart app updates is a new feature of Google Play that introduces a better way of delivering app updates to devices. When developers publish an update, Google Play now delivers only the bits that have changed to devices, rather than the entire APK. This makes the updates much lighter-weight in most cases, so they are faster to download, save the device’s battery, and conserve bandwidth usage on users’ mobile data plan. On average, a smart app update is about 1/3 the size of a full APK update.

其实只是Google Play上对APK更新的改动机制.
不推整个APK了.只更新你需要的apk模块.
imstand
   2
imstand  
   2012 年 7 月 12 日
很可能是对上传的apk做diff,可以是整个apk,也可能是打散的碎片。
© 2026 V2EX · 26ms · 3.9.8.5