diff options
| author | 2022-07-25 15:07:52 +0800 | |
|---|---|---|
| committer | 2022-07-27 01:30:22 +0000 | |
| commit | 3912b21cbfaab3c8a705f61965c201b7522a42a2 (patch) | |
| tree | d3f4637dc64cf216d3a23ce95201f684b9f927b1 /libs/androidfw/StringPool.cpp | |
| parent | 326af90470e4ccf0c66e8c7def9fa4a1ca1e55fd (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: I228f62a5e09017dbf985a614f2e42434238a220c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions