OSDN Git Service

No-op refactoring of VPN lockdown status check.
authorjunyulai <junyulai@google.com>
Thu, 25 Oct 2018 02:56:17 +0000 (10:56 +0800)
committerjunyulai <junyulai@google.com>
Thu, 25 Oct 2018 08:43:50 +0000 (16:43 +0800)
commit8ed8915e536c873dd05b7f86656801e6d82aabe5
treea897ef3bbb4c5480a2fa5f02606c46b3f52fa162
parenta01c77a499d9037a21b8ea1a5cd1df1a7dea7f25
No-op refactoring of VPN lockdown status check.

Currently, if VPN lockdown is disabled, the blocking judgement
inside VPN will return false immediately. It will make
ConnectivityService hard to check blocked status by a given
VPN lockdown status.

Thus, move this check into ConnectivityService and check it
externally.

Bug: 117814902
Test: 1. manual test with 3rd-party vpn app
      2. runtest frameworks-net

Change-Id: Ia8319b1a1a12f1058c24badf2431f2ec69bc78e7
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/connectivity/Vpn.java
tests/net/java/com/android/server/connectivity/VpnTest.java