Have the status bar listen to all macro-users VPN changes.
Bug: 73217368
Test: manual
Using Datally on work profile. Before this, enabling the VPN
does not show the key icon. After this it does.
Change-Id: I454eb8f3881a48af1b0187c2b14a2a399d3c2445
This commit is contained in:
@@ -24,6 +24,7 @@ import android.text.TextUtils;
|
|||||||
import android.util.proto.ProtoOutputStream;
|
import android.util.proto.ProtoOutputStream;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a request for a network, made through {@link NetworkRequest.Builder} and used
|
* Defines a request for a network, made through {@link NetworkRequest.Builder} and used
|
||||||
@@ -204,6 +205,19 @@ public class NetworkRequest implements Parcelable {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the watched UIDs for this request. This will be reset and wiped out unless
|
||||||
|
* the calling app holds the CHANGE_NETWORK_STATE permission.
|
||||||
|
*
|
||||||
|
* @param uids The watched UIDs as a set of UidRanges, or null for everything.
|
||||||
|
* @return The builder to facilitate chaining.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public Builder setUids(Set<UidRange> uids) {
|
||||||
|
mNetworkCapabilities.setUids(uids);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a capability that must not exist in the requested network.
|
* Add a capability that must not exist in the requested network.
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
Reference in New Issue
Block a user