From a8509ae8331c404c8235a7a7534ecd226c6c2b4b Mon Sep 17 00:00:00 2001 From: mvp76 Date: Tue, 28 Feb 2017 22:07:40 +0100 Subject: [PATCH] Added a comment about the key being the downloadUrl --- .../java/org/fdroid/fdroid/AppUpdateStatusManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/main/java/org/fdroid/fdroid/AppUpdateStatusManager.java b/app/src/main/java/org/fdroid/fdroid/AppUpdateStatusManager.java index 3362299a6..ccb27aaea 100644 --- a/app/src/main/java/org/fdroid/fdroid/AppUpdateStatusManager.java +++ b/app/src/main/java/org/fdroid/fdroid/AppUpdateStatusManager.java @@ -23,6 +23,16 @@ import java.util.Iterator; import java.util.List; import java.util.Map; +/** + * Manages the state of APKs that are being installed or that have updates available. + *

+ * The full URL for the APK file to download is used as the unique ID to + * represent the status of the APK throughout F-Droid. The full download URL is guaranteed + * to be unique since it points to files on a filesystem, where there cannot be multiple files with + * the same name. This provides a unique ID beyond just {@code packageName} + * and {@code versionCode} since there could be different copies of the same + * APK on different servers, signed by different keys, or even different builds. + */ public class AppUpdateStatusManager { static final String BROADCAST_APPSTATUS_LIST_CHANGED = "org.fdroid.fdroid.installer.appstatus.listchange";