Merge "Stop user faster and clear stale broadcasts" into nyc-dev am: ec6faca007
am: 9dee0bccd8 * commit '9dee0bccd8e692d1ca86bcf7180170f153dc99c7': Stop user faster and clear stale broadcasts Change-Id: I16c4c1dfcff9f4d63da0444923a29fda0bea5ee8
This commit is contained in:
@@ -730,7 +730,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
//set up the listener for user state for creating user VPNs
|
//set up the listener for user state for creating user VPNs
|
||||||
IntentFilter intentFilter = new IntentFilter();
|
IntentFilter intentFilter = new IntentFilter();
|
||||||
intentFilter.addAction(Intent.ACTION_USER_STARTING);
|
intentFilter.addAction(Intent.ACTION_USER_STARTING);
|
||||||
intentFilter.addAction(Intent.ACTION_USER_STOPPING);
|
intentFilter.addAction(Intent.ACTION_USER_STOPPED);
|
||||||
intentFilter.addAction(Intent.ACTION_USER_ADDED);
|
intentFilter.addAction(Intent.ACTION_USER_ADDED);
|
||||||
intentFilter.addAction(Intent.ACTION_USER_REMOVED);
|
intentFilter.addAction(Intent.ACTION_USER_REMOVED);
|
||||||
intentFilter.addAction(Intent.ACTION_USER_UNLOCKED);
|
intentFilter.addAction(Intent.ACTION_USER_UNLOCKED);
|
||||||
@@ -3619,7 +3619,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
synchronized(mVpns) {
|
synchronized(mVpns) {
|
||||||
Vpn userVpn = mVpns.get(userId);
|
Vpn userVpn = mVpns.get(userId);
|
||||||
if (userVpn == null) {
|
if (userVpn == null) {
|
||||||
loge("Stopping user has no VPN");
|
loge("Stopped user has no VPN");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mVpns.delete(userId);
|
mVpns.delete(userId);
|
||||||
@@ -3664,7 +3664,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
|
|
||||||
if (Intent.ACTION_USER_STARTING.equals(action)) {
|
if (Intent.ACTION_USER_STARTING.equals(action)) {
|
||||||
onUserStart(userId);
|
onUserStart(userId);
|
||||||
} else if (Intent.ACTION_USER_STOPPING.equals(action)) {
|
} else if (Intent.ACTION_USER_STOPPED.equals(action)) {
|
||||||
onUserStop(userId);
|
onUserStop(userId);
|
||||||
} else if (Intent.ACTION_USER_ADDED.equals(action)) {
|
} else if (Intent.ACTION_USER_ADDED.equals(action)) {
|
||||||
onUserAdded(userId);
|
onUserAdded(userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user