/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | TestMedia.java | 59 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2015-6616", in testPocCVE_2015_6616() 60 AdbUtils.TMP_PATH + inputFiles[0], inputFiles, AdbUtils.TMP_PATH, getDevice()); in testPocCVE_2015_6616() 71 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2017-0697", in testPocCVE_2017_0697() 72 AdbUtils.TMP_PATH + inputFiles[0], inputFiles, AdbUtils.TMP_PATH, getDevice()); in testPocCVE_2017_0697() 82 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2019-2126", null, getDevice()); in testPocCVE_2019_2126() 93 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2017-13180", null, getDevice(), in testPocCVE_2017_13180() 105 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2019-2228", in testPocCVE_2019_2228() 106 AdbUtils.TMP_PATH + inputFiles[0], inputFiles, AdbUtils.TMP_PATH, getDevice()); in testPocCVE_2019_2228() 116 AdbUtils.assumeHasNfc(getDevice()); in testPocCVE_2020_0450() 117 AdbUtils.runPocAssertNoCrashesNotVulnerable("CVE-2020-0450", null, getDevice()); in testPocCVE_2020_0450() [all …]
|
D | Poc16_11.java | 38 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2012_6702() 39 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60); in testPocCVE_2012_6702() 40 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2012_6702() 51 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60); in testPocCVE_2016_6730() 62 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60); in testPocCVE_2016_6731() 73 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60); in testPocCVE_2016_6732() 84 AdbUtils.runPoc("CVE-2016-6733", getDevice(), 60); in testPocCVE_2016_6733() 95 AdbUtils.runPoc("CVE-2016-6734", getDevice(), 60); in testPocCVE_2016_6734() 106 AdbUtils.runPoc("CVE-2016-6735", getDevice(), 60); in testPocCVE_2016_6735() 117 AdbUtils.runPoc("CVE-2016-6736", getDevice(), 60); in testPocCVE_2016_6736()
|
D | Poc17_01.java | 40 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60); in testPocCVE_2016_8425() 51 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60); in testPocCVE_2016_8426() 63 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60); in testPocCVE_2016_8427() 74 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60); in testPocCVE_2016_8428() 85 AdbUtils.runPoc("CVE-2016-8429", getDevice(), 60); in testPocCVE_2016_8429() 96 AdbUtils.runPoc("CVE-2016-8430", getDevice(), 60); in testPocCVE_2016_8430() 107 AdbUtils.runPoc("CVE-2016-8431", getDevice(), 60); in testPocCVE_2016_8431() 118 AdbUtils.runPoc("CVE-2016-8432", getDevice(), 60); in testPocCVE_2016_8432() 130 AdbUtils.runPocNoOutput("CVE-2016-8434", getDevice(), 60); in testPocCVE_2016_8434() 141 String result = AdbUtils.runPoc("CVE-2016-8460", getDevice(), 60); in testPocCVE_2016_8460() [all …]
|
D | Poc18_02.java | 38 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2017_13232() 39 AdbUtils.runPocNoOutput("CVE-2017-13232", getDevice(), 60); in testPocCVE_2017_13232() 40 String logcatOutput = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_13232() 52 AdbUtils.runCommandLine("dmesg -c" ,getDevice()); in testPocCVE_2017_13273() 53 AdbUtils.runCommandLine("setenforce 0",getDevice()); in testPocCVE_2017_13273() 56 AdbUtils.runPoc("CVE-2017-13273", getDevice(), 60); in testPocCVE_2017_13273() 57 String dmesgOut = AdbUtils.runCommandLine("cat /sys/fs/pstore/console-ramoops", in testPocCVE_2017_13273() 62 AdbUtils.runCommandLine("setenforce 1",getDevice()); in testPocCVE_2017_13273()
|
D | CVE_2021_39795.java | 43 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_39795() 44 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_39795() 45 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_39795() 50 AdbUtils.runCommandLine("mkdir " + DIR_PATH, device); in testPocCVE_2021_39795() 53 AdbUtils.runCommandLine( in testPocCVE_2021_39795() 55 AdbUtils.runCommandLine( in testPocCVE_2021_39795() 59 AdbUtils.runCommandLine( in testPocCVE_2021_39795() 67 AdbUtils.runCommandLine("rm -rf " + DIR_PATH, device); in testPocCVE_2021_39795()
|
D | CVE_2019_2180.java | 39 String arguments = AdbUtils.TMP_PATH + inputFiles[0]; in testPocCVE_2019_2180() 41 AdbUtils.pushResources(inputFiles, AdbUtils.TMP_PATH, getDevice()); in testPocCVE_2019_2180() 42 AdbUtils.runPocAssertExitStatusNotVulnerable(binaryName, arguments, null, getDevice(), in testPocCVE_2019_2180() 43 AdbUtils.TIMEOUT_SEC); in testPocCVE_2019_2180() 45 AdbUtils.removeResources(inputFiles, AdbUtils.TMP_PATH, getDevice()); in testPocCVE_2019_2180()
|
D | CVE_2021_0478.java | 42 String appPath = AdbUtils.TMP_PATH + apkName; in testPocCVE_2021_0478() 53 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_0478() 54 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_0478() 55 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_0478() 58 AdbUtils.runCommandLine("pm install " + appPath, device); in testPocCVE_2021_0478() 61 AdbUtils.runCommandLine("am start -n " + packageName + "/.PocActivity", getDevice()); in testPocCVE_2021_0478() 67 AdbUtils.runCommandLine("pm uninstall " + packageName, device); in testPocCVE_2021_0478() 71 String logcat = AdbUtils.runCommandLine("logcat -d *:S AndroidRuntime:E", device); in testPocCVE_2021_0478()
|
D | Poc17_04.java | 41 AdbUtils.runCommandGetExitCode("/data/local/tmp/CVE-2017-0553", getDevice())==139); in testPocCVE_2017_0553() 51 AdbUtils.runPocCheckExitCode("CVE-2014-3145", getDevice(), 60)); in testPocCVE_2014_3145() 60 String out = AdbUtils.runPoc("CVE-2016-10229", getDevice()); in testPocCVE_2016_10229() 70 AdbUtils.pushResource("/CVE-2017-0477.gif", "/data/local/tmp/CVE-2017-0477.gif", in testPocCVE_2017_0477() 72 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2017_0477() 75 AdbUtils.runCommandLine("chmod +x /data/local/tmp/CVE-2017-0477", getDevice()); in testPocCVE_2017_0477() 76 int code = AdbUtils.runCommandGetExitCode("/data/local/tmp/CVE-2017-0477", getDevice()); in testPocCVE_2017_0477()
|
D | CVE_2021_39622.java | 48 AdbUtils.runCommandLine("pm list packages", iTestDevice) in testPocCVE_2021_39622() 51 if (AdbUtils.runCommandLine( in testPocCVE_2021_39622() 59 AdbUtils.runCommandLine( in testPocCVE_2021_39622() 65 if (!AdbUtils.runCommandLine("ime list -s", iTestDevice) in testPocCVE_2021_39622() 67 AdbUtils.runCommandLine("ime enable " + GBOARD_PKG_NAME + mIdGboard, iTestDevice); in testPocCVE_2021_39622() 70 AdbUtils.runCommandLine( in testPocCVE_2021_39622() 80 AdbUtils.runCommandLine( in testPocCVE_2021_39622() 86 AdbUtils.runCommandLine("ime reset", iTestDevice); in testPocCVE_2021_39622()
|
D | CVE_2021_39797.java | 41 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_39797() 42 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_39797() 43 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_39797() 47 String previous = AdbUtils.runCommandLine("settings get global hidden_api_policy", device); in testPocCVE_2021_39797() 51 AdbUtils.runCommandLine("settings put global hidden_api_policy 1", device); in testPocCVE_2021_39797() 55 AdbUtils.runCommandLine("settings put global hidden_api_policy " + previous, device); in testPocCVE_2021_39797()
|
D | CVE_2021_30351.java | 40 String appPath = AdbUtils.TMP_PATH + apkName; in testPocCVE_2021_30351() 51 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_30351() 52 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_30351() 53 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_30351() 56 AdbUtils.runCommandLine("pm install " + appPath, device); in testPocCVE_2021_30351() 59 AdbUtils.runCommandLine("am start -n " + packageName + "/.MainActivity", getDevice()); in testPocCVE_2021_30351() 65 AdbUtils.runCommandLine("pm uninstall " + packageName, device); in testPocCVE_2021_30351()
|
D | Poc17_03.java | 42 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), TIMEOUT_NONDETERMINISTIC); in testPocCVE_2016_8479() 57 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30); in testPocCVE_2017_0508() 71 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30); in testPocCVE_2017_0333() 84 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice()); in testPocCVE_2017_0334() 113 AdbUtils.runPocAssertNoCrashes("CVE-2017-0479", getDevice(), "audioserver"); in testPocCVE_2017_0479() 123 AdbUtils.runCommandLine("settings get global boot_count", getDevice()); in testPocCVE_2017_0490() 124 AdbUtils.runCommandLine("service call wifi 43 s16 content://settings/global/boot_count s16 " in testPocCVE_2017_0490() 128 AdbUtils.runCommandLine("settings get global boot_count", getDevice()); in testPocCVE_2017_0490()
|
D | CVE_2021_39796.java | 45 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_39796() 46 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_39796() 47 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_39796() 51 AdbUtils.runCommandLine("pm set-harmful-app-warning " + HARMFUL_PKG + " harmful 0", device); in testPocCVE_2021_39796() 55 AdbUtils.runCommandLine("pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW", in testPocCVE_2021_39796() 59 AdbUtils.runCommandLine("input keyevent KEYCODE_BACK", device); in testPocCVE_2021_39796()
|
D | Poc20_06.java | 40 String isApplicable = AdbUtils.runCommandLine("service list", getDevice()); in testPocCVE_2020_3635() 44 AdbUtils.runCommandLine( in testPocCVE_2020_3635() 56 AdbUtils.runCommandLine("pm list package com.qualcomm.qti.lpa", getDevice()); in testPocCVE_2020_3626() 59 AdbUtils.runCommandLine("dumpsys package com.qualcomm.qti.lpa", getDevice()); in testPocCVE_2020_3626() 70 String result = AdbUtils.runCommandLine( in testPocCVE_2020_3628() 81 String isApplicable = AdbUtils.runCommandLine("service list", getDevice()); in testPocCVE_2020_3676() 85 AdbUtils.runCommandLine( in testPocCVE_2020_3676()
|
D | CVE_2021_39707.java | 42 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_39707() 43 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_39707() 44 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_39707() 47 String commandOutput = AdbUtils.runCommandLine( in testPocCVE_2021_39707() 64 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_39707() 67 AdbUtils.runCommandLine("pm remove-user " + userId, device); in testPocCVE_2021_39707()
|
D | Poc17_09.java | 41 AdbUtils.runCommandGetExitCode( in testPocCve_2017_6983() 49 AdbUtils.runCommandGetExitCode( in testPocCve_2017_6983() 57 AdbUtils.runCommandGetExitCode( in testPocCve_2017_6983() 65 AdbUtils.runCommandGetExitCode( in testPocCve_2017_6983() 81 AdbUtils.runPocNoOutput("Bug-38195738", getDevice(), 60); in testPocBug_38195738()
|
D | Poc16_04.java | 37 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2016_2419() 38 AdbUtils.runPoc("CVE-2016-2419", getDevice(), 60); in testPocCVE_2016_2419() 39 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2016_2419() 49 AdbUtils.runPoc("CVE-2016-0844", getDevice(), 60); in testPocCVE_2016_0844() 58 AdbUtils.runPocAssertNoCrashes("CVE-2016-2412", getDevice(), "system_server"); in testPocCVE_2016_2412()
|
D | Poc17_02.java | 37 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2017_0426() 38 AdbUtils.runPoc("CVE-2017-0426", getDevice(), 60); in testPocCVE_2017_0426() 39 String logcatOut = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_0426() 49 AdbUtils.runPocAssertNoCrashes("CVE-2017-0415", getDevice(), "mediaserver"); in testPocCVE_2017_0415() 59 AdbUtils.runPoc("CVE-2016-8482", getDevice(), 60); in testPocCVE_2016_8482()
|
D | Poc18_07.java | 38 AdbUtils.runPocAssertNoCrashes( in testPocCVE_2018_9424() 52 String result = AdbUtils.runCommandLine( in testPocCVE_2017_18275() 55 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2017_18275() 56 AdbUtils.runCommandLine(command, getDevice()); in testPocCVE_2017_18275() 57 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_18275()
|
D | CVE_2022_20223.java | 42 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2022_20223() 43 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2022_20223() 44 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2022_20223() 47 String commandOutput = AdbUtils.runCommandLine( in testPocCVE_2022_20223() 65 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2022_20223() 68 AdbUtils.runCommandLine("pm remove-user " + userId, device); in testPocCVE_2022_20223()
|
D | CVE_2020_0384.java | 48 AdbUtils.pocConfig testConfig = new AdbUtils.pocConfig(binaryName, getDevice()); in testPocCVE_2020_0384() 54 AdbUtils.TMP_PATH + inputFiles[0] + " " + AdbUtils.TMP_PATH + inputFiles[1]; in testPocCVE_2020_0384() 56 testConfig.inputFilesDestination = AdbUtils.TMP_PATH; in testPocCVE_2020_0384() 57 AdbUtils.runPocAssertNoCrashesNotVulnerable(testConfig); in testPocCVE_2020_0384()
|
D | CVE_2020_0381.java | 48 AdbUtils.pocConfig testConfig = new AdbUtils.pocConfig(binaryName, getDevice()); in testPocCVE_2020_0381() 53 AdbUtils.TMP_PATH + inputFiles[0] + " " + AdbUtils.TMP_PATH + inputFiles[1]; in testPocCVE_2020_0381() 55 testConfig.inputFilesDestination = AdbUtils.TMP_PATH; in testPocCVE_2020_0381() 56 AdbUtils.runPocAssertNoCrashesNotVulnerable(testConfig); in testPocCVE_2020_0381()
|
D | CVE_2020_0383.java | 48 AdbUtils.pocConfig testConfig = new AdbUtils.pocConfig(binaryName, getDevice()); in testPocCVE_2020_0383() 53 AdbUtils.TMP_PATH + inputFiles[0] + " " + AdbUtils.TMP_PATH + inputFiles[1]; in testPocCVE_2020_0383() 55 testConfig.inputFilesDestination = AdbUtils.TMP_PATH; in testPocCVE_2020_0383() 56 AdbUtils.runPocAssertNoCrashesNotVulnerable(testConfig); in testPocCVE_2020_0383()
|
D | CVE_2020_0385.java | 48 AdbUtils.pocConfig testConfig = new AdbUtils.pocConfig(binaryName, getDevice()); in testPocCVE_2020_0385() 53 AdbUtils.TMP_PATH + inputFiles[0] + " " + AdbUtils.TMP_PATH + inputFiles[1]; in testPocCVE_2020_0385() 55 testConfig.inputFilesDestination = AdbUtils.TMP_PATH; in testPocCVE_2020_0385() 56 AdbUtils.runPocAssertNoCrashesNotVulnerable(testConfig); in testPocCVE_2020_0385()
|
D | CVE_2021_0487.java | 47 AdbUtils.runCommandLine("input keyevent KEYCODE_WAKEUP", device); in testPocCVE_2021_0487() 48 AdbUtils.runCommandLine("input keyevent KEYCODE_MENU", device); in testPocCVE_2021_0487() 49 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_0487() 54 AdbUtils.runCommandLine( in testPocCVE_2021_0487() 62 AdbUtils.runCommandLine("input keyevent KEYCODE_HOME", device); in testPocCVE_2021_0487()
|