3c766ebc4d59c47a0de02afc6596e4eefdb86f5d
Currently it is not possible to change private DNS bypass by doing: setProcessDefaultNetwork(network.getPrivateDnsBypassingCopy()); setProcessDefaultNetwork(network); because the code will ignore the change. Fix this by ensuring that we always call bindProcessToNetwork (which does not have side effects) and then only performing the expensive operations (flushing DNS cache, upating socket pools) if the netId changed. Bug: 112869080 Test: None Change-Id: I5e8999cb11d8b8c1e9eb583fa8b3932f212accff
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%