Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92213704 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

[OTA] Force OTA channel to dev (TO REVERT)

parent a1bd6c3c
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -100,10 +100,6 @@ public class Utils {
            Log.d(TAG, update.getName() + " is older than/equal to the current build");
            return false;
        }
        if (!update.getType().equalsIgnoreCase(SystemProperties.get(Constants.PROP_RELEASE_TYPE))) {
            Log.d(TAG, update.getName() + " has type " + update.getType());
            return false;
        }
        return true;
    }

@@ -148,7 +144,7 @@ public class Utils {
        String incrementalVersion = SystemProperties.get(Constants.PROP_BUILD_VERSION_INCREMENTAL);
        String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
                SystemProperties.get(Constants.PROP_DEVICE));
        String type = SystemProperties.get(Constants.PROP_RELEASE_TYPE).toLowerCase(Locale.ROOT);
        String type = "dev";

        String serverUrl = SystemProperties.get(Constants.PROP_UPDATER_URI);
        if (serverUrl.trim().isEmpty()) {