Reset vpn provision status
The vpn status of cts app is updated to be consented in this tests which will impact the following test related to vpn. Thus, reset the status after finishing the test. Bug: 153760253 Test: atest CtsNetTestCasesLatestSdk Merged-In: I4856cfc7ddfd70125c513a4201132256704d1a66 Change-Id: I4856cfc7ddfd70125c513a4201132256704d1a66
This commit is contained in:
committed by
Chiachang Wang
parent
f0a78c385d
commit
c5bad6f58c
@@ -56,6 +56,7 @@ import com.android.org.bouncycastle.x509.X509V1CertificateGenerator;
|
||||
import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo;
|
||||
import com.android.testutils.DevSdkIgnoreRunner;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -175,6 +176,12 @@ public class Ikev2VpnTest {
|
||||
mUserCertKey = generateRandomCertAndKeyPair();
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
setAppop(AppOpsManager.OP_ACTIVATE_VPN, false);
|
||||
setAppop(AppOpsManager.OP_ACTIVATE_PLATFORM_VPN, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the given appop using shell commands
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user