DivestOS/Patches/LineageOS-14.1/android_packages_apps_Updater/0001-Server.patch

34 lines
1.4 KiB
Diff
Raw Normal View History

From 6c0a56705b258953b317295c0c659c2e47c99dbb Mon Sep 17 00:00:00 2001
2017-08-26 19:11:54 +00:00
From: Tad <tad@spotco.us>
Date: Fri, 6 Oct 2017 16:55:04 -0400
2017-08-26 19:11:54 +00:00
Subject: [PATCH] Switch to our update server
Change-Id: I826437d2ec6c3fb5358ae7ab1d369da538bd2eeb
2017-08-26 19:11:54 +00:00
---
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
2017-08-26 19:11:54 +00:00
--- a/src/org/lineageos/updater/misc/Utils.java
+++ b/src/org/lineageos/updater/misc/Utils.java
@@ -144,14 +144,9 @@ public class Utils {
}
public static String getServerURL(Context context) {
- String serverUrl = SystemProperties.get(Constants.PROP_UPDATER_URI);
- if (serverUrl.trim().isEmpty()) {
- 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 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;
2017-08-26 19:11:54 +00:00
}
public static void triggerUpdate(Context context, String downloadId) {
--
2.14.2
2017-08-26 19:11:54 +00:00