If F-Droid gets killed during the install/update process, then the install procedure would keep getting readded and redownloaded since it is a sticky Intent. The test is very specific so that this does not block things like installing updates with the same versionCode, which happens sometimes, and is allowed by Android. #1271