Smart App Updates on Google Play Store: how does it work?

后端 未结 2 522
忘了有多久
忘了有多久 2020-12-04 11:36

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

相关标签:
2条回答
  • 2020-12-04 12:14

    Step by step:

    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.

    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.

    0 讨论(0)
  • 2020-12-04 12:16

    The reason why there's no documentation is because it's all 100% done on the server side by google without any external interaction. Developers shouldn't worry at all about this functionality. Just develop your app you normally would.

    To be fair I don't believe they want anyone to know how it works because I'm assuming it's part of their intelectual property.

    0 讨论(0)
提交回复
热议问题