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

Commit d44759dc authored by Romain Hunault's avatar Romain Hunault 🚴🏻 Committed by Mohammed Althaf T
Browse files

Updater: Allow OTA updates with different version number



Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
Change-Id: I24ee83c5a94f47742f6c9cad23630bc6833cfe81
parent f234a452
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -114,9 +114,7 @@ public class Utils {

    public static boolean canInstall(UpdateBaseInfo update) {
        return (SystemProperties.getBoolean(Constants.PROP_UPDATER_ALLOW_DOWNGRADING, false) ||
                update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0)) &&
                update.getVersion().equalsIgnoreCase(
                        SystemProperties.get(Constants.PROP_BUILD_VERSION));
                update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0));
    }

    public static List<UpdateInfo> parseJson(File file, boolean compatibleOnly)