diff options
| author | lucaslin <lucaslin@google.com> | 2022-07-25 15:07:52 +0800 |
|---|---|---|
| committer | Lucas Lin <lucaslin@google.com> | 2022-07-27 01:59:01 +0000 |
| commit | a7ec0cbe45dd75301b19290174ecf2da6421cf97 (patch) | |
| tree | 1f97d77d2b970827006a86b9fb92189d99248d52 /core/java/android/widget/TextView.java | |
| parent | e15951e5f2c37bdf81088fcf299194447d7eddef (diff) | |
Skip sending VpnManager events for Settings VPNs
This change early-exits from the sendEventToVpnManagerApp()
method if the profile was not a VPN app.
Otherwise the sendEventToVpnManagerApp() will call
getRedactedNetworkCapabilities() which will call
AppOpsManager#checkPackage() eventually.
And AppOpsManager#checkPackage() will check if the given package
is the same as the given uid. In this case, VPN sends
"[Legacy VPN]" as the package and sends 1000 as the uid, but
there is no package named "[Legacy VPN], so the SecurityException
is thrown.
Bug: 236315805
Test: atest FrameworksNetTests:VpnTest
Change-Id: I486398111106b1a9551fb29f92ba7b4fe85f68c1
Merged-In: I486398111106b1a9551fb29f92ba7b4fe85f68c1
Merged-In: I228f62a5e09017dbf985a614f2e42434238a220c
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions
