Merge "Support carrier privileges for TelephonyManager#getNetworkSlicingConfiguration"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index bbdfae6..f7a7b74 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -11037,7 +11037,9 @@
*/
@Override
public void getSlicingConfig(ResultReceiver callback) {
- enforceReadPrivilegedPermission("getSlicingConfig");
+ TelephonyPermissions
+ .enforceCallingOrSelfReadPrivilegedPhoneStatePermissionOrCarrierPrivilege(
+ mApp, SubscriptionManager.INVALID_SUBSCRIPTION_ID, "getSlicingConfig");
final long identity = Binder.clearCallingIdentity();
try {