{"action":"created","issue":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/158","labels_url":"https://api.github.com/repos/android-cn/android-discuss/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/android-cn/android-discuss/issues/158/comments","events_url":"https://api.github.com/repos/android-cn/android-discuss/issues/158/events","html_url":"https://github.com/android-cn/android-discuss/issues/158","id":73315896,"number":158,"title":"APK增量升级的可行性以及有何利弊？","user":{"login":"zmywly8866","id":1912777,"avatar_url":"https://avatars.githubusercontent.com/u/1912777?v=3","gravatar_id":"","url":"https://api.github.com/users/zmywly8866","html_url":"https://github.com/zmywly8866","followers_url":"https://api.github.com/users/zmywly8866/followers","following_url":"https://api.github.com/users/zmywly8866/following{/other_user}","gists_url":"https://api.github.com/users/zmywly8866/gists{/gist_id}","starred_url":"https://api.github.com/users/zmywly8866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmywly8866/subscriptions","organizations_url":"https://api.github.com/users/zmywly8866/orgs","repos_url":"https://api.github.com/users/zmywly8866/repos","events_url":"https://api.github.com/users/zmywly8866/events{/privacy}","received_events_url":"https://api.github.com/users/zmywly8866/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T13:31:35Z","updated_at":"2015-05-07T03:37:35Z","closed_at":null,"body":"从网上有了解到，APK也可以像Android系统一样实现增量升级，但是目前很多应用市场是不支持APK增量升级的，据我了解应用宝是支持的。请问APK增量升级为什么流行不起来？实现APK增量升级有什么问题？如果你做过，你是怎么解决这些问题的？"},"comment":{"url":"https://api.github.com/repos/android-cn/android-discuss/issues/comments/99701545","html_url":"https://github.com/android-cn/android-discuss/issues/158#issuecomment-99701545","issue_url":"https://api.github.com/repos/android-cn/android-discuss/issues/158","id":99701545,"user":{"login":"t12x3456","id":5113264,"avatar_url":"https://avatars.githubusercontent.com/u/5113264?v=3","gravatar_id":"","url":"https://api.github.com/users/t12x3456","html_url":"https://github.com/t12x3456","followers_url":"https://api.github.com/users/t12x3456/followers","following_url":"https://api.github.com/users/t12x3456/following{/other_user}","gists_url":"https://api.github.com/users/t12x3456/gists{/gist_id}","starred_url":"https://api.github.com/users/t12x3456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t12x3456/subscriptions","organizations_url":"https://api.github.com/users/t12x3456/orgs","repos_url":"https://api.github.com/users/t12x3456/repos","events_url":"https://api.github.com/users/t12x3456/events{/privacy}","received_events_url":"https://api.github.com/users/t12x3456/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T03:37:35Z","updated_at":"2015-05-07T03:37:35Z","body":"现在很多地方都有增量更新啊，比如360，这个只是服务器对于不同版本apk生成不同的diff差分文件, 比如1.0到1.1,1.2到1.3,1.1到1.3,这个肯定是有维护成本的. 至于问题，就是需要增加对差分文件的来源和完整性校验，以及完成合并后的升级apk的完整性校验，另外版本差别过大的话不推荐进行增量升级，而是全量.   如果差分使用的是开源的bisdiff,那么还需要进行一点修改，就是该工程默认没有合并或者差分后的返回值，需要自己增加，以便获取差分是否成功"}}