summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralk3pInjection <webmaster@raspii.tech>2022-02-05 22:28:50 +0800
committeralk3pInjection <webmaster@raspii.tech>2022-05-01 21:55:20 +0800
commit551c29b4c117154a8d3d2fe0b74284f4560d281a (patch)
tree374bf42d38724a169520e02ea74e2c5c917f1fcf
parentb7b788d57c1adea61f6d84bc246ab8895f53178d (diff)
Updater: Initial adaptation for Project ICE
Change-Id: I81df1b1b426c22fde6ced1a8167019b9fd35a00d
-rw-r--r--res/values/strings.xml10
-rw-r--r--src/org/lineageos/updater/UpdatesActivity.java3
-rw-r--r--src/org/lineageos/updater/misc/Constants.java6
3 files changed, 9 insertions, 10 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index ce5ef9a..751c3fb 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -20,11 +20,11 @@
<!-- Directory where the update files will be downloaded and stored.
WARNING: The application can and will delete any unknown file. -->
- <string name="download_path" translatable="false">/data/lineageos_updates/</string>
+ <string name="download_path" translatable="false">/data/ota_package/</string>
<!-- Directory where the downloads will be exported to.
The path is relative to the root of the external storage.-->
- <string name="export_path" translatable="false">LineageOS updates/</string>
+ <string name="export_path" translatable="false">Exported updates/</string>
<!--
Optional placeholders replaced at runtime:
@@ -32,7 +32,7 @@
{type} - Build type
{incr} - Incremental version
-->
- <string name="updater_server_url" translatable="false">https://download.lineageos.org/api/v1/{device}/{type}/{incr}</string>
+ <string name="updater_server_url" translatable="false">https://otafsg-cost.project-ice.org/api/v1/{device}/{type}/{incr}</string>
<string name="verification_failed_notification">Verification failed</string>
<string name="verifying_download_notification">Verifying update</string>
@@ -75,7 +75,7 @@
<string name="menu_copy_url">Copy URL</string>
<string name="menu_export_update">Export update</string>
<string name="menu_show_changelog">Show changelog</string>
- <string name="menu_changelog_url" translatable="false">https://download.lineageos.org/<xliff:g id="device_name">%1$s</xliff:g>/changes</string>
+ <string name="menu_changelog_url" translatable="false">https://otafsg-cost.project-ice.org/changelog/<xliff:g id="device_name">%1$s</xliff:g></string>
<string name="menu_ab_perf_mode">Prioritize update process</string>
<string name="menu_update_recovery">Update recovery</string>
<string name="toast_forced_update_recovery">It is impossible to disable Project ICE Recovery updates on this device.</string>
@@ -147,7 +147,7 @@
<string name="blocked_update_dialog_title">Update blocked</string>
<string name="blocked_update_dialog_message">This update cannot be installed using the updater app. Please read <xliff:g id="info_url">%1$s</xliff:g> for more information.</string>
- <string name="blocked_update_info_url" translatable="false">http://wiki.lineageos.org/devices/<xliff:g id="device_name">%1$s</xliff:g>/upgrade</string>
+ <string name="blocked_update_info_url" translatable="false">https://project-ice.org/what-happened</string>
<string name="export_channel_title">Export completion</string>
<string name="new_updates_channel_title">New updates</string>
diff --git a/src/org/lineageos/updater/UpdatesActivity.java b/src/org/lineageos/updater/UpdatesActivity.java
index 395e801..21d9df3 100644
--- a/src/org/lineageos/updater/UpdatesActivity.java
+++ b/src/org/lineageos/updater/UpdatesActivity.java
@@ -134,8 +134,7 @@ public class UpdatesActivity extends UpdatesListActivity {
}
TextView headerTitle = findViewById(R.id.header_title);
- headerTitle.setText(getString(R.string.header_title_text,
- BuildInfoUtils.getBuildVersion()));
+ headerTitle.setText(getString(R.string.display_name));
updateLastCheckedString();
diff --git a/src/org/lineageos/updater/misc/Constants.java b/src/org/lineageos/updater/misc/Constants.java
index 6144ed7..7147dab 100644
--- a/src/org/lineageos/updater/misc/Constants.java
+++ b/src/org/lineageos/updater/misc/Constants.java
@@ -39,11 +39,11 @@ public final class Constants {
public static final String PROP_AB_DEVICE = "ro.build.ab_update";
public static final String PROP_BUILD_DATE = "ro.build.date.utc";
- public static final String PROP_BUILD_VERSION = "ro.lineage.build.version";
+ public static final String PROP_BUILD_VERSION = "ro.ice.version.major";
public static final String PROP_BUILD_VERSION_INCREMENTAL = "ro.build.version.incremental";
- public static final String PROP_DEVICE = "ro.lineage.device";
+ public static final String PROP_DEVICE = "ro.ice.device";
public static final String PROP_NEXT_DEVICE = "ro.updater.next_device";
- public static final String PROP_RELEASE_TYPE = "ro.lineage.releasetype";
+ public static final String PROP_RELEASE_TYPE = "ro.ice.build.variant";
public static final String PROP_UPDATER_ALLOW_DOWNGRADING = "lineage.updater.allow_downgrading";
public static final String PROP_UPDATER_URI = "lineage.updater.uri";