diff --git a/res/values/strings.xml b/res/values/strings.xml index 49ae48cf78c9a94020a2a5781e7b3709dcbf98ba..557354274b584781e28a177538b8f20c67bbf37b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -69,7 +69,7 @@ Copy URL Export update Show changelog - https://download.lineageos.org/%1$s/changes + https://images.ecloud.global/%3$s/%1$s/e-%2$s.zip.changelog Prioritize update process New updates found diff --git a/src/org/lineageos/updater/misc/Constants.java b/src/org/lineageos/updater/misc/Constants.java index 4457a962a1a261632bc97931ffabf2c9b35e1924..47560b8d652a26d9429d5b8e0c6730665516ce8a 100644 --- a/src/org/lineageos/updater/misc/Constants.java +++ b/src/org/lineageos/updater/misc/Constants.java @@ -33,6 +33,7 @@ public final class Constants { public static final String UNCRYPT_FILE_EXT = ".uncrypt"; public static final String PROP_AB_DEVICE = "ro.build.ab_update"; + public static final String PROP_VERSION = "ro.lineage.version"; 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_DISPLAY_VERSION = "ro.lineage.display.version"; diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 5e2532db94cb132583b02e6e58484a58aa47344f..e87c0c37e0ea823ec9e470fe091cc4dffdffa916 100644 --- a/src/org/lineageos/updater/misc/Utils.java +++ b/src/org/lineageos/updater/misc/Utils.java @@ -165,7 +165,12 @@ public class Utils { public static String getChangelogURL(Context context) { String device = SystemProperties.get(Constants.PROP_NEXT_DEVICE, SystemProperties.get(Constants.PROP_DEVICE)); - return context.getString(R.string.menu_changelog_url, device); + + String version = SystemProperties.get(Constants.PROP_VERSION); + + String releaseType = SystemProperties.get(Constants.PROP_RELEASE_TYPE); + + return context.getString(R.string.menu_changelog_url, device, version, releaseType); } public static void triggerUpdate(Context context, String downloadId) {