| 1 |
/* |
| 2 |
* Copyright (C) 2019 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 |
|
| 17 |
package android.permission; |
| 18 |
|
| 19 |
import android.content.pm.ParceledListSlice; |
| 20 |
import android.content.pm.PermissionGroupInfo; |
| 21 |
import android.content.pm.PermissionInfo; |
| 22 |
import android.content.pm.permission.SplitPermissionInfoParcelable; |
| 23 |
import android.os.UserHandle; |
| 24 |
import android.permission.IOnPermissionsChangeListener; |
| 25 |
|
| 26 |
/** |
| 27 |
* Interface to communicate directly with the legacy permission manager service. |
| 28 |
* |
| 29 |
* @see PermissionManager |
| 30 |
* @hide |
| 31 |
*/ |
| 32 |
interface ILegacyPermissionManager { |
| 33 |
int checkDeviceIdentifierAccess(String packageName, String message, String callingFeatureId, |
| 34 |
int pid, int uid); |
| 35 |
|
| 36 |
int checkPhoneNumberAccess(String packageName, String message, String callingFeatureId, |
| 37 |
int pid, int uid); |
| 38 |
|
| 39 |
void grantDefaultPermissionsToEnabledCarrierApps(in String[] packageNames, int userId); |
| 40 |
|
| 41 |
void grantDefaultPermissionsToEnabledImsServices(in String[] packageNames, int userId); |
| 42 |
|
| 43 |
void grantDefaultPermissionsToEnabledTelephonyDataServices( |
| 44 |
in String[] packageNames, int userId); |
| 45 |
|
| 46 |
void revokeDefaultPermissionsFromDisabledTelephonyDataServices( |
| 47 |
in String[] packageNames, int userId); |
| 48 |
|
| 49 |
void grantDefaultPermissionsToActiveLuiApp(in String packageName, int userId); |
| 50 |
|
| 51 |
void revokeDefaultPermissionsFromLuiApps(in String[] packageNames, int userId); |
| 52 |
|
| 53 |
void grantDefaultPermissionsToCarrierServiceApp(in String packageName, int userId); |
| 54 |
} |