diff options
| author | 2023-08-30 10:28:03 +0000 | |
|---|---|---|
| committer | 2023-09-04 09:08:35 +0000 | |
| commit | 9ce403e297d3dc5df410ddbddbbf0d8a50caa5ad (patch) | |
| tree | c05fdc51ce16c6558e380a5609e6bce6082f4711 | |
| parent | b6d9281868cc74c5fab801bca9f32205087683d6 (diff) | |
Add VPN name into the extra info of NetworkInfo
Add the extra info of a VPN network to provide helpful
debugging info.
The validation logs in the dumpsys of NetworkStack refer to
the extra info from NetworkInfo of the given network.
But the extra info in a VPN NetworkInfo is empty so the name
will be null. It's hard to tell the exact name information
from only dumpsys of NetworkStack.
Bug: 297790570
Test: atest FrameworksNetTests
Change-Id: I7cf5f30db9a9bbc0361e5dc6bf4d8f533e12f5c8
| -rw-r--r-- | services/core/java/com/android/server/connectivity/Vpn.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/connectivity/Vpn.java b/services/core/java/com/android/server/connectivity/Vpn.java index bfccd58b3f5d..53fbe8f37046 100644 --- a/services/core/java/com/android/server/connectivity/Vpn.java +++ b/services/core/java/com/android/server/connectivity/Vpn.java @@ -1741,6 +1741,7 @@ public class Vpn { .setBypassableVpn(bypassable) .setVpnRequiresValidation(mConfig.requiresInternetValidation) .setLocalRoutesExcludedForVpn(mConfig.excludeLocalRoutes) + .setLegacyExtraInfo("VPN:" + mPackage) .build(); capsBuilder.setOwnerUid(mOwnerUID); |