1/* 2 * Copyright (C) 2023 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"; 18 19package android.apex; 20 21enum InstallationType { 22 UNKNOWN_INSTALL_TYPE = 0; 23 STAGED = 1; 24 REBOOTLESS = 2; 25} 26 27enum InstallResultType { 28 UNKNOWN_INSTALL_RESULT = 0; 29 INSTALL_SUCCESSFUL = 1; 30 INSTALL_FAILURE_APEX_READING = 2; 31 INSTALL_FAILURE_APEX_VALIDATION = 3; 32 INSTALL_FAILURE_APEX_PREPARATION = 4; 33 INSTALL_FAILURE_APEX_STAGING = 5; 34 INSTALL_FAILURE_APEX_INSTALLATION = 6; 35 INSTALL_FAILURE_APEX_ACTIVATION = 7; 36} 37 38enum PreinstallPartition { 39 PARTITION_UNKNOWN = 0; 40 PARTITION_OTHER = 1; 41 PARTITION_PRODUCT = 2; 42 PARTITION_SYSTEM = 3; 43 PARTITION_SYSTEM_EXT = 4; 44 PARTITION_VENDOR = 5; 45} 46