diff options
author | lucaslin <lucaslin@google.com> | 2020-03-12 13:23:52 +0800 |
---|---|---|
committer | lucaslin <lucaslin@google.com> | 2020-03-12 13:23:52 +0800 |
commit | 826224dbc111effd15fdcbd2cd698cd0e6b7b34a (patch) | |
tree | 38d1ce8655451ceb2334a0bbf5a1e90266392523 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 735ed754b9f0cc19d7b19cfb518c0f699884866b (diff) |
Add enforceNetworkStackOrProfileOrDeviceOwner()
Add enforceNetworkStackOrProfileOrDeviceOwner() to check if the
caller has PERMISSION_MAINLINE_NETWORK_STACK or not.
Call this check in isAlwaysOnVpnLockdownEnabled() for allowing
the caller which has PERMISSION_MAINLINE_NETWORK_STACK to get the
status of always-on VPN.
Bug: 141621373
Test: 1. Build pass
2. Manual test to see if CaptivePortalLoginActivity could
deal with the issue properly.
Change-Id: I3b7ddc2543e6b4754d6eaac128ca9a8ccea6b59c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions