blob: 7a7bd83089f72100774a8cba8aef75dfa84a367c [file] [log] [blame]
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -08001/*
2 * Copyright (C) 2016 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
17package android.permission;
18
19import android.os.RemoteCallback;
Philip P. Moltmann78689522018-12-17 20:45:40 -080020import android.os.Bundle;
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080021
22/**
Philip P. Moltmannbc054d82018-12-21 09:41:58 -080023 * Interface for system apps to communication with the permission controller.
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080024 *
25 * @hide
26 */
Philip P. Moltmannbc054d82018-12-21 09:41:58 -080027oneway interface IPermissionController {
Philip P. Moltmann78689522018-12-17 20:45:40 -080028 void revokeRuntimePermissions(in Bundle request, boolean doDryRun, int reason,
29 String callerPackageName, in RemoteCallback callback);
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080030 void getAppPermissions(String packageName, in RemoteCallback callback);
31 void revokeRuntimePermission(String packageName, String permissionName);
Philip P. Moltmann08cac8e2018-12-04 15:09:59 -080032 void countPermissionApps(in List<String> permissionNames, boolean countOnlyGranted,
33 boolean countSystem, in RemoteCallback callback);
Joel Galenson5f63b832018-12-19 15:38:04 -080034 void getPermissionUsages(boolean countSystem, long numMillis, in RemoteCallback callback);
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080035}