commit | 409913a2158582cee867f2b9865a3219ca47f1bb | [log] [tgz] |
---|---|---|
author | Chalard Jean <jchalard@google.com> | Fri Apr 11 14:56:35 2025 +0900 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 15 16:36:05 2025 -0700 |
tree | 0c0c71259eca29d7a419a2568381fe10e9d5fd03 | |
parent | f84605d0cd686c5aa2a063000c9bfb30a6addba7 [diff] |
Fix a bug where non-VPN networks would update VPN uids. Previously, non VPNs would not be created when updateVpnUids() is called inside handleRegisterNetworkAgent. Because the network is not created, netd would refuse to set the UIDs with an error. Now that networks are created immediately with the QUEUE_NETWORK_AGENT_EVENTS_IN_SYSTEM_SERVER flag, the network is created and netd does set the UID for any network as if they were a VPN. This results in the UID having the wrong default network, which in turns prevents it from accessing Internet. Test: new test in this patch Bug: 408717088 Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:97e690169779f9790aa8d6026fca6bdc3d61e1b3) Merged-In: If68ea7d60919c0c7e177480f6167196381e00f35 Change-Id: If68ea7d60919c0c7e177480f6167196381e00f35