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

Commit 8d61ab00 authored by Andres Morales's avatar Andres Morales Committed by Android Git Automerger
Browse files

am a5705a4a: Merge "[partition checking] re-enable bootimage/bootloader, add recovery" into mnc-dev

* commit 'a5705a4a':
  [partition checking] re-enable bootimage/bootloader, add recovery
parents 98e88900 a5705a4a
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -685,6 +685,8 @@ public class Build {
        final String bootimage = SystemProperties.get("ro.bootimage.build.fingerprint");
        final String requiredBootloader = SystemProperties.get("ro.build.expect.bootloader");
        final String currentBootloader = SystemProperties.get("ro.bootloader");
        final String requiredRecovery = SystemProperties.get("ro.expect.recovery_id");
        final String currentRecovery = SystemProperties.get("ro.recovery_id");
        final String requiredRadio = SystemProperties.get("ro.build.expect.baseband");
        final String currentRadio = SystemProperties.get("gsm.version.baseband");

@@ -701,7 +703,6 @@ public class Build {
            }
        }

        /* TODO: Figure out issue with checks failing
        if (!TextUtils.isEmpty(bootimage)) {
            if (!Objects.equals(system, bootimage)) {
                Slog.e(TAG, "Mismatched fingerprints; system reported " + system
@@ -718,6 +719,15 @@ public class Build {
            }
        }

        if (!TextUtils.isEmpty(requiredRecovery)) {
            if (!Objects.equals(currentRecovery, requiredRecovery)) {
                Slog.e(TAG, "Mismatched recovery version: build requires " + requiredRecovery
                        + " but runtime reports " + currentRecovery);
                return false;
            }
        }

        /* TODO: uncomment when new bootloader lands b/20860620
        if (!TextUtils.isEmpty(requiredRadio)) {
            if (!Objects.equals(currentRadio, requiredRadio)) {
                Slog.e(TAG, "Mismatched radio version: build requires " + requiredRadio