Allow notifyCarrierNetworkChange on grouped oppt subscriptions.

Replace getActiveSubscriptionIdList with
getActiveSubscriptionIdList(false) so that grouped opportuistic
subscriptions will also be included.

Bug: 141568415
Test: manual - using test app
Change-Id: Idd48da2948013e00393819fcf22b6ede509c2f0c
This commit is contained in:
Malcolm Chen
2019-09-25 14:02:14 -07:00
parent 4e13461ef9
commit 2c95aa9b5a

View File

@@ -1190,7 +1190,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");