blob: 89695a37d4c47a9546a447a892b7806758cf065c [file] [log] [blame]
satayev075d07c2021-05-10 12:31:50 +01001/*
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 = "proto3";
18
19// The version of a single module.
20message SdkVersion {
21 int32 version = 1;
22}
23
24// All the modules that can be used for version requirements.
Paul Duffin869b4bf2023-01-25 15:54:20 +000025//
26// The only modules that should be listed here are non-optional modules that
27// have Java APIs, i.e. their APEX contains a bootclaspath_fragment or a
28// systemserverclasspath_fragment.
satayev075d07c2021-05-10 12:31:50 +010029enum SdkModule {
30 UNKNOWN = 0;
31
32 // R modules
Anton Hanssonef9be672021-06-08 16:56:05 +010033 CONSCRYPT = 10;
Anton Hansson620a31f2023-02-23 15:41:13 +000034 EXT_SERVICES = 14;
satayev075d07c2021-05-10 12:31:50 +010035 IPSEC = 1;
36 MEDIA = 2;
37 MEDIA_PROVIDER = 3;
38 PERMISSIONS = 4;
39 SDK_EXTENSIONS = 5;
40 STATSD = 6;
41 TETHERING = 7;
Paul Duffin869b4bf2023-01-25 15:54:20 +000042 // WIFI - optional
satayev075d07c2021-05-10 12:31:50 +010043
44 // S modules
45 ART = 8;
Anton Hansson0d974dd2021-06-01 13:59:02 +010046 SCHEDULING = 9;
Anton Hansson2b28ea22022-04-12 20:17:16 +010047
48 // T modules
49 AD_SERVICES = 11;
50 APPSEARCH = 12;
51 ON_DEVICE_PERSONALIZATION = 13;
Paul Duffin869b4bf2023-01-25 15:54:20 +000052 // UWB - optional
53
54 // U modules
55 // BT_SERVICES - optional
Anton Hansson620a31f2023-02-23 15:41:13 +000056 CONFIG_INFRASTRUCTURE = 15;
57 HEALTH_FITNESS = 16;
Paul Duffin869b4bf2023-01-25 15:54:20 +000058 // REMOTE_KEY_PROVISIONING - optional
satayev075d07c2021-05-10 12:31:50 +010059}
60
61// A single extension version.
62message ExtensionVersion {
63 message ModuleRequirement {
64 SdkModule module = 1;
65 SdkVersion version = 2;
66 }
67
68 // The extension version.
69 int32 version = 1;
70
71 // The modules required for this extension version.
72 repeated ModuleRequirement requirements = 2;
73}
74
75// All the defined extension versions.
76message ExtensionDatabase {
77 repeated ExtensionVersion versions = 1;
78}