This commit is contained in:
Tad 2017-10-16 14:25:36 -04:00
parent 223561a3cb
commit c4cdf17325
2 changed files with 7 additions and 7 deletions

View file

@ -1,18 +1,18 @@
From 6c0a56705b258953b317295c0c659c2e47c99dbb Mon Sep 17 00:00:00 2001
From 5655fa77da654b0a638670506d07137796bc3e07 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Fri, 6 Oct 2017 16:55:04 -0400
Date: Mon, 16 Oct 2017 14:18:53 -0400
Subject: [PATCH] Switch to our update server
Change-Id: I826437d2ec6c3fb5358ae7ab1d369da538bd2eeb
Change-Id: I1e247d3fb6c9f2878842c0d6957792bb773c494d
---
src/org/lineageos/updater/misc/Utils.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java
index 7713993..014f989 100644
index e5cac4f..6555430 100644
--- a/src/org/lineageos/updater/misc/Utils.java
+++ b/src/org/lineageos/updater/misc/Utils.java
@@ -144,14 +144,9 @@ public class Utils {
@@ -144,15 +144,10 @@ public class Utils {
}
public static String getServerURL(Context context) {
@ -21,7 +21,8 @@ index 7713993..014f989 100644
- serverUrl = context.getString(R.string.conf_update_server_url_def);
- }
String incrementalVersion = SystemProperties.get(Constants.PROP_BUILD_VERSION_INCREMENTAL);
String device = SystemProperties.get(Constants.PROP_DEVICE);
String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
SystemProperties.get(Constants.PROP_DEVICE));
- String type = SystemProperties.get(Constants.PROP_RELEASE_TYPE).toLowerCase(Locale.ROOT);
- return serverUrl + "/v1/" + device + "/" + type + "/" + incrementalVersion;
+ return "https://divestos.xyz/updater.php?base=LineageOS&device=" + device + "&inc=" + incrementalVersion;