1/*
2 * Copyright (C) 2020 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 */
16syntax = "proto2";
17package com.android.permissioncontroller.permission.service;
18option java_outer_classname = "AutoRevokePermissionsProto";
19
20message PackageProto {
21  optional int32 uid = 1;
22  optional string package_name = 2;
23  optional int64 last_time_visible = 4;
24  optional int64 first_install_time = 5;
25  repeated PermissionGroupProto groups = 6;
26  repeated string implemented_services = 7;
27}
28
29message PermissionGroupProto {
30  optional string group_name = 1;
31  optional bool is_fixed = 2;
32  optional bool is_any_granted_including_appop = 3;
33  optional bool is_granted_by_default = 4;
34  optional bool is_granted_by_role = 5;
35  optional bool is_user_sensitive = 6;
36  optional bool is_auto_revoked = 7;
37}
38
39message AutoRevokedPackageProto {
40  optional string package_name = 1;
41  repeated string revoked_groups = 2;
42}
43
44message PerUserProto {
45  optional int32 user_id = 1;
46  repeated PackageProto packages = 2;
47}
48
49message TeamFoodSettingsProto {
50  optional bool enabled_for_pre_R_apps = 1;
51  optional int64 unused_threshold_millis = 2;
52  optional int64 check_frequency_millis = 3;
53}
54
55message AutoRevokePermissionsDumpProto {
56  repeated PerUserProto users = 1;
57
58  optional TeamFoodSettingsProto teamfood_settings = 2;
59}
60