lucaslin 826224dbc1 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
2020-03-12 13:23:52 +08:00
2020-01-22 14:00:14 -08:00
2020-03-06 11:36:21 -08:00
2020-02-03 11:05:43 +00:00
2020-02-19 19:36:25 -08:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%