blob: 5a8f4d78a686fb57792ab6299c1253be8384f9a2 [file] [log] [blame]
package android.security.cts;
import android.platform.test.annotations.AsbSecurityTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
import static org.junit.Assert.*;
@RunWith(DeviceJUnit4ClassRunner.class)
public class Poc20_01 extends SecurityTestCase {
/**
* CVE-2019-14002
*/
@Test
@AsbSecurityTest(cveBugId = 142271274)
public void testPocCVE_2019_14002() throws Exception {
String result =
AdbUtils.runCommandLine(
"dumpsys package com.qualcomm.qti.callenhancement", getDevice());
assertNotMatchesMultiLine("READ_EXTERNAL_STORAGE.*?WRITE_EXTERNAL_STORAGE", result);
}
}