Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 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 | |
| 17 | syntax = "proto3"; |
| 18 | |
| 19 | package apex.proto; |
| 20 | |
Jiyong Park | e014686 | 2019-07-12 16:32:31 +0900 | [diff] [blame] | 21 | option java_package = "com.android.apex"; |
| 22 | option java_outer_classname = "Protos"; |
| 23 | |
Abhijeet Kaur | a971613 | 2019-01-04 09:02:31 +0000 | [diff] [blame] | 24 | message ApexManifest { |
Abhijeet Kaur | c4b2183 | 2019-01-02 16:50:21 +0000 | [diff] [blame] | 25 | |
| 26 | // Package Name |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 27 | string name = 1; |
Abhijeet Kaur | c4b2183 | 2019-01-02 16:50:21 +0000 | [diff] [blame] | 28 | |
| 29 | // Version Number |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 30 | int64 version = 2; |
Abhijeet Kaur | c4b2183 | 2019-01-02 16:50:21 +0000 | [diff] [blame] | 31 | |
| 32 | // Pre Install Hook |
Abhijeet Kaur | e4db3d6 | 2018-12-31 15:34:37 +0000 | [diff] [blame] | 33 | string preInstallHook = 3; |
Abhijeet Kaur | c4b2183 | 2019-01-02 16:50:21 +0000 | [diff] [blame] | 34 | |
| 35 | // Post Install Hook |
| 36 | string postInstallHook = 4; |
Gavin Corkery | 9463856 | 2019-04-30 10:40:12 +0100 | [diff] [blame] | 37 | |
| 38 | // Version Name |
| 39 | string versionName = 5; |
Jiyong Park | 361fed2 | 2019-06-03 10:15:50 +0900 | [diff] [blame] | 40 | |
| 41 | // Signals whenever this APEX doesn't contain any executable code. |
| 42 | // If this field is set to true, then apexd will mount this apex |
| 43 | // with MS_NOEXEC flag. |
| 44 | bool noCode = 6; |
Jooyung Han | ef16a32 | 2019-08-01 17:54:03 +0900 | [diff] [blame] | 45 | |
| 46 | // List of native libs which can be used by other apexes or system. |
| 47 | repeated string provideNativeLibs = 7; |
| 48 | |
| 49 | // List of native libs which this apex uses from other apexes or system. |
| 50 | repeated string requireNativeLibs = 8; |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 51 | } |