• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.idmap2.pb;
20
21option optimize_for = LITE_RUNTIME;
22
23// All changes to the proto messages in this file MUST be backwards compatible. Backwards
24// incompatible changes will cause previously fabricated overlays to be considered corrupt by the
25// new proto message specification.
26message FabricatedOverlay {
27  repeated ResourcePackage packages = 1;
28  string name = 2;
29  string package_name = 3;
30  string target_package_name = 4;
31  string target_overlayable = 5;
32}
33
34message ResourcePackage {
35  string name = 1;
36  repeated ResourceType types = 2;
37}
38
39message ResourceType {
40  string name = 1;
41  repeated ResourceEntry entries = 2;
42}
43
44message ResourceEntry {
45  string name = 1;
46  oneof value {
47    ResourceValue res_value = 2;
48  }
49}
50
51message ResourceValue {
52  // Corresponds with android::Res_value::dataType
53  uint32 data_type = 1;
54  // Corresponds with android::Res_value::data
55  uint32 data_value = 2;
56}