Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c5192b9 authored by Romain Hunault's avatar Romain Hunault
Browse files

Get /e/ changelog

parent 44c2f788
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,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="snack_updates_found">New updates found</string>
    <string name="snack_no_updates_found">No new updates found</string>
+1 −0
Original line number Diff line number Diff line
@@ -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";
+6 −1
Original line number Diff line number Diff line
@@ -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) {