mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-17 22:00:40 -04:00
Updater: Add initial Tor support
This commit is contained in:
parent
289b110d8f
commit
b50352bc8e
8 changed files with 372 additions and 13 deletions
|
@ -1,18 +1,18 @@
|
|||
From 4727712ba79e02a706735e0f01e094a0e4a8deb2 Mon Sep 17 00:00:00 2001
|
||||
From 03e04247e9416a901fbb30b742d985ac6c801598 Mon Sep 17 00:00:00 2001
|
||||
From: Tad <tad@spotco.us>
|
||||
Date: Fri, 6 Apr 2018 14:14:03 -0400
|
||||
Date: Thu, 20 Sep 2018 16:43:46 -0400
|
||||
Subject: [PATCH] Switch to our update server
|
||||
|
||||
Change-Id: Ief2f6ae8952de1a5a8e3ca73989fab42ca22f622
|
||||
Change-Id: I26dc2942736cf0cfe4e7b92ddfdd04b9d74dbae5
|
||||
---
|
||||
src/org/lineageos/updater/misc/Utils.java | 10 +---------
|
||||
1 file changed, 1 insertion(+), 9 deletions(-)
|
||||
src/org/lineageos/updater/misc/Utils.java | 10 ++--------
|
||||
1 file changed, 2 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java
|
||||
index 67895da..d4d3379 100644
|
||||
index 171c2cc..d97a492 100644
|
||||
--- a/src/org/lineageos/updater/misc/Utils.java
|
||||
+++ b/src/org/lineageos/updater/misc/Utils.java
|
||||
@@ -147,16 +147,8 @@ public class Utils {
|
||||
@@ -149,16 +149,10 @@ 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));
|
||||
|
@ -22,14 +22,15 @@ index 67895da..d4d3379 100644
|
|||
- if (serverUrl.trim().isEmpty()) {
|
||||
- serverUrl = context.getString(R.string.updater_server_url);
|
||||
- }
|
||||
-
|
||||
+ String server = "0OTA_SERVER_CLEARNET0";
|
||||
|
||||
- return serverUrl.replace("{device}", device)
|
||||
- .replace("{type}", type)
|
||||
- .replace("{incr}", incrementalVersion);
|
||||
+ return "0OTASERVER0?base=LineageOS&device=" + device + "&inc=" + incrementalVersion;
|
||||
+ return server + "?base=LineageOS&device=" + device + "&inc=" + incrementalVersion;
|
||||
}
|
||||
|
||||
public static String getChangelogURL(Context context) {
|
||||
--
|
||||
2.18.0
|
||||
2.19.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue