From 90dec8c4cbfe233843a06a40d11cfb58395c772c Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Mon, 21 Jan 2019 15:46:48 +0100 Subject: [PATCH 1/2] Move to dev OTA channel --- src/org/lineageos/updater/misc/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 44dbecfd..213de768 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -148,7 +148,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()) { -- GitLab From 2933be448fa36cd07030479e975063850528564f Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Wed, 23 Jan 2019 09:10:00 +0100 Subject: [PATCH 2/2] Disable release type verification --- src/org/lineageos/updater/misc/Utils.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 213de768..14ff4b9a 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -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; } -- GitLab