HomeSort by relevance Sort by last modified time
    Searched refs:getDevice (Results 1 - 25 of 492) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/securitybulletin/src/android/security/cts/
Poc18_02.java 29 AdbUtils.runCommandLine("logcat -c" , getDevice());
30 AdbUtils.runPocNoOutput("CVE-2017-13232", getDevice(), 60);
31 String logcatOutput = AdbUtils.runCommandLine("logcat -d", getDevice());
42 AdbUtils.runCommandLine("dmesg -c" ,getDevice());
43 AdbUtils.runCommandLine("setenforce 0",getDevice());
44 if(containsDriver(getDevice(), "/dev/xt_qtaguid") &&
45 containsDriver(getDevice(), "/proc/net/xt_qtaguid/ctrl")) {
46 AdbUtils.runPoc("CVE-2017-13273", getDevice(), 60);
48 getDevice());
52 AdbUtils.runCommandLine("setenforce 1",getDevice());
    [all...]
Poc17_01.java 30 if(containsDriver(getDevice(), "/dev/nvhost-vic")) {
31 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60);
40 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) {
41 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60);
50 if(containsDriver(getDevice(), "/dev/nvhost-gpu") ||
51 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) {
52 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60);
61 if(containsDriver(getDevice(), "/dev/nvmap")) {
62 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60);
71 if(containsDriver(getDevice(), "/dev/nvmap"))
    [all...]
Poc17_09.java 34 , getDevice()
40 , getDevice()
46 , getDevice()
52 , getDevice()
62 if(containsDriver(getDevice(), "/dev/kgsl-3d0")) {
63 AdbUtils.runPocNoOutput("Bug-38195738", getDevice(), 60);
Poc17_02.java 27 AdbUtils.runCommandLine("logcat -c", getDevice());
28 AdbUtils.runPoc("CVE-2017-0426", getDevice(), 60);
29 String logcatOut = AdbUtils.runCommandLine("logcat -d", getDevice());
38 AdbUtils.runCommandLine("logcat -c", getDevice());
39 AdbUtils.runPoc("CVE-2017-0415", getDevice(), 60);
40 String logcatOut = AdbUtils.runCommandLine("logcat -d", getDevice());
50 if(containsDriver(getDevice(), "/dev/nvmap")) {
51 AdbUtils.runPoc("CVE-2016-8482", getDevice(), 60);
Poc16_11.java 29 AdbUtils.runCommandLine("logcat -c", getDevice());
30 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60);
31 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
40 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
41 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60);
50 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
51 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60);
60 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
61 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60);
70 if(containsDriver(getDevice(), "/dev/dri/renderD129"))
    [all...]
Poc17_03.java 28 if (containsDriver(getDevice(), "/dev/kgsl-3d0")) {
29 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), 180);
41 if (containsDriver(getDevice(), "/dev/ion") &&
42 containsDriver(getDevice(), "/dev/dri/renderD129")) {
43 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30);
55 if (containsDriver(getDevice(), "/dev/dri/renderD128")) {
56 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30);
67 if (containsDriver(getDevice(), "/dev/dri/renderD129")) {
68 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice());
79 AdbUtils.runCommandLine("logcat -c" , getDevice());
    [all...]
Poc16_04.java 28 AdbUtils.runCommandLine("logcat -c" , getDevice());
29 AdbUtils.runPoc("CVE-2016-2419", getDevice(), 60);
30 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
39 AdbUtils.runPoc("CVE-2016-0844", getDevice(), 60);
47 AdbUtils.runCommandLine("logcat -c" , getDevice());
48 AdbUtils.runPoc("CVE-2016-2412", getDevice(), 60);
49 String logcatOut = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc18_10.java 29 AdbUtils.runCommandLine("rm /sdcard/Android/data/CVE-2018-9515", getDevice());
30 AdbUtils.runCommandLine("mkdir /sdcard/Android/data/CVE-2018-9515", getDevice());
31 AdbUtils.runPocNoOutput("CVE-2018-9515", getDevice(), 300);
32 boolean vulnerableBecauseCrashed = getDevice().waitForDeviceNotAvailable(10_000);
35 getDevice().waitForDeviceAvailable(120_000); // 2 minutes
37 AdbUtils.runCommandLine("rm -rf /sdcard/Android/data/CVE-2018-9515", getDevice());
45 int code = AdbUtils.runPocGetExitStatus("/data/local/tmp/CVE-2018-9490", getDevice(), 60);
Poc17_04.java 30 getDevice().executeShellCommand("chmod +x /data/local/tmp/CVE-2017-0553");
32 AdbUtils.runCommandGetExitCode("/data/local/tmp/CVE-2017-0553", getDevice())==139);
41 AdbUtils.runPocCheckExitCode("CVE-2014-3145", getDevice(), 60));
49 String out = AdbUtils.runPoc("CVE-2016-10229", getDevice());
59 getDevice());
60 AdbUtils.runCommandLine("logcat -c", getDevice());
63 AdbUtils.runCommandLine("chmod +x /data/local/tmp/CVE-2017-0477", getDevice());
64 int code = AdbUtils.runCommandGetExitCode("/data/local/tmp/CVE-2017-0477", getDevice());
Poc17_12.java 29 if(containsDriver(getDevice(),"/dev/dri/renderD128")) {
30 AdbUtils.runPocNoOutput("CVE-2017-6262", getDevice(), 300);
Poc16_05.java 28 AdbUtils.runCommandLine("logcat -c" , getDevice());
29 AdbUtils.runPoc("CVE-2016-2460", getDevice(), 60);
31 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
40 AdbUtils.runPoc("CVE-2015-1805", getDevice(), 300);
Poc17_06.java 31 getDevice());
32 AdbUtils.runCommandLine("logcat -c" , getDevice());
37 "--base=0x50000000", getDevice());
38 String logcatOut = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc17_11.java 29 AdbUtils.runCommandLine("logcat -c", getDevice());
30 AdbUtils.pushResource("/cve_2017_0859.mp4", "/sdcard/cve_2017_0859.mp4", getDevice());
33 " -t audio/amr", getDevice());
36 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc16_10.java 29 AdbUtils.runCommandLine("logcat -c",getDevice());
30 AdbUtils.runPoc("CVE-2016-3913", getDevice(), 60);
31 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc18_07.java 30 AdbUtils.runCommandLine("logcat -c" , getDevice());
31 AdbUtils.runPoc("CVE-2018-9424", getDevice(), 60);
32 String result = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc16_07.java 27 AdbUtils.runPoc("CVE-2016-3818", getDevice(), 60);
35 AdbUtils.runCommandLine("logcat -c" , getDevice());
36 AdbUtils.runPoc("CVE-2016-3746", getDevice(), 60);
37 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice());
47 AdbUtils.runPocAssertExitStatusNotVulnerable("CVE-2014-9803", getDevice(), 60);
Poc18_06.java 30 "pm list package com.qualcomm.wfd.service", getDevice());
34 getDevice());
45 "pm list package com.emoji.keyboard.touchpal", getDevice());
54 AdbUtils.runCommandLine("logcat -c", getDevice());
55 AdbUtils.runPoc("CVE-2018-9344", getDevice(), 30);
56 String output = AdbUtils.runCommandLine("logcat -d", getDevice());
Poc18_04.java 31 LaunchSomeWhere.launchSomeWhere("CVE_2017_13286", getDevice());
41 LaunchSomeWhere.launchSomeWhere("CVE_2017_13288", getDevice());
51 LaunchSomeWhere.launchSomeWhere("CVE_2017_13289", getDevice());
  /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
AuthBoundKeyTest.java 40 Utils.prepareSingleUser(getDevice());
41 getDevice().uninstallPackage(PKG);
46 getDevice().uninstallPackage(PKG);
53 getDevice().executeShellCommand("cmd lock_settings set-pin 1234");
55 getDevice().executeShellCommand("cmd lock_settings clear --old 1234 --user 0");
57 getDevice().executeShellCommand("cmd lock_settings set-pin 12345");
58 getDevice().executeShellCommand("input keyevent 26"); // Screen on
59 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen
60 getDevice().executeShellCommand("input text 12345"); // Input password
61 getDevice().executeShellCommand("input keyevent 66"); // Submit inpu
    [all...]
PermissionsHostTest.java 81 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(REVIEW_HELPER_APK), true,
91 Utils.prepareSingleUser(getDevice());
95 getDevice().uninstallPackage(USES_PERMISSION_PKG);
96 getDevice().uninstallPackage(ESCALATE_PERMISSION_PKG);
97 getDevice().uninstallPackage(PERMISSION_POLICY_25_PKG);
100 mScreenTimeoutBeforeTest = getDevice().getSetting(SCREEN_OFF_TIMEOUT_NS,
102 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY, "1800000");
105 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP");
106 getDevice().disableKeyguard();
113 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY
    [all...]
DirectBootHostTest.java 64 Utils.prepareSingleUser(getDevice());
68 getDevice().uninstallPackage(PKG);
69 getDevice().uninstallPackage(OTHER_PKG);
74 getDevice().uninstallPackage(PKG);
75 getDevice().uninstallPackage(OTHER_PKG);
152 getDevice().executeShellCommand("am start -a android.intent.action.MAIN"
166 final String res = getDevice().executeShellCommand("sm set-emulate-fbe true");
170 getDevice().waitForDeviceNotAvailable(SHUTDOWN_TIME_MS);
171 getDevice().waitForDeviceOnline(120000);
173 getDevice().rebootUntilOnline()
    [all...]
PrivilegedUpdateTests.java 58 String defaultAbi = AbiFormatter.getDefaultAbi(getDevice(), mAbi.getBitness());
76 Utils.prepareSingleUser(getDevice());
80 getDevice().uninstallPackage(SHIM_PKG);
81 getDevice().uninstallPackage(TEST_PKG);
83 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false));
84 getDevice().executeShellCommand("pm enable " + SHIM_PKG);
91 getDevice().uninstallPackage(SHIM_PKG);
92 getDevice().uninstallPackage(TEST_PKG);
93 getDevice().executeShellCommand("pm enable " + SHIM_PKG);
97 getDevice().uninstallPackage(SHIM_PKG)
    [all...]
  /cts/hostsidetests/os/src/android/os/cts/
StaticSharedLibsHostTests.java 111 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG);
112 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG);
113 getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG);
122 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG));
124 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG));
126 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG));
128 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG);
129 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG);
130 getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG);
146 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG)
    [all...]
  /cts/hostsidetests/testharness/src/android/testharness/cts/
TestHarnessModeDeviceTest.java 51 getDevice().executeShellCommand("touch /sdcard/test.txt");
52 getDevice().executeShellCommand("touch /data/local/tmp/test.txt");
54 if (getDevice().doesFileExist("/sdcard/test.txt")
55 && getDevice().doesFileExist("/data/local/tmp/test.txt")) {
75 getDevice().executeShellCommand("settings get global transition_animation_scale");
77 getDevice().executeShellCommand("settings put global test_harness_test 1234");
78 getDevice().executeShellCommand("settings put secure test_harness_test 1234");
79 getDevice().executeShellCommand("settings put system test_harness_test 1234");
80 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0");
87 getDevice().executeShellCommand("settings get global test_harness_test").trim())
    [all...]
  /cts/hostsidetests/rollback/src/com/android/cts/rollback/host/
RollbackManagerHostTest.java 57 return "true".equals(getDevice().getProperty("ro.apex.updatable"));
77 final String errorMessage = getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME);
81 getDevice().reboot();
89 return getDevice().getActiveApexes().stream().filter(
103 getDevice().uninstallPackage(TEST_APK_PACKAGE_NAME);
113 getDevice().reboot();
115 getDevice().reboot();
127 getDevice().reboot();
129 getDevice().reboot();
131 getDevice().reboot()
    [all...]

Completed in 4242 milliseconds

1 2 3 4 5 6 7 8 91011>>