Loading src/java/com/android/internal/telephony/SubscriptionController.java +9 −1 Original line number Diff line number Diff line Loading @@ -2920,8 +2920,10 @@ public class SubscriptionController extends ISub.Stub { Binder.restoreCallingIdentity(identity); } // If the group does not exist, then by default the UUID is up for grabs so no need to // restrict management of a group (that someone may be attempting to create). if (ArrayUtils.isEmpty(infoList)) { throw new IllegalArgumentException("No subscription in group " + groupUuid); return true; } // If the calling package is the group owner, skip carrier permission check and return Loading Loading @@ -2963,6 +2965,12 @@ public class SubscriptionController extends ISub.Stub { throw new IllegalArgumentException("Invalid groupUuid"); } // TODO: Revisit whether we need this restriction in R. There's no technical need for it, // but we don't want to change the API behavior at this time. if (getSubscriptionsInGroup(groupUuid, callingPackage).isEmpty()) { throw new IllegalArgumentException("Cannot add subscriptions to a non-existent group!"); } // Makes sure calling package matches caller UID. mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); // If it doesn't have modify phone state permission, or carrier privilege permission, Loading Loading
src/java/com/android/internal/telephony/SubscriptionController.java +9 −1 Original line number Diff line number Diff line Loading @@ -2920,8 +2920,10 @@ public class SubscriptionController extends ISub.Stub { Binder.restoreCallingIdentity(identity); } // If the group does not exist, then by default the UUID is up for grabs so no need to // restrict management of a group (that someone may be attempting to create). if (ArrayUtils.isEmpty(infoList)) { throw new IllegalArgumentException("No subscription in group " + groupUuid); return true; } // If the calling package is the group owner, skip carrier permission check and return Loading Loading @@ -2963,6 +2965,12 @@ public class SubscriptionController extends ISub.Stub { throw new IllegalArgumentException("Invalid groupUuid"); } // TODO: Revisit whether we need this restriction in R. There's no technical need for it, // but we don't want to change the API behavior at this time. if (getSubscriptionsInGroup(groupUuid, callingPackage).isEmpty()) { throw new IllegalArgumentException("Cannot add subscriptions to a non-existent group!"); } // Makes sure calling package matches caller UID. mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); // If it doesn't have modify phone state permission, or carrier privilege permission, Loading