2018-04-06 21:50:20 -04:00
|
|
|
From d1d42f87977c344cc4e98551b073a89238c0f352 Mon Sep 17 00:00:00 2001
|
2017-08-26 15:11:54 -04:00
|
|
|
From: Tad <tad@spotco.us>
|
2018-04-06 21:50:20 -04:00
|
|
|
Date: Fri, 6 Apr 2018 14:14:03 -0400
|
2017-08-26 15:11:54 -04:00
|
|
|
Subject: [PATCH] Switch to our update server
|
|
|
|
|
2018-04-06 21:50:20 -04:00
|
|
|
Change-Id: Ief2f6ae8952de1a5a8e3ca73989fab42ca22f622
|
2017-08-26 15:11:54 -04:00
|
|
|
---
|
2018-04-06 21:50:20 -04:00
|
|
|
src/org/lineageos/updater/misc/Utils.java | 10 +---------
|
|
|
|
1 file changed, 1 insertion(+), 9 deletions(-)
|
2017-08-26 15:11:54 -04:00
|
|
|
|
|
|
|
diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java
|
2018-04-06 21:50:20 -04:00
|
|
|
index 6b15e2d..8008156 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
|
2018-04-06 21:50:20 -04:00
|
|
|
@@ -147,16 +147,8 @@ public class Utils {
|
2017-08-26 15:11:54 -04:00
|
|
|
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);
|
2018-04-06 21:50:20 -04:00
|
|
|
|
|
|
|
- String serverUrl = SystemProperties.get(Constants.PROP_UPDATER_URI);
|
|
|
|
- if (serverUrl.trim().isEmpty()) {
|
|
|
|
- serverUrl = context.getString(R.string.updater_server_url);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return serverUrl.replace("{device}", device)
|
|
|
|
- .replace("{type}", type)
|
|
|
|
- .replace("{incr}", incrementalVersion);
|
2017-10-06 20:44:56 -04:00
|
|
|
+ return "https://divestos.xyz/updater.php?base=LineageOS&device=" + device + "&inc=" + incrementalVersion;
|
2017-08-26 15:11:54 -04:00
|
|
|
}
|
|
|
|
|
2018-04-06 21:50:20 -04:00
|
|
|
public static String getChangelogURL(Context context) {
|
2017-08-26 15:11:54 -04:00
|
|
|
--
|
2018-04-06 21:50:20 -04:00
|
|
|
2.17.0
|
2017-08-26 15:11:54 -04:00
|
|
|
|