Support cross-user VPN calls (with permission)
Settings and SystemUI need to act on other users than USER_OWNER. This is gated by INTERACT_ACROSS_USERS_FULL in addition to the existing CONTROL_VPN checks, so the number of processes able to interfere with other profiles' VPNs should be quite small. Bug: 20692490 Bug: 20747154 Bug: 20872408 Change-Id: I6e5d7220f73435bec350719e7b4715935caf4e19
This commit is contained in:
parent
2c39d1313a
commit
1e71fc8356
1 changed files with 61 additions and 24 deletions
|
|
@ -106,13 +106,13 @@ interface IConnectivityManager
|
|||
|
||||
ProxyInfo getDefaultProxy();
|
||||
|
||||
boolean prepareVpn(String oldPackage, String newPackage);
|
||||
boolean prepareVpn(String oldPackage, String newPackage, int userId);
|
||||
|
||||
void setVpnPackageAuthorization(boolean authorized);
|
||||
void setVpnPackageAuthorization(String packageName, int userId, boolean authorized);
|
||||
|
||||
ParcelFileDescriptor establishVpn(in VpnConfig config);
|
||||
|
||||
VpnConfig getVpnConfig();
|
||||
VpnConfig getVpnConfig(int userId);
|
||||
|
||||
void startLegacyVpn(in VpnProfile profile);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue