Commit 48761e77 authored by Romain Hunault's avatar Romain Hunault

Allow OTA updates with different version number

parent 35c12b2e
......@@ -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)
......
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