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

Commit 87daeb15 authored by Tao Bao's avatar Tao Bao
Browse files

RecoverySystem: Enable the package compatibility verification.

Hook up to android.os.VintfObject.verify().

Bug: 36592877
Test: Flash on marlin; verify with package that has and doesn't have
      compatibility.zip entry.
Change-Id: I4e73fa42f4e3fd2e1c5ffec2ffa6152538d62eee
parent e01b520d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -353,9 +353,7 @@ public class RecoverySystem {
        if (list.isEmpty()) {
            throw new IOException("no entries found in the compatibility file");
        }
        // TODO(b/36814503): Enable the actual verification when VintfObject APIs are ready.
        // return (VintfObject.verify(list.toArray(new String[list.size()])) == 0);
        return true;
        return (VintfObject.verify(list.toArray(new String[list.size()])) == 0);
    }

    /**