Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3f02d17 authored by Cody Kesting's avatar Cody Kesting
Browse files

Use actual Wifi subId when applying Network policies.

This CL updates Network policy application to check against a Wifi
Network's actual subscription id (previously, all Wifi Networks appeared
to have subId INVALID_SUBSCRIPTION).

Bug: 178501049
Test: atest FrameworksVcnTests
Change-Id: I83f51e3351940bbb791bcc40bc75fe04baf68171
parent 7102d06f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -314,8 +314,7 @@ public class VcnManagementService extends IVcnManagementService.Stub {

        /** Gets the subId indicated by the given {@link WifiInfo}. */
        public int getSubIdForWifiInfo(@NonNull WifiInfo wifiInfo) {
            // TODO(b/178501049): use the subId indicated by WifiInfo#getSubscriptionId
            return SubscriptionManager.INVALID_SUBSCRIPTION_ID;
            return wifiInfo.getSubscriptionId();
        }

        /** Creates a new LocationPermissionChecker for the provided Context. */