7a480f3f678b511b42a174c41d6704d9bd55c57b
The mLockdownEnabled boolean and the mLockdownTracker objects are read and mutated in many places involving vpn logic inside of ConnectivityService. This includes codepaths run on the ConnectivityService handler and codepaths run on Binder calls from IConnectivityManager.aidl, however the access to these variables are not synchronized. This patch adds proper synchronization to mLockdownEnabled and mLockdownTracker by moving access to them into the mVpns lock used for all of vpn logic. Bug: 18331877 Test: runtest frameworks-net Change-Id: I4abde43b1036861f4486dd2b5567782d10204bd6
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%