mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-27 08:29:31 -05:00
4ce35a3c60
Fixed up: LineageOS-16.0/android_packages_apps_Backgrounds/308977.patch LineageOS-16.0/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch LineageOS-17.1/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch LineageOS-18.1/android_packages_apps_Settings/0001-Captive_Portal_Toggle.patch Must review again: LineageOS-14.1/android_packages_apps_PackageInstaller/64d8b44.patch Signed-off-by: Tad <tad@spotco.us>
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Thu, 20 Sep 2018 16:43:46 -0400
|
|
Subject: [PATCH] Switch to our update server
|
|
|
|
Change-Id: I26dc2942736cf0cfe4e7b92ddfdd04b9d74dbae5
|
|
---
|
|
src/org/lineageos/updater/misc/Utils.java | 11 ++---------
|
|
1 file changed, 2 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java
|
|
index 0aa5fd5..0b41c25 100644
|
|
--- a/src/org/lineageos/updater/misc/Utils.java
|
|
+++ b/src/org/lineageos/updater/misc/Utils.java
|
|
@@ -154,16 +154,9 @@ 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 server = "0OTA_SERVER_CLEARNET0";
|
|
|
|
- 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);
|
|
+ return server + "?base=LineageOS&device=" + device + "&inc=" + incrementalVersion;
|
|
}
|
|
|
|
public static String getUpgradeBlockedURL(Context context) {
|
|
--
|
|
2.31.1
|
|
|