Merge "Update Permission only if the network is created" am: 29f0350da3
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827912 Change-Id: Iaa41edbfe275556c009c00c48dd4a712e6eff3a7
This commit is contained in:
@@ -3938,10 +3938,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delayed teardown.
|
// Delayed teardown.
|
||||||
try {
|
if (nai.created) {
|
||||||
mNetd.networkSetPermissionForNetwork(nai.network.netId, INetd.PERMISSION_SYSTEM);
|
try {
|
||||||
} catch (RemoteException e) {
|
mNetd.networkSetPermissionForNetwork(nai.network.netId, INetd.PERMISSION_SYSTEM);
|
||||||
Log.d(TAG, "Error marking network restricted during teardown: ", e);
|
} catch (RemoteException e) {
|
||||||
|
Log.d(TAG, "Error marking network restricted during teardown: ", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mHandler.postDelayed(() -> destroyNetwork(nai), nai.teardownDelayMs);
|
mHandler.postDelayed(() -> destroyNetwork(nai), nai.teardownDelayMs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user