• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18package android.stats.otaupdate;
19
20// The payload type of an OTA update attempt on A/B devices.
21enum PayloadType {
22    FULL = 10000;
23    DELTA = 10001;
24}
25
26// The attempt result reported by the update engine for an OTA update.
27enum AttemptResult {
28    UPDATE_SUCCEEDED = 10000;
29    INTERNAL_ERROR = 10001;
30    PAYLOAD_DOWNLOAD_ERROR = 10002;
31    METADATA_MALFORMED = 10003;
32    OPERATION_MALFORMED = 10004;
33    OPERATION_EXECUTION_ERROR = 10005;
34    METADATA_VERIFICATION_FAILED = 10006;
35    PAYLOAD_VERIFICATION_FAILED = 10007;
36    VERIFICATION_FAILED = 10008;
37    POSTINSTALL_FAILED = 10009;
38    ABNORMAL_TERMINATION = 10010;
39    UPDATE_CANCELED = 10011;
40    UPDATE_SUCCEEDED_NOT_ACTIVE = 10012;
41}
42
43// The error code reported by the update engine after an OTA update attempt
44// on A/B devices. More details in system/update_engine/common/error_code.h
45enum ErrorCode {
46    SUCCESS = 10000;
47    ERROR = 10001;
48    FILESYSTEM_COPIER_ERROR = 10004;
49    POST_INSTALL_RUNNER_ERROR = 10005;
50    PAYLOAD_MISMATCHED_TYPE_ERROR = 10006;
51    INSTALL_DEVICE_OPEN_ERROR = 10007;
52    KERNEL_DEVICE_OPEN_ERROR = 10008;
53    DOWNLOAD_TRANSFER_ERROR = 10009;
54    PAYLOAD_HASH_MISMATCH_ERROR = 10010;
55    PAYLOAD_SIZE_MISMATCH_ERROR = 10011;
56    DOWNLOAD_PAYLOAD_VERIFICATION_ERROR = 10012;
57    DOWNLOAD_NEW_PARTITION_INFO_ERROR = 10013;
58    DOWNLOAD_WRITE_ERROR = 10014;
59    NEW_ROOTFS_VERIFICATION_ERROR = 10015;
60    SIGNED_DELTA_PAYLOAD_EXPECTED_ERROR = 10017;
61    DOWNLOAD_PAYLOAD_PUB_KEY_VERIFICATION_ERROR = 10018;
62    DOWNLOAD_STATE_INITIALIZATION_ERROR = 10020;
63    DOWNLOAD_INVALID_METADATA_MAGIC_STRING = 10021;
64    DOWNLOAD_SIGNATURE_MISSING_IN_MANIFEST = 10022;
65    DOWNLOAD_MANIFEST_PARSE_ERROR = 10023;
66    DOWNLOAD_METADATA_SIGNATURE_ERROR = 10024;
67    DOWNLOAD_METADATA_SIGNATURE_VERIFICATION_ERROR = 10025;
68    DOWNLOAD_METADATA_SIGNATURE_MISMATCH = 10026;
69    DOWNLOAD_OPERATION_HASH_VERIFICATION_ERROR = 10027;
70    DOWNLOAD_OPERATION_EXECUTION_ERROR = 10028;
71    DOWNLOAD_OPERATION_HASH_MISMATCH = 10029;
72    DOWNLOAD_INVALID_METADATA_SIZE = 10032;
73    DOWNLOAD_INVALID_METADATA_SIGNATURE = 10033;
74    DOWNLOAD_OPERATION_HASH_MISSING_ERROR = 10038;
75    DOWNLOAD_METADATA_SIGNATURE_MISSING_ERROR = 10039;
76    UNSUPPORTED_MAJOR_PAYLOAD_VERSION = 10044;
77    UNSUPPORTED_MINOR_PAYLOAD_VERSION = 10045;
78    FILESYSTEM_VERIFIER_ERROR = 10047;
79    USER_CANCELED = 10048;
80    PAYLOAD_TIMESTAMP_ERROR = 10051;
81    UPDATED_BUT_NOT_ACTIVE = 10052;
82}
83