Use registerSystemDefaultNetworkCallback to listen underlying network
This commit replaces requestNetwork with registerSystemDefaultNetworkCallback to listen the underlying network. Previously, Vpn needs to create a request for default network. Now, ConnectivityManager provides a new API which can listen the underlying network. So use the new API - registerSystemDefaultNetworkCallback instead. Bug: 236409954 Test: atest FrameworksNetTests Change-Id: Ic4e558009cbc6ef3d72fff00e8c30559070f6de8
Loading
Please register or sign in to comment