1/* 2 * Copyright (C) 2021 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 = "proto3"; 18 19package android.microdroid; 20 21// Metadata is the body of the "metadata" partition 22message Metadata { 23 uint32 version = 1; 24 25 repeated ApexPayload apexes = 2; 26 27 ApkPayload apk = 3; 28 29 string payload_config_path = 4; 30} 31 32message ApexPayload { 33 // Required. 34 string name = 1; 35 string partition_name = 2; 36 37 // Optional. 38 // When specified, apex payload should be verified with the public key and root digest. 39 bytes public_key = 3; 40 bytes root_digest = 4; 41 42 // Required. 43 // The timestamp in seconds when the APEX was last updated. This should match the value in 44 // apex-info-list.xml. 45 uint64 last_update_seconds = 5; 46 47 // Required. 48 // Whether the APEX is a factory version or not. 49 bool is_factory = 6; 50} 51 52message ApkPayload { 53 // Required. 54 // The name of APK. 55 string name = 1; 56 57 string payload_partition_name = 2; 58 59 string idsig_partition_name = 3; 60} 61