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

35 lines
1.5 KiB
Diff
Raw Normal View History

2017-10-16 14:25:36 -04:00
From 5655fa77da654b0a638670506d07137796bc3e07 Mon Sep 17 00:00:00 2001
2017-08-26 15:11:54 -04:00
From: Tad <tad@spotco.us>
2017-10-16 14:25:36 -04:00
Date: Mon, 16 Oct 2017 14:18:53 -0400
2017-08-26 15:11:54 -04:00
Subject: [PATCH] Switch to our update server
2017-10-16 14:25:36 -04:00
Change-Id: I1e247d3fb6c9f2878842c0d6957792bb773c494d
2017-08-26 15:11:54 -04: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
2017-10-16 14:25:36 -04:00
index e5cac4f..6555430 100644
2017-08-26 15:11:54 -04:00
--- a/src/org/lineageos/updater/misc/Utils.java
+++ b/src/org/lineageos/updater/misc/Utils.java
2017-10-16 14:25:36 -04:00
@@ -144,15 +144,10 @@ public class Utils {
2017-08-26 15:11:54 -04:00
}
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);
2017-10-16 14:25:36 -04:00
String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE,
SystemProperties.get(Constants.PROP_DEVICE));
2017-08-26 15:11:54 -04:00
- 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 15:11:54 -04:00
}
public static void triggerUpdate(Context context, String downloadId) {
--
2.14.2
2017-08-26 15:11:54 -04:00