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

Commit 494f8de3 authored by Alex Kershaw's avatar Alex Kershaw
Browse files

Add a mapping for kDownloadMetadataSignatureMismatch.

Add a mapping for kDownloadMetadataSignatureMismatch (26) from
error_code.h. This involves creating a new system API constant, but it's
just a simple definition so we don't have to hard-code '26'. These
constants are already set in error_code.h. A TODO has been added to
create this constant in the next release.

Test: manual
Bug: 132827080
Bug: 133396459
Change-Id: I4d59702879f2ed654dd467a1ae2dc8e400a0938d
parent c543913a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ class AbUpdateInstaller extends UpdateInstaller {
        map.put(
                UpdateEngine.ErrorCodeConstants.PAYLOAD_HASH_MISMATCH_ERROR,
                InstallSystemUpdateCallback.UPDATE_ERROR_UPDATE_FILE_INVALID);
        // TODO(b/133396459): replace with a constant.
        map.put(
                26 /* kDownloadMetadataSignatureMismatch */,
                InstallSystemUpdateCallback.UPDATE_ERROR_UPDATE_FILE_INVALID);

        // Error constants corresponding to errors related to devices bad state.
        map.put(