Merge "Allow notifyCarrierNetworkChange on grouped oppt subscriptions." am: 7d099030de

am: 6270ac2534

Change-Id: I40db08d05733dcc766c6d887c372ac450d33bd9d
This commit is contained in:
Xiangyu/Malcolm Chen
2019-10-15 11:07:34 -07:00
committed by android-build-merger

View File

@@ -1204,7 +1204,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
public void notifyCarrierNetworkChange(boolean active) {
// only CarrierService with carrier privilege rule should have the permission
int[] subIds = Arrays.stream(SubscriptionManager.from(mContext)
.getActiveSubscriptionIdList())
.getActiveSubscriptionIdList(false))
.filter(i -> TelephonyPermissions.checkCarrierPrivilegeForSubId(i)).toArray();
if (ArrayUtils.isEmpty(subIds)) {
loge("notifyCarrierNetworkChange without carrier privilege");