commit | a36535a2c8d84ea18dc6b9cf3fb5ec819dc3412a | [log] [tgz] |
---|---|---|
author | lucaslin <lucaslin@google.com> | Thu Sep 09 16:21:45 2021 +0800 |
committer | Lucas Lin <lucaslin@google.com> | Thu Dec 23 06:54:45 2021 +0000 |
tree | 445c37aff000c90e2dfead0f57e94109348885bd | |
parent | 99c1cc99e95184dc050ddafeab2fb616fef0b910 [diff] |
Add test for Vpn#prepare() Add test for Vpn#prepare() to check if the SecurityException will be thrown when the caller is not the SYSTEM_UID and doesn't have CONTROL_VPN permission and its package doesn't match the oldPackage or the newPackage. Ignore-AOSP-First: It's a part of security patches. Bug: 191276656 Test: atest FrameworksNetTests:VpnTest Change-Id: Ibe0b245561b00442a6377fb849603f8b9026e9c4 Merged-In: Ibe0b245561b00442a6377fb849603f8b9026e9c4