commit | 624edc3246e91648ca6052f7ba56d876f757ed0c | [log] [tgz] |
---|---|---|
author | lucaslin <lucaslin@google.com> | Thu Sep 09 16:21:45 2021 +0800 |
committer | lucaslin <lucaslin@google.com> | Wed Dec 22 14:59:48 2021 +0800 |
tree | b5b7f2d543d6176587bf56675204150c4e8ccebe | |
parent | 753929f458aca0bd7b6034b7cdfda11a0b615a8d [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