Merge "Updated CTS test for Android Security b/231322873" into rvc-dev am: 9e2c580dda am: 77776179f0 am: 304ba8aad6 am: 486ca72e66

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/22104391

Change-Id: I5e043fcc1ce6a629a08782f718cdda4fb1c36780
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/hostsidetests/securitybulletin/src/android/security/cts/CVE_2022_20415.java b/hostsidetests/securitybulletin/src/android/security/cts/CVE_2022_20415.java
index 511cbd4..e12c925 100644
--- a/hostsidetests/securitybulletin/src/android/security/cts/CVE_2022_20415.java
+++ b/hostsidetests/securitybulletin/src/android/security/cts/CVE_2022_20415.java
@@ -16,6 +16,7 @@
 
 package android.security.cts;
 
+import static org.junit.Assume.assumeFalse;
 import static org.junit.Assume.assumeNoException;
 
 import android.platform.test.annotations.AsbSecurityTest;
@@ -37,6 +38,11 @@
     @Test
     public void testPocCVE_2022_20415() {
         try {
+            // Test is not applicable for watch devices so skipping the test for watch devices
+            assumeFalse(
+                    "Skipping the test for watch devices",
+                    getDevice().hasFeature("android.hardware.type.watch"));
+
             final String testPkg = "android.security.cts.CVE_2022_20415";
 
             // Install the test-app