From 42c2eb4ee189d9623322d5df32fa505341d0be49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20P=C3=B6hn?= Date: Thu, 28 Sep 2023 15:37:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20use=20session=20install=20in=20f?= =?UTF-8?q?ull=20build=20flavor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After some testing it could determine that the session installer works withouth any hick-ups when target sdk is set to 28. I've successfully tested this build on android emulator 34 with an app that's targeting 33. --- .../org/fdroid/fdroid/installer/SessionInstallManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/installer/SessionInstallManager.java b/app/src/main/java/org/fdroid/fdroid/installer/SessionInstallManager.java index db2a4ce3f..a67160bde 100644 --- a/app/src/main/java/org/fdroid/fdroid/installer/SessionInstallManager.java +++ b/app/src/main/java/org/fdroid/fdroid/installer/SessionInstallManager.java @@ -19,7 +19,6 @@ import androidx.core.util.ObjectsCompat; import androidx.documentfile.provider.DocumentFile; import org.apache.commons.io.IOUtils; -import org.fdroid.fdroid.BuildConfig; import org.fdroid.fdroid.Utils; import org.fdroid.fdroid.data.Apk; import org.fdroid.fdroid.data.App; @@ -216,9 +215,6 @@ public class SessionInstallManager extends BroadcastReceiver { * Returns true if the {@link SessionInstaller} can be used on this device. */ public static boolean canBeUsed(Context context) { - // We could use the SessionInstaller also with the full flavor, - // but for now we limit it to basic to limit potential damage. - if (!BuildConfig.FLAVOR.equals("basic")) return false; // We could use the SessionInstaller also on lower versions, // but the benefit of unattended updates only starts with SDK 31. // Before the extra bugs it has aren't worth it.