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

Commit c97b92e3 authored by Andres Morales's avatar Andres Morales
Browse files

Revert "[partition checking] re-enable bootimage/bootloader, add recovery"

This reverts commit 831e01a8.

Change-Id: I48bf74631b842178964d25906b2790f18632e32a
parent 831e01a8
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -685,8 +685,6 @@ 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");

@@ -703,6 +701,7 @@ 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
@@ -719,15 +718,6 @@ 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