blob: 38951d5466c762ee58930dbf525bd44537c12ff7 [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;
20
21/**
Philip P. Moltmannbc054d82018-12-21 09:41:58 -080022 * Interface for system apps to communication with the permission controller.
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080023 *
24 * @hide
25 */
Philip P. Moltmannbc054d82018-12-21 09:41:58 -080026oneway interface IPermissionController {
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080027 void getAppPermissions(String packageName, in RemoteCallback callback);
28 void revokeRuntimePermission(String packageName, String permissionName);
Philip P. Moltmann08cac8e2018-12-04 15:09:59 -080029 void countPermissionApps(in List<String> permissionNames, boolean countOnlyGranted,
30 boolean countSystem, in RemoteCallback callback);
Philip P. Moltmanndbf78b82018-12-04 13:44:27 -080031}