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

Commit de184458 authored by Romain Hunault's avatar Romain Hunault
Browse files

Display in logs the version

parent 805e527c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)));