diff --git a/res/values/strings.xml b/res/values/strings.xml index d0d6ae8753a45f8db4671090783d348f273a4d17..4ff03253410739daf71ae99346c44967a26e8304 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 New updates found No new updates found diff --git a/src/org/lineageos/updater/misc/Constants.java b/src/org/lineageos/updater/misc/Constants.java index 5bb65e14fa7abff9ae23e8e94f70a1938b2d981a..1e92f91b134976866e94675917687429b6fd86d0 100644 --- a/src/org/lineageos/updater/misc/Constants.java +++ b/src/org/lineageos/updater/misc/Constants.java @@ -31,6 +31,7 @@ public final class Constants { public static final String UNCRYPT_FILE_EXT = ".uncrypt"; + public static final String PROP_VERSION = "ro.cm.version"; public static final String PROP_BUILD_DATE = "ro.build.date.utc"; public static final String PROP_BUILD_VERSION = "ro.cm.build.version"; public static final String PROP_BUILD_DISPLAY_VERSION = "ro.cm.display.version"; diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java index 6a1ec560495acbc7f10ebd1b167bc09210e76b7a..fe22b86a28f055f4eb0c1b9d24baf4fa12c3085b 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) {