[app] Disable priv-ext by default for basic flavor

as it isn't allowed to use it and the client isn't currently able to detect this, so all installs fail by default.
This commit is contained in:
Torsten Grote 2023-06-02 15:07:21 -03:00
parent fa3686dd81
commit 1599a4d822
No known key found for this signature in database
GPG Key ID: 3E5F77D92CF891FF
1 changed files with 3 additions and 1 deletions

View File

@ -209,7 +209,9 @@ public final class Preferences implements SharedPreferences.OnSharedPreferenceCh
* @see org.fdroid.fdroid.views.PreferencesFragment#initPrivilegedInstallerPreference()
*/
public boolean isPrivilegedInstallerEnabled() {
return preferences.getBoolean(PREF_PRIVILEGED_INSTALLER, true);
// only use priv-ext by default with full flavor, because basic isn't allowed to use it
// and there's a bug with auto-detection: https://gitlab.com/fdroid/fdroidclient/-/issues/2593
return preferences.getBoolean(PREF_PRIVILEGED_INSTALLER, BuildConfig.FLAVOR.equals("full"));
}
/**