1 /**
2  * Copyright (C) 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.security.cts;
18 
19 import android.platform.test.annotations.SecurityTest;
20 import org.junit.Test;
21 import org.junit.runner.RunWith;
22 import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
23 
24 import static org.junit.Assert.*;
25 
26 @RunWith(DeviceJUnit4ClassRunner.class)
27 public class Poc18_05 extends SecurityTestCase {
28     /**
29      * b/70721937
30      * Does not require root but must be a hostside test to avoid a race
31      * condition
32      */
33     @Test
34     @SecurityTest(minPatchLevel = "2018-05")
testPocCVE_2017_13315()35     public void testPocCVE_2017_13315() throws Exception {
36         getOomCatcher().setHighMemoryTest();
37         LaunchSomeWhere.launchSomeWhere("CVE_2017_13315", getDevice());
38     }
39 
40     /**
41      * b/73085795
42      * Does not require root but must be a hostside test to avoid a race condition
43      */
44     @Test
45     @SecurityTest(minPatchLevel = "2018-05")
testPocCVE_2017_13312()46     public void testPocCVE_2017_13312() throws Exception {
47         getOomCatcher().setHighMemoryTest();
48         LaunchSomeWhere.launchSomeWhere("CVE_2017_13312", getDevice());
49     }
50 }
51