Commit 35c12b2e authored by Romain Hunault's avatar Romain Hunault Committed by Romain Hunault

Get /e/ changelog

parent 5eec511b
......@@ -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://images.ecloud.global/<xliff:g id="release_type">%3$s</xliff:g>/<xliff:g id="device_name">%1$s</xliff:g>/e-<xliff:g id="version">%2$s</xliff:g>.zip.changelog</string>
<string name="menu_ab_perf_mode">Prioritize update process</string>
<string name="snack_updates_found">New updates found</string>
......
......@@ -38,6 +38,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";
......
......@@ -176,7 +176,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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment