Skip to content

Migrating from Auto-Update-APK

android/apk/updater is built as a replacement for Auto-Update-APK.

What stays the same

  • Your stable link is still /download/<package name>.
  • Clients are identified by the MD5 of the installed APK, which is also how Auto-Update-APK decides who may update.

What changes: the address

Apps that are already installed keep calling the old address until they are updated. To move over, ship one build that points at your android/apk/updater address. After that, every update comes from here.

  1. Upload your builds. At minimum, upload the one you are about to ship.
  2. In your app's update client, change the server address to https://www.android-apk-updater.com. Or replace the old class with the Android library, which takes the address in one line.
  3. Build and distribute that version the way you distribute updates today.
  4. Check that the new endpoint answers as your client expects with the commands in Update check and download links.

Note

The Auto-Update-APK client sends pkgname, version, md5 and id as form fields to /check, and reads have update plus a link on the next line, or no update. android/apk/updater reads the same fields, and ignores id. If you use a client other than the stock one, step 4 shows whether it matches.