1syntax = "proto3";
2
3package com.android.bedstead.testapp;
4
5message TestAppIndex {
6  repeated AndroidApp apps = 1;
7}
8
9message AndroidApp {
10  string apk_name = 1;
11  string package_name = 2;
12  UsesSdk uses_sdk = 3;
13  repeated Permission permissions = 4;
14  repeated Activity activities = 5;
15  repeated Service services = 6;
16  bool test_only = 7;
17  repeated Metadata metadata = 8;
18  string sharedUserId = 9;
19  string label = 10;
20  bool cross_profile = 11;
21  repeated Receiver receivers = 12;
22  repeated ActivityAlias activityAliases = 13;
23}
24
25message UsesSdk {
26  uint32 minSdkVersion = 1;
27  uint32 targetSdkVersion = 2;
28  uint32 maxSdkVersion = 3;
29}
30
31message Permission {
32  string name = 1;
33}
34
35message Activity {
36  string name = 1;
37  bool exported = 2;
38  repeated IntentFilter intent_filters = 3;
39  string permission = 4;
40}
41
42message ActivityAlias {
43  string name = 1;
44  bool exported = 2;
45  repeated IntentFilter intent_filters = 3;
46  string permission = 4;
47}
48
49message IntentFilter {
50  repeated string actions = 1;
51  repeated string categories = 2;
52}
53
54message Service {
55  string name = 1;
56  bool exported = 2;
57  repeated IntentFilter intent_filters = 3;
58}
59
60message Metadata {
61  string name = 1;
62  string value = 2;
63}
64
65message Receiver {
66    string name = 1;
67    string permission = 2;
68    bool exported = 3;
69    repeated Metadata metadata = 4;
70    repeated IntentFilter intent_filters = 5;
71}
72