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

Commit 7de24ce0 authored by Andres Morales's avatar Andres Morales
Browse files

check bootimage version string against system

vendor version string may be empty

Bug: 19058575
Change-Id: I99f38183187a44cd200c5ddf8d5ff45ef80199d8
parent 63ae9f33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -669,8 +669,8 @@ public class Build {
        }

        if (!TextUtils.isEmpty(bootimage)) {
            if (!Objects.equals(vendor, bootimage)) {
                Slog.e(TAG, "Mismatched fingerprints; system and vendor reported " + system
            if (!Objects.equals(system, bootimage)) {
                Slog.e(TAG, "Mismatched fingerprints; system reported " + system
                        + " but bootimage reported " + bootimage);
                return false;
            }