Loading src/org/lineageos/updater/misc/Utils.java +6 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,12 @@ public class Utils { } public static boolean canInstall(UpdateBaseInfo update) { Log.d(TAG, "System Android version: "+SystemProperties.get(Constants.PROP_BUILD_ANDROID_VERSION)); Log.d(TAG, "Update Android version: "+update.getAndroidVersion()); return (SystemProperties.getBoolean(Constants.PROP_UPDATER_ALLOW_DOWNGRADING, false) || update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) || update.getAndroidVersion().equals(SystemProperties.get(Constants.PROP_BUILD_ANDROID_VERSION))); Loading Loading
src/org/lineageos/updater/misc/Utils.java +6 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,12 @@ public class Utils { } public static boolean canInstall(UpdateBaseInfo update) { Log.d(TAG, "System Android version: "+SystemProperties.get(Constants.PROP_BUILD_ANDROID_VERSION)); Log.d(TAG, "Update Android version: "+update.getAndroidVersion()); return (SystemProperties.getBoolean(Constants.PROP_UPDATER_ALLOW_DOWNGRADING, false) || update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) || update.getAndroidVersion().equals(SystemProperties.get(Constants.PROP_BUILD_ANDROID_VERSION))); Loading